[Gdal-dev] gdal tool for generating statistics on geotiff?

John Cartwright John.C.Cartwright at noaa.gov
Tue Nov 7 18:38:43 EST 2006


Thanks Frank, that was exactly what I was looking for! 

Out of curiosity, is that option documented anywhere? I didn't see it.

-- john



Frank Warmerdam wrote:
> John Cartwright wrote:
>> Hello All,
>>
>> is there a gdal tool that will allow me to generate statistics (min, 
>> max, etc.) on the values in a geotiff?
>
> John,
>
> The -stats option to gdalinfo should report stuff like the following:
>
> Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
>   Minimum=0.000, Maximum=255.000, Mean=104.135, StdDev=58.308
>   Metadata:
>     STATISTICS_MINIMUM=0
>     STATISTICS_MAXIMUM=255
>     STATISTICS_MEAN=104.13526916504
>     STATISTICS_STDDEV=58.308455229198
>
> Best regards,



More information about the Gdal-dev mailing list