<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Apologies, I misread your original question. I don't observe a
      difference in min x between the .nc file you observe and the .tif
      I get from gdal_translate. However I see the .tif you uploaded has
      indeed a difference in x, but it also has a UTM CRS, whereas the
      original .nc file has no CRS information, so I'm a bit confused if
      you attached the right .nc file.<br>
    </p>
    <div class="moz-cite-prefix">Le 29/06/2021 à 00:07, Hill, David
      Foster a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:C76054DC-9B66-4825-9A56-7EDC8023547C@oregonstate.edu">Thank
      you for the reply. I still don’t understand why the minimum x
      values from the grids are so different between the .nc and the
      .tif files. I will continue to try and figure it out.
      <div class=""><br class="">
      </div>
      <div class="">Regards,</div>
      <div class=""><br class="">
        <div class="">
          <div>---------------------------------------------------<br
              class="">
            David F. Hill<br class="">
            Professor<br class="">
            Civil and Construction Engineering<br class="">
            Oregon State University<br class="">
            220 Owen Hall<br class="">
            Corvallis, OR 97331<br class="">
            541.737.4939<br class="">
            <a href="mailto:david.hill@oregonstate.edu" class=""
              moz-do-not-send="true">david.hill@oregonstate.edu</a><br
              class="">
            <a class="moz-txt-link-freetext" href="http://www.engr.oregonstate.edu/~dfh">http://www.engr.oregonstate.edu/~dfh</a><br class="">
            ---------------------------------------------------</div>
          <div class=""><br class="">
          </div>
          <br class="Apple-interchange-newline">
        </div>
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On Jun 28, 2021, at 2:56 PM, Even Rouault <<a
                href="mailto:even.rouault@spatialys.com" class=""
                moz-do-not-send="true">even.rouault@spatialys.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">
                <p class=""><span class="">[This email originated from
                    outside of OSU. Use caution with links and
                    attachments.]</span></p>
                <div class="">
                  <p class="">As far as I can see, the netCDF driver
                    behaves as designed. It reports as the origin the
                    top-left corner of the raster.<br class="">
                  </p>
                  <div class="moz-cite-prefix">Le 28/06/2021 à 22:42,
                    Hill, David Foster a écrit :<br class="">
                  </div>
                  <blockquote type="cite"
                    cite="mid:0294865E-F60B-4E1D-A82A-5E99BE7FE191@oregonstate.edu"
                    class="">
                    Here is a link to the .tif:
                    <div class=""><br class="">
                    </div>
                    <div class=""><a
href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1ZxNdoURdLZS1HRUQUhF-evD1NpuIDcvk%2Fview%3Fusp%3Dsharing&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036202941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TEV9ZAhk1Si3JbX9YJeqCI0unDgOjrxRYxoOIQqnrdk%3D&reserved=0"
                        class="" moz-do-not-send="true">https://drive.google.com/file/d/1ZxNdoURdLZS1HRUQUhF-evD1NpuIDcvk/view?usp=sharing</a></div>
                    <div class=""><br class="">
                    </div>
                    <div class="">And here is a link to the .nc:</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><a
href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1pcXklnup5AxYe3DQfGfsZ3mwwe8WI8mf%2Fview%3Fusp%3Dsharing&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036212935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dx1yLb2i6YCPjnXudnE1JyPHKG1Wywt3IFv%2Foa7Q%2BQc%3D&reserved=0"
                        class="" moz-do-not-send="true">https://drive.google.com/file/d/1pcXklnup5AxYe3DQfGfsZ3mwwe8WI8mf/view?usp=sharing</a> </div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><br class="">
                      <div class="">
                        <div class="">---------------------------------------------------<br
                            class="">
                          David F. Hill<br class="">
                          Professor<br class="">
                          Civil and Construction Engineering<br class="">
                          Oregon State University<br class="">
                          220 Owen Hall<br class="">
                          Corvallis, OR 97331<br class="">
                          541.737.4939<br class="">
                          <a href="mailto:david.hill@oregonstate.edu"
                            class="" moz-do-not-send="true">david.hill@oregonstate.edu</a><br
                            class="">
                          <a class="moz-txt-link-freetext"
href="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.engr.oregonstate.edu%2F~dfh&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036212935%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=FDM4z8QJWywKAJRXM1aQGXma5kycby1G%2FRdlWk1rALo%3D&reserved=0"
                            moz-do-not-send="true">http://www.engr.oregonstate.edu/~dfh</a><br
                            class="">
---------------------------------------------------</div>
                        <div class=""><br class="">
                        </div>
                        <br class="Apple-interchange-newline">
                      </div>
                      <div class=""><br class="">
                        <blockquote type="cite" class="">
                          <div class="">On Jun 28, 2021, at 12:53 PM,
                            Even Rouault <<a
                              href="mailto:even.rouault@spatialys.com"
                              class="" moz-do-not-send="true">even.rouault@spatialys.com</a>>
                            wrote:</div>
                          <br class="Apple-interchange-newline">
                          <div class="">
                            <div class="">
                              <p class=""><span class="">[This email
                                  originated from outside of OSU. Use
                                  caution with links and attachments.]</span></p>
                              <div class="">
                                <p class="">David,</p>
                                <p class="">providing a link to a such
                                  file could be useful for investigation</p>
                                <p class="">Even<br class="">
                                </p>
                                <div class="moz-cite-prefix">Le
                                  28/06/2021 à 20:59, Hill, David Foster
                                  a écrit :<br class="">
                                </div>
                                <blockquote type="cite"
                                  cite="mid:64E16133-8CCD-4977-B0CE-48D8F0952547@oregonstate.edu"
                                  class="">
                                  <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" class="">
                                    <blockquote type="cite" class="">
                                      <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" class="">
                                    <blockquote type="cite" class="">
                                      <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" class="">
                                    <blockquote type="cite" class="">
                                      <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" moz-do-not-send="true">david.hill@oregonstate.edu</a>
<a class="moz-txt-link-freetext" href="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.engr.oregonstate.edu%2F~dfh&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036222929%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WsoCWjOMMxnhLJ1rpoDDmuVlzoVlrDn6rq%2FJeersJt8%3D&reserved=0" moz-do-not-send="true">http://www.engr.oregonstate.edu/~dfh</a>
---------------------------------------------------



</pre>
                                  <br class="">
                                  <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" moz-do-not-send="true">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgdal-dev&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036232923%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NIiLTgkpsV35ILi%2BAvLWsLU0KykQRfVBVlU8qNwqKTs%3D&reserved=0" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
                                </blockquote>
                                <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.spatialys.com%2F&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036232923%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XnrlFmik0IEu%2FfBUFI58nJiVhzoOPo7sXWmu5gMunys%3D&reserved=0" moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br class="">
                    </div>
                  </blockquote>
                  <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.spatialys.com%2F&data=04%7C01%7C%7C2968bf9723694d852d0708d93a7f9c9e%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637605142036242920%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=95TulRiRuakQv7Pxp7S8PGBlv2Uka5MQ0app%2F5zerWc%3D&reserved=0" moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </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>