<DIV>Thk u very much.</DIV>
<DIV>I have two questions.</DIV>
<DIV>1.If I want to use the following combination,</DIV>
<DIV>Red=Band3</DIV>
<DIV>Green=Band2*0.8+band4*0.2;</DIV>
<DIV>Blue=band1</DIV>
<DIV>2. what is the general combination for good look jpeg file?<BR></DIV>
<DIV></DIV><BR><PRE>>weixj2003ld wrote:
>> I read a geotiff file, and find that
>> poBand->GetColorTable()==NULL
>
>Wei,
>
>Presumably GetColorTable() returns NULL because the GeoTIFF file
>does not have a color table.
>
>> But I use ERDAS IMAGINE9.2 (a software that deal with geotiff), I find
>> that it is not grey,but I use "gdal_translate -b 6 -of JPEG old.tif
>> net.jpg", find that is is grey.
>
>Well, you are selecting only one band withouta color table to export
>to net.jpg. How do you expect it to be anything other than greyscale?
>If you want an RGB jpeg file then select three bands to be used as
>red, green and blue.
>
>eg.
>gdal_translate -b 4 -b 5 -b 6 o-of JPEG old.tif net.jpg
>
>Best regards,
>
>--
>---------------------------------------+--------------------------------------
>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
>light and sound - activate the windows | http://pobox.com/~warmerdam
>and watch the world go round - Rush | Geospatial Programmer for Rent
>
</PRE><br><br><span title="neteasefooter"/></span>