<div dir="ltr"><div>Hi Guodong,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 4, 2020 at 9:23 PM Guodong <<a href="mailto:gd.zhu@outlook.com">gd.zhu@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I want to re-project a radar image<br>
(<a href="https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gif" rel="noreferrer" target="_blank">https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gif</a>) which is in<br>
NAD83/EPSG4326 to WGS84/Pseudo-Mercator/EPSG3857. There is a world file<br>
associated with this gif<br>
(<a href="https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gfw" rel="noreferrer" target="_blank">https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gfw</a>). I was<br>
wondering how can I do this projection using Python gdalwarp package, and<br>
how to extract the coordinates bounds from the new re-projected picture?<br>
<br>
I'm very new to GIS. I know world file contains georeferencing information,<br>
but I stucked at the first step and don't know how to read gif file along<br>
with the world file...<br>
<br>
Thanks a lot for your time and help!<br>
<br>
Best regards,<br>
Guodong<br></blockquote><div><br></div><div style="box-sizing:border-box">If you save the .gif and the .gfw file to the same directory, so that they are siblings, GDAL will find the .gfw automatically when the .gif file is opened. This is a common GIS paradigm. Many GIS file formats are actually multi-file formats. One file, usually the image file, is the primary file and it may have auxiliary or "sidecar" files that carry additional information. A world file is one such auxiliary file.<br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">You can convert and warp like like this:<br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">gdalwarp -r near -s_srs EPSG:4326 -t_srs EPSG:3857 -of GTiff latest_radaronly.gif warped.tif<br></div><div style="box-sizing:border-box"><br style="box-sizing:border-box;color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"></div><div style="box-sizing:border-box">The gdalinfo program will show you the bounds of the result and you can confirm they are what you expect.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div></div>