[Gdal-dev] gdal_translate ESRI grid question

Frank Warmerdam fwarmerdam at gmail.com
Fri Feb 25 00:00:52 EST 2005


On Wed, 23 Feb 2005 21:41:42 -1000, Juliana Lo <juliana at pdc.org> wrote:
> I am a newbie to gdal, so please forgive me if this question has been asked before.
> I am trying to translate a ESRI float grid flt file to geotiff, from 4 bytes floating to unsiged byte.
> 
> # gdal_translate -ot Byte T_02160000.flt T_02160000.tif
> Input file size is 321, 225
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> 
> The input min/max = 40.2 /  83.22. When I looked at the output., the data values are all 0's and 255's.

Juliana, 

I'm afraid that GDAL is getting confused about the type of the
grid.  It seems that "32bit" grids can be either 32bit integer or
32bit floating point but I don't know how to tell them apparent. 
It seems that this data is being treated as float32 when it
should likely be int32. 

Of course, there could be some other issue.  If you can
make the dataset available, I could look into it more closely.



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list