[gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header
Even Rouault
even.rouault at mines-paris.org
Fri Oct 19 15:10:09 PDT 2012
Le vendredi 19 octobre 2012 23:57:01, Peter Willis a écrit :
> Hello,
>
> At step #6, gdalinfo -stats reports data stats with the -999 values
> calculated into the min/max/mean/stdev.
>
>
> Band 2 Block=2178x1 Type=Float32, ColorInterp=Undefined
> Description = Band 2
> Min=-999.000 Max=12.250
> Minimum=-999.000, Maximum=12.250, Mean=-946.817, StdDev=222.404
> NoData Value=-999
> Metadata:
> STATISTICS_MINIMUM=-999
> STATISTICS_MAXIMUM=12.25
> STATISTICS_MEAN=-946.81678963104
> STATISTICS_STDDEV=222.4036660914
>
Ok, indeed that's not expected.
Well, perhaps you could first check if there is no .aux.xml file that would
contain bad values. And if so, delete it before running again gdalinfo -stats.
Other than that, I've no more idea without having access to the .img file
itself.
More information about the gdal-dev
mailing list