[gdal-dev] Extracting an 8bit raster image from a 16bit unsigned int HDF dataset

mattia mattia.parigiani at gmail.com
Fri Feb 15 11:55:26 EST 2008


HEllo,

I try the following:

 gdal_translate -ot Byte -b 1 -b 2 -b 3 HDF4_SDS:UNKNOWN:"
AMOD021KM20070104035343.hdf":0 123.tif

where the subdataset is an SDS formed of 15 visible bands where each pixel
is a 16 bit unsigned integer..
My output tiff image is a blank white one .. can anyone tell me where the
problem could be??

Is there a way of converting such 16bit images to 8 bit ones without loss??


-- 
Mattia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080215/c864d693/attachment.html


More information about the gdal-dev mailing list