Hi,<br><br>I have used gdal_translate to crop sectors of a world satellite GTiff image into individual images.&nbsp; For the most part, I got what I wanted with the exception of two areas. In both cases 180 degrees of longitude is crossed by the area whose left border is East longitude and whose right border is West longitude.
<br><br>These are the commands I used:<br><span style="font-style: italic; font-weight: bold;">ulx=100.0&nbsp;&nbsp; # 100 degrees East</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
uly=50&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 50 degress North</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">lrx=-110.0&nbsp;&nbsp; # 110 degrees West</span><br style="font-style: italic; font-weight: bold;">
<span style="font-style: italic; font-weight: bold;">lry=-52.0&nbsp;&nbsp;&nbsp; # 52 degrees South</span><br style="font-style: italic; font-weight: bold;"><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic;">
<span style="font-weight: bold;">gdal_translate -projwin $ulx $uly $lrx $lry world.tif area.tif</span><br><br></span>The error I get is:<br><span style="font-style: italic; font-weight: bold;">Creating area.tif ..</span><br style="font-style: italic; font-weight: bold;">
<span style="font-style: italic; font-weight: bold;">-srcwin 5819 478 -4364 2120 falls outside raster size of 7482x3035</span><br style="font-style: italic; font-weight: bold;"><span style="font-style: italic; font-weight: bold;">
or is otherwise illegal.<br><br></span>I thought I could resolve the issue avoiding crossin the 180 degrees line. So, I decided to create 2 smaller areas one from 100 to 180 E and the other one from 180 to 110 West and then merge them.&nbsp; To my distraught, I obtained an image with a white band in between the 2 input images.
<br><br>Does anyone know of a work around this issue?&nbsp; <br><br>Tx <br><br><br><br>