3

I'm try to use the gdal_merge.py to generate a a big composite image considering the maximum value per pixel (to avoid the no data value).

But I didn't find this option for gdal_merge.py. My code is:

python gdal_merge -o mergedLayerOutput.tif -q -v --optfile filesToMerge.txt

The result: Result of the merge of MODIS images

Any suggestion about?

1 Answer 1

3

Because you are trying to ignore the NoData values in the input rasters, I suggest you either set the NoData for each raster before merging (in which case gdal_merge.py will ignore those pixels on merging) or use the -n option to supply such a value at the execution call time.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.