[Gdal-dev] gdalinfo -stats on raw binary data

John Cartwright John.C.Cartwright at noaa.gov
Fri May 25 16:30:58 EDT 2007


Hello All,

I have the same data in three different formats: 16-bit signed integer 
(*.bin), 32-bit signed integer (*.bin), and 32-bit float (*.flt).  I'm 
not getting the correct answers when I run "gdalinfo -stats", the min 
and max should be -6488 and 1320 respectively.

The (seemingly incorrect) response I get is the same for each file:

Driver: EHdr/ESRI .hdr Labelled
Size is 4801, 2401
Coordinate System is `'
Origin = (-68.000416665000003,19.000408664999998)
Pixel Size = (0.000833330000000,-0.000833330000000)
Corner Coordinates:
Upper Left  ( -68.0004167,  19.0004087)
Lower Left  ( -68.0004167,  16.9995833)
Upper Right ( -63.9995993,  19.0004087)
Lower Right ( -63.9995993,  16.9995833)
Center      ( -66.0000080,  17.9999960)
Band 1 Block=4801x1 Type=Byte, ColorInterp=Undefined
  Minimum=0.000, Maximum=255.000, Mean=153.351, StdDev=98.734
  NoData Value=-32768

Should I be forcing these to a different driver or modifying the 
associated hdr file in some way?

Thanks for your help!

-- john





More information about the Gdal-dev mailing list