I am trying to stitch together several satellite geotiff images to obtain a world image.<br>The individual images display the satellite picture with black areas on the sides of the picture itself.<br>So, when merging the images using gdal_merge.py some pictures are hidden underneath the black portion of neighbour images.&nbsp; Couldn't use -pct option due to images characteristics. Pls. see below the color tables in the input images.
<br><br>The original images do not have a no-data value assigned to pixels to avoid copying them.&nbsp; <br>So, for now my only option would be to crop the black areas that are always the same size around the image.&nbsp; I am trying to do this using gdalwarp, but I still can't figure out how to obtain the georeferenced box to be used along with -projwin option.
<br><br>BTW.&nbsp; I haven't been able to see these images using OpenEV although I can see them with ImageMagick.&nbsp; Any idea on what I may be doing wrong in OpenEV?&nbsp; I do need to run openev with the &quot;-h&quot; option since it quits on me when opening an image otherwise.&nbsp; I have been able to see other geotiffs downloaded from Internet in openev though.
<br><br>Any help on how to cut the black areas is appreciated.<br><br><br><br>Some info on 2 of the input images and the output images:<br><br>Input number 1<br><br>Origin = (45.833333,75.000000)<br>Pixel Size = (0.08055556
,-0.08055556)<br>Metadata:<br>&nbsp; AREA_OR_POINT=Area<br>Corner Coordinates:<br>Upper Left&nbsp; (&nbsp; 45.8333333,&nbsp; 75.0000000) (142d30'0.03&quot;E,&nbsp; 0d 0'0.04&quot;N)<br>Lower Left&nbsp; (&nbsp; 45.8333333, -70.0000000) (142d30'0.03&quot;E,&nbsp; 0d 0'
0.04&quot;S)<br>Upper Right (&nbsp;&nbsp;&nbsp;&nbsp; 239.167,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 75.000) (142d30'0.14&quot;E,&nbsp; 0d 0'0.04&quot;N)<br>Lower Right (&nbsp;&nbsp;&nbsp;&nbsp; 239.167,&nbsp;&nbsp;&nbsp;&nbsp; -70.000) (142d30'0.14&quot;E,&nbsp; 0d 0'0.04&quot;S)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 142.5000000,&nbsp;&nbsp; 2.5000000) (142d30'
0.08&quot;E,&nbsp; 0d 0'0.00&quot;N)<br>Band 1 Block=2400x3 Type=Byte, ColorInterp=Palette<br>&nbsp; Color Table (RGB with 256 entries)<br>&nbsp;&nbsp;&nbsp; 0: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 1: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 2: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 3: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 4: 0,0,0,255
<br>&nbsp;&nbsp;&nbsp; 5: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 6: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 7: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 8: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 9: 0,0,0,255<br>&nbsp;&nbsp; 10: 0,0,0,255<br>&nbsp;&nbsp; 11: 0,0,0,255<br>&nbsp;&nbsp; 12: 0,0,0,255<br>&nbsp;&nbsp; 13: 0,0,0,255<br>&nbsp;&nbsp; 14: 0,0,0,255<br>&nbsp;&nbsp; 15: 0,0,0,255<br>
&nbsp;&nbsp; 16: 0,0,0,255<br>&nbsp;&nbsp; 17: 0,0,0,255<br>&nbsp;&nbsp; 18: 0,0,0,255<br>&nbsp;&nbsp; 19: 0,0,0,255<br>&nbsp;&nbsp; 20: 0,0,0,255<br>...............................................................rest of values in color table look the same<br><br>Input number 2
<br>Driver: GTiff/GeoTIFF<br>Size is 2400, 1800<br>Coordinate System is:<br>PROJCS[&quot;unnamed&quot;,<br>&nbsp;&nbsp;&nbsp; GEOGCS[&quot;unnamed&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,
298.2572235629972,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[,0.0174532925199433
]],<br>&nbsp;&nbsp;&nbsp; PROJECTION[&quot;Equirectangular&quot;],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;latitude_of_origin&quot;,2.5],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,-155],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,0],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,0],
<br>&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.01745329251994328,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9102&quot;]]]<br>Origin = (-251.537842,74.963768)<br>Pixel Size = (0.08051530,-0.08051530)<br>Metadata:<br>&nbsp; AREA_OR_POINT=Area
<br>Corner Coordinates:<br>Upper Left&nbsp; (&nbsp;&nbsp;&nbsp; -251.538,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 74.964) (155d 0'0.14&quot;W,&nbsp; 0d 0'0.04&quot;N)<br>Lower Left&nbsp; (&nbsp;&nbsp;&nbsp; -251.538,&nbsp;&nbsp;&nbsp;&nbsp; -69.964) (155d 0'0.14&quot;W,&nbsp; 0d 0'0.04&quot;S)<br>Upper Right ( -58.3011272,&nbsp; 
74.9637681) (155d 0'0.03&quot;W,&nbsp; 0d 0'0.04&quot;N)<br>Lower Right ( -58.3011272, -69.9637681) (155d 0'0.03&quot;W,&nbsp; 0d 0'0.04&quot;S)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-154.9194847,&nbsp;&nbsp; 2.5000000) (155d 0'0.09&quot;W,&nbsp; 0d 0'0.00&quot;N)<br>
Band 1 Block=2400x3 Type=Byte, ColorInterp=Palette<br>&nbsp; Color Table (RGB with 256 entries)<br>&nbsp;&nbsp;&nbsp; 0: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 1: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 2: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 3: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 4: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 5: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 6: 0,0,0,255
<br>&nbsp;&nbsp;&nbsp; 7: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 8: 0,0,0,255<br>&nbsp;&nbsp;&nbsp; 9: 0,0,0,255<br>&nbsp;&nbsp; 10: 0,0,0,255<br>&nbsp;&nbsp; 11: 0,0,0,255<br>&nbsp;&nbsp; 12: 0,0,0,255<br>&nbsp;&nbsp; 13: 0,0,0,255<br>&nbsp;&nbsp; 14: 0,0,0,255<br>&nbsp;&nbsp; 15: 0,0,0,255<br>&nbsp;&nbsp; 16: 0,0,0,255<br>&nbsp;&nbsp; 17: 0,0,0,255<br>
&nbsp;&nbsp; 18: 0,0,0,255<br>&nbsp;&nbsp; 19: 0,0,0,255<br>&nbsp;&nbsp; 20: 0,0,0,255<br>.................................................................. rest of values in color table look the same<br><br><br>Output from gdal_merge.py -o &lt;outpiut&gt; &lt;Input number 1&gt;&nbsp; &lt;Input number 2&gt;
<br>Driver: GTiff/GeoTIFF<br>Size is 6067, 1800<br>Coordinate System is:<br>PROJCS[&quot;unnamed&quot;,<br>&nbsp;&nbsp;&nbsp; GEOGCS[&quot;WGS 84&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,
298.2572235629972,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,
0.0174532925199433],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]],<br>&nbsp;&nbsp;&nbsp; PROJECTION[&quot;Equirectangular&quot;],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;latitude_of_origin&quot;,0],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,135],
<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,0],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,0],<br>&nbsp;&nbsp;&nbsp; UNIT[&quot;unknown&quot;,1]]<br>Origin = (-243.264249,69.948187)<br>Pixel Size = (0.07772021,-0.07772021)<br>Metadata:
<br>&nbsp; AREA_OR_POINT=Area<br>Corner Coordinates:<br>Upper Left&nbsp; (&nbsp;&nbsp;&nbsp; -243.264,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69.948) (134d59'52.13&quot;E,&nbsp; 0d 0'2.28&quot;N)<br>Lower Left&nbsp; (&nbsp;&nbsp;&nbsp; -243.264,&nbsp;&nbsp;&nbsp;&nbsp; -69.948) (134d59'52.13&quot;E,&nbsp; 0d 0'2.28&quot;S)<br>Upper Right (&nbsp;&nbsp;&nbsp;&nbsp; 
228.264,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 69.948) (135d 0'7.38&quot;E,&nbsp; 0d 0'2.28&quot;N)<br>Lower Right (&nbsp;&nbsp;&nbsp;&nbsp; 228.264,&nbsp;&nbsp;&nbsp;&nbsp; -69.948) (135d 0'7.38&quot;E,&nbsp; 0d 0'2.28&quot;S)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp; -7.5000000,&nbsp; -0.0000000) (134d59'59.76&quot;E,&nbsp; 0d 0'0.00&quot;S)
<br>Band 1 Block=6067x1 Type=Byte, ColorInterp=Gray<br><br><br><br>