wcs data preparation - conversion from Unsigned to Signed Int
Frank Warmerdam
warmerdam at POBOX.COM
Wed Nov 24 07:44:32 PST 2004
Nuno GIL wrote:
> Hi listers,
>
> I have converted some SRTM (.hgt) files in 16-bit
> signed int to GeoTiff 16-bit unsigned int.
> Does any of you know any way of converting a 16-bit
> unsigned GeoTIFF in a 16-bit signed one?
>
> Regards,
> Nuno
Nuno,
You can use gdal_translate to convert data types. For instance:
gdal_translate -ot UInt16 in.tif out.tif
Note that by default gdal_translate will just truncate values, so any
value less than zero will be mapped to zero going through the above
transformation.
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 | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list