You could run gdal_polygonize on the mask geotiff and then use the output
vector with gdal_rasterize. That's the only way I can think of without
writing a python script to do the pixel comparisons.
Jamie
On Thu, Apr 28, 2011 at 2:30 AM, canduc17 wrote:
> I think gdal merge is the easier way.
>
I think gdal merge is the easier way.
But with a command like this:
gdal_merge.py -of GTiff -separate -o cropped.tif orig.tif mask.tif
I obtainn a GEOTiff with two bands: the first is the original image and the
second is the mask.
This is not what I want.
I would like to obtain a single band GEO