[Gdal-dev] .hdr labelled binary float raster

Frank Warmerdam warmerdam at pobox.com
Tue Sep 25 21:29:06 EDT 2007


On 9/25/07, Bborie Park <bkpark at ucdavis.edu> wrote:
> C:\Documents and Settings\dustymugs\Desktop\TOPS>gdalinfo -mm
> TOPSTMAX.CA1KM.20070924.flt
> Driver: EHdr/ESRI .hdr Labelled
> Size is 738, 1203
> Coordinate System is `'
> Origin = (-2037330.654000000100000,-39280.983000000007000)
> Pixel Size = (1000.000000000000000,-1000.000000000000000)
> Corner Coordinates:
> Upper Left  (-2037330.654,  -39280.983)
> Lower Left  (-2037330.654,-1242280.983)
> Upper Right (-1299330.654,  -39280.983)
> Lower Right (-1299330.654,-1242280.983)
> Center      (-1668330.654, -640780.983)
> Band 1 Block=738x1 Type=Byte, ColorInterp=Undefined
>      Computed Min/Max=0.000,255.000
>    NoData Value=-9999
>
> When I import the raster with the ESRI header to ArcInfo, the min and
> max ranges are correct.

Bborie,

I'm not sure how arc/info decides that these files are floating
point, but GDAL needs the keyword NBITS with the value 32
and the keyword PIXELTYPE with the value FLOAT to recognise
an EHDR dataset as being floating point.

I believe this is causing the issue you see.

Best regards,
-- 
---------------------------------------+--------------------------------------
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