Re: [gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread elliott
> Il 16/10/2012 22.05, elli...@cpi.com ha scritto: >> Hello, >> >> Does anybody know of a way to set the data type in the call ReadAsArray. >> It is currently reading a field as an unsigned int and it needs to be >> read >> as a signed int. > > Hi, > ReadAsArray returns substantially a numpy array,

[gdal-dev] Setting DataType in ReadAsArray

2012-10-16 Thread elliott
Hello, Does anybody know of a way to set the data type in the call ReadAsArray. It is currently reading a field as an unsigned int and it needs to be read as a signed int. Thanks! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.or

[gdal-dev] Compiling GDAL with HDF5 Support

2012-08-30 Thread elliott
Hello, I have configured gdal 1.9.1 as follows: ./configure --with-python --with-hdf4=/home/hdf-4.2.6/hdf4 --with-hdf5=/home/hdf5-1.8.9/hdf5 It looks like everything builds successfully. However, when I try to use gdalinfo on a MODIS Land Cover HDF-EOS version 5 file, I get the following e

[gdal-dev] Help with viewing MODIS L2 Cloud Data

2012-07-12 Thread elliott
Hello, I have used gdal 1.9.1 to view various HDF4 and HDF5 files without a problem. I am current trying to use gdalinfo to look at a MODIS L2 Aqua Cloud Product data file ( MYD06_L2.A2002244.0410.004.2004203230354.hdf ) and it does not recognize the file format. Is it because it is a Level

[gdal-dev] Covert MODIS Land Temperatures Sinusoidal to Lat Lon

2011-11-30 Thread elliott
Hello, I have been searching for a way to convert the MODIS Land Temperature data that is in a sinusoidal projection into WSG84 lat/lon but have not found any definitive answers. Any help would be greatly appreciated. Thanks! ___ gdal-dev mailing l

[gdal-dev] GDAL Installation Question

2011-11-04 Thread elliott
Hi Everyone, I recently rebuilt my gdal-1.8.0 directory to include the HDF4 format. If I run the gdal-1.8.0/apps/gdalinfo, it recognizes the HDF4 files. However, if I just run ./gdalinfo it does not recognize the new format. I noticed that there is a sub directory gdal-1.8.0/apps/.libs that

[gdal-dev] Nearest Neighbour resampling

2008-11-20 Thread Ian Elliott
Hi, An error is consistently occurring when I use the nearest neighbour technique to resample an 8-bit paletted image. Please see this page for an example: http://projects.exeter.ac.uk/msel/personnel/iae/gdal/ (The resampling error is shown in image c). A possible solution I have discovered is t