[Gdal-dev] .hdr labelled binary float raster
Bborie Park
bkpark at ucdavis.edu
Tue Sep 25 18:25:57 EDT 2007
Howdy all,
I'm working on a large set of FLT32 binary files with two possible
headers (ESRI and ENVI). When I use the ENVI headers, the computed
min/max values (-9999, 33.735) are correct to the raster while the ESRI
headers have min/max values of 0 to 255.
The outputs from gdalinfo with each header are:
ENVI header:
C:\Documents and Settings\dustymugs\Desktop\TOPS>gdalinfo -mm
TOPSTMAX.CA1KM.20070924.flt
Driver: ENVI/ENVI .hdr Labelled
Size is 738, 1203
Coordinate System is:
LOCAL_CS["dayment",
UNIT["Meter",1]]
Origin = (-2037330.654000000100000,-39780.983000000000000)
Pixel Size = (1000.000000000000000,-1000.000000000000000)
Corner Coordinates:
Upper Left (-2037330.654, -39780.983)
Lower Left (-2037330.654,-1242780.983)
Upper Right (-1299330.654, -39780.983)
Lower Right (-1299330.654,-1242780.983)
Center (-1668330.654, -641280.983)
Band 1 Block=738x1 Type=Float32, ColorInterp=Undefined
Description = ROI Mask (westernHemp_1km_nearest)
Computed Min/Max=-9999.000,33.735
ESRI header:
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.
Is there something wrong with gdal working with the ESRI header when
compared to the ENVI header? For the sake of repeatability, I've posted
the raster and associated files (hdr and prj) to:
http://dev.calsurv.org/TOPS.zip
Any details and suggestions would be greatly appreciated.
Thanks,
Bborie
--
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu
More information about the Gdal-dev
mailing list