<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Colleagues</p>
<p>I want to georeference and project a raster image. I have an
incorrect result where the image is improperly projected, and I am
unsure why.<br>
</p>
<p>The original image is "SST_plot_New_Zealand_Whangarei_clahe.tif"
<a class="moz-txt-link-rfc2396E" href="http://u.pc.cd/fy8"
moz-do-not-send="true"><http://u.pc.cd/fy8></a>. (Note: I
used links to my cloud server directory to avoid sending
attachments to the list). I created this image with known
bounding box limits:</p>
<p>/snip</p>
<p># elif region == "New_Zealand_Whangarei":<br>
# lat_min = (-36.0) # needs to exactly match the ERDDAP
lat/lon ranges<br>
# lat_max = (-35.0)<br>
# lon_min = (172.5)<br>
# lon_max = (175.0) <br>
</p>
<p>/end snip</p>
<p>I used these commands in the command line:</p>
<p>gdal_translate -of GTiff -outsize 1400 0 -a_srs EPSG:3857 -a_ullr
172.5 -35.0 175.0 -36.0 ./SST_plot_New_Zealand_Whangarei_clahe.tif
./test_trans.tif <br>
<br>
gdalwarp ./test_trans.tif ./test_proj.tif</p>
<p>The result from gdal translate is test_trans.tif <a
class="moz-txt-link-rfc2396E" href="http://u.pc.cd/D4EctalK"><http://u.pc.cd/D4EctalK></a>.
The result from gdal warp is test_proj.tif <a
class="moz-txt-link-rfc2396E" href="http://u.pc.cd/a2actalK"><http://u.pc.cd/a2actalK></a>.
The problem, as you will see in the ./test_proj.tif file, is that
the corner coordinates are not projected, which means the file is
not properly projected. I'm obviously making a mistake.Would
someone mind helping me to correct my error, please?</p>
<p>Best fishes</p>
<p>Sam<br>
</p>
<p>---<br>
</p>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>email signature</title>
Sam McClatchie (fisheries oceanographer)<br>
& Elena Turin (accounting & auditing)<br>
<a
href="https://www.nzbn.govt.nz/mynzbn/nzbndetails/9429049352344/?sw="
moz-do-not-send="true">FishOcean Enterprises Ltd</a><br>
<span style="text-decoration: underline;"><a
href="http://www.fishocean.info" moz-do-not-send="true">www.fishocean.info</a></span><br>
38 Upland Rd, Huia, Auckland 0604, New Zealand<br>
cell: 027 752 8495<br>
<br>
<p><br>
</p>
</div>
</body>
</html>