[Gdal-dev] .hdr labelled binary float raster

Bborie Park bkpark at ucdavis.edu
Wed Sep 26 11:52:35 EDT 2007


Thanks Frank,

That solves the issue!

-bborie

Frank Warmerdam wrote:
> 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,

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the Gdal-dev mailing list