[Gdal-dev] GTOPO30 and max value
Markus Neteler
neteler at itc.it
Thu May 31 12:07:46 EDT 2007
On Wed, May 30, 2007 at 08:41:34PM -0400, Frank Warmerdam wrote:
> Markus Neteler wrote:
> > Frank, it looks like this:
> > cat W100N40.HDR
> > BYTEORDER M
> > LAYOUT BIL
> > NROWS 6000
> > NCOLS 4800
> > NBANDS 1
> > NBITS 16
> > BANDROWBYTES 9600
> > TOTALROWBYTES 9600
> > BANDGAPBYTES 0
> > NODATA -9999
> > ULXMAP -99.99583333333334
> > ULYMAP 39.99583333333333
> > XDIM 0.00833333333333
> > YDIM 0.00833333333333
>
> Markus,
>
> You can add the "PIXELTYPE SIGNEDINT" line in the .hdr to force
> interpretation of the file as signed rather than unsigned integers.
Excellent! Now it works
gdalinfo -mm W100N40.DEM
Driver: EHdr/ESRI .hdr Labelled
...
Band 1 Block=4800x1 Type=Int16, ColorInterp=Undefined
Min=-9999.000 Max=6710.000 Computed Min/Max=1.000,6710.000
Minimum=-9999.000, Maximum=6710.000, Mean=-6078.800, StdDev=5044.200
NoData Value=-9999
Thanks,
Markus
------------------
ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler
ITC -> since 1 March 2007 Fondazione Bruno Kessler
------------------
More information about the Gdal-dev
mailing list