I am having a Merging issue with the GDAL python library. I am using gdal_merge.py
link
My issue is when I merge two rasters NoData value of one raster overlaps the other data resulting in not a proper raster image.
For example, in the raster images below (left images) if I merge these 4 images labeled as 1,2,3,4 I should get the merged raster image as the right-sided image.
But, the merged image I am getting looks like this (image below):
(Note: Image labeled 1,2 and 3 are merged properly. It's only when we merged them with image labeled 4, it's not properly merging.)
How do I resolve this issue?