<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>David,</p>
<p>providing a link to a such file could be useful for investigation</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 28/06/2021 à 20:59, Hill, David
Foster a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:64E16133-8CCD-4977-B0CE-48D8F0952547@oregonstate.edu">
<pre class="moz-quote-pre" wrap="">Hello.
I am new to GDAL, and have spent the past two weeks exploring its use for (largely) nc —> tiff conversions. I am puzzled by a few things, however. I have a .nc file and when I use
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">ncdump -c file.nc
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
the coords are shown to me. The min x is 487200 and the min y is 4690100. The grid size is 100 m. If I then do:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">gdal_translate -of GTiff file.nc file.tif
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
and then
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">gdalinfo file.tif,
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
it shows the ‘lower left’ corner coordinates as
486790, 4690050
For the y coord, I can see how this makes sense…assume that ncdump is giving coords of the grid cell centers, not the ‘corner’ of the grid cells. Thus, the 50 m difference. For the x coord, the values are like 410 m different, so I am puzzled about that.
I am sure this is an overly simple question, but I would welcome any tips / guidance on what I am doing wrong. Thank you.
---------------------------------------------------
David F. Hill
Professor
Civil and Construction Engineering
Oregon State University
220 Owen Hall
Corvallis, OR 97331
541.737.4939
<a class="moz-txt-link-abbreviated" href="mailto:david.hill@oregonstate.edu">david.hill@oregonstate.edu</a>
<a class="moz-txt-link-freetext" href="http://www.engr.oregonstate.edu/~dfh">http://www.engr.oregonstate.edu/~dfh</a>
---------------------------------------------------
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>