<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><pre class="gmail-default gmail-prettyprint gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><pre class="gmail-default gmail-prettyprint gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit"><span class="gmail-lit" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">Hello,<br><br>I've a Sentinel 2 UTM32 scene (JPEG2000 format). <br><br>What I want to do is:<br><br>+ Warp this scene from UTM32 to EPSG:4326 by gdalwarp<br>gdalwarp T32UQD_20200421T102021_TCI_60m.jp2 -t_srs EPSG:4326 full_warp.tif<br><br>+ Clip a small subset of this file by gdal_translate<br>gdal_translate -projwin 798326.68347 5795956.80269 799609.577326 5794397.95642 T32UQD_20200421T102021_TCI_60m.jp2 crop.tif<br><br>Then warp this small subset also from UTM32 to EPSG:4326 by gdalwarp:<br><br>gdalwarp crop.tif -t_srs EPSG:4326 small_warp.tif -dstnodata 0<br><br>However, when I overlay the small_warp.tif on the full_warp.tif by QGIS 2.14.9, I see the small file is not aligned on the big one.<br><br>Illustration: <a href="https://i.stack.imgur.com/U5Vql.png">https://i.stack.imgur.com/U5Vql.png</a><br><br>What can be the reason for it? <br><br>More details given on this link: <a href="https://gis.stackexchange.com/questions/361410/results-of-gdalwarp-from-utm32-to-epsg4326-are-not-aligned">https://gis.stackexchange.com/questions/361410/results-of-gdalwarp-from-utm32-to-epsg4326-are-not-aligned</a><br><br>Thanks,<br></span></code></pre></pre></div></div></div></div>