[Gdal-dev] gdal_translate question
Frank Warmerdam
warmerdam at pobox.com
Wed Aug 1 09:43:24 EDT 2007
Christopher Condit wrote:
> I'm trying to translate from an EHdr dataset to a GeoTIFF, but want to
> incorporate the correct min/max values from the EHdr statistics file.
> I'm currently using: gdal_translate -ot Int32 -scale 0 65535 -415 5778
> input.DEM output.tiff
> Is there any way to do this automatically since the statistics will vary
> from DEM to DEM?
Chris,
If you omit the min/max values to the -scale option, gdal_translate will
pick min/max values itself. I *think* it uses the metadata min/max.
eg.
gdal_translate -ot Int32 -scale 0 65535 input.DEM output.tiff
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list