<div dir="ltr">there is no georeferencing with this one, but as you say it has internal coordinates (which GDAL interprets as "geolocation arrays")<div><br></div><div>so, run it through the warper i.e. </div><div><br></div><div>gdalwarp NETCDF:GLOBCOMPLIR_nc.2023080819:data ofn.tif    </div><div><br></div><div>With that you can (and should) set your desired extent (-te), dimensions (-ts) [or resolution -tr], and crs (-t_crs) but GDAL will produce an output that works by heuristics if you specify none (or some) of those. </div><div><br></div><div>I did the following just for fun to see if the non-downloading pathway would work it (not sure if the config is required or not, for testing purposes I set dimension to 1024,0 which means GDAL figures out a sensible aspect ratio - just remove -ts when you're happy with the result for full resolution. )</div><div><br></div><div>gdalwarp --config AWS_NO_SIGN_REQUEST "YES" NETCDF:"/vsis3/noaa-gmgsi-pds/GMGSI_LW/2023/08/08/19/GLOBCOMPLIR_nc.2023080819":data -ts 1024 0 GLOBCOMPLIR_nc.2023080819_test.tif</div><div><br></div><div>(some details might not work depending on your GDAL version)</div><div><br></div><div>Cheers, Mike</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 10, 2023 at 6:30 AM Dori <<a href="mailto:izzybitsie@gmail.com">izzybitsie@gmail.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">Hi,<div dir="auto">I tried to convert the NETCDF stored in <a href="https://noaa-gmgsi-pds.s3.amazonaws.com/index.html#GMGSI_LW/202308/08/19/GLOBCOMPLIR_nc.2023080819" target="_blank">https://noaa-gmgsi-pds.s3.amazonaws.com/index.html#GMGSI_LW/202308/08/19/GLOBCOMPLIR_nc.2023080819</a>  to Geotiff format using following command:</div><div dir="auto"><br></div><div dir="auto">gdal_translate 0ol GTiff -a_srs EPSG:4326 -aullr -180 -72.7 179.9 -72.7 -co “COMPRESS=LZW” NETCDF:GLOBCOMPLIR_nc.2023080819:data ofn.tif</div><div dir="auto"><br></div><div dir="auto">ofn.tif is upside down.  North latitude points are in South and viceversa.</div><div dir="auto"><br></div><div dir="auto">How can I solve this upside down output?<br></div><div dir="auto">What causes this?</div><div dir="auto"><br></div><div dir="auto">I did notice that the points in the NETCDF file are not equidistant  what could be my issue. </div><div dir="auto"><br></div><div dir="auto">Thank you for any hint on how to go about getting the correct Geotiff output</div><div dir="auto"><br></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Michael Sumner<br>Software and Database Engineer<br>Australian Antarctic Division<br>Hobart, Australia<br>e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank">mdsumner@gmail.com</a></div>