<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
The following works for the proper orientation but there's a shift. I would consult the documentation as they usually specify conversion params.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted2">
gdal_translate -of GTiff -a_srs EPSG:4326 -a_ullr -179.9 -72.7 180 72.7 -co COMPRESS=LZW NETCDF:GLOBCOMPLIR_nc.2023080819:data ofn.tif<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Dori <izzybitsie@gmail.com><br>
<b>Sent:</b> Wednesday, August 9, 2023 2:29 PM<br>
<b>To:</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> [gdal-dev] convert NETCDF to Geotiff upside down</font>
<div> </div>
</div>
<div>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">
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>
</div>
</body>
</html>