[FWTools] (no subject)

Travis Kirstine GIS Tech tkirstine at jdbarnes.com
Tue Jan 10 12:54:52 EST 2006

The reason for my last question is that I have had few strange results from
the gdal_merge command.  I have been merging together overlapping RGB images
with different resolutions (30cm and 20cm).  The 20cm image has a no data
value of 0 0 0.  My basic command is:
gdal_merge.bat -o output_30cm.tif -of GTiff -n 0 30cm_input.tif
The problem I'm finding is that areas that are near black (0, 7, 15) are
being converted to values with higher red values (80, 9, 19).


-----Original Message-----
From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com]On Behalf Of
Frank Warmerdam
Sent: Thursday, January 05, 2006 3:14 PM
To: Travis Kirstine GIS Tech
Cc: Fwtools
Subject: Re: [FWTools] gdal_merge no data values

On 1/5/06, Travis Kirstine GIS Tech <tkirstine at jdbarnes.com> wrote:
> Hi all,
> Is there a way to assign a no data value for all bands in a RGB image
> gdal_merge
> i.e. gdal_merge.bat -o merged.tif -of GTiff -n 0 0 0 rgb_image_1.tif
> rgb_image_2.tif


I *believe* that if you specify a nodata value using the -n flag,
it will be used for all bands.

gdal_merge.bat -o merged.tif -of GTiff -n 0 rgb_image_1.tif rgb_image_2.tif

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 FWTools mailing list