Hi SriRam,

Try gdalwarp like this:

   gdalwarp -dstnodata 255 infile.tif outfile.tif

If NoData is not defined in the source image in manner gdal automatically recognises you'll need to specify it like so (assuming pure black is NoData):

   gdalwarp -srcnodata 0 -dstnodata 255 infile.tif outfile.tif

You can also use RGB quoted triplets:

   gdalwarp -dstnodata "255 0 120"

cheers,

matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------


[EMAIL PROTECTED] wrote:

I have a Jp2 16 Bit Image [ GreyScale ]

This has a NoData value ... I want to change the NoData value to White Color

Can anyone let me know the Syntax for getting this done thru GDAL_TRANSLATE


------------------------------------------------------------------------

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to