[gdal-dev] convert NETCDF to Geotiff upside down
Marius Jigmond
mariusjigmond at hotmail.com
Thu Aug 10 08:31:50 PDT 2023
The following works for the proper orientation but there's a shift. I would consult the documentation as they usually specify conversion params.
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
________________________________
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of Dori <izzybitsie at gmail.com>
Sent: Wednesday, August 9, 2023 2:29 PM
To: gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
Subject: [gdal-dev] convert NETCDF to Geotiff upside down
Hi,
I tried to convert the NETCDF stored in https://noaa-gmgsi-pds.s3.amazonaws.com/index.html#GMGSI_LW/202308/08/19/GLOBCOMPLIR_nc.2023080819 to Geotiff format using following command:
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
ofn.tif is upside down. North latitude points are in South and viceversa.
How can I solve this upside down output?
What causes this?
I did notice that the points in the NETCDF file are not equidistant what could be my issue.
Thank you for any hint on how to go about getting the correct Geotiff output
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230810/4363ae0c/attachment-0001.htm>
More information about the gdal-dev
mailing list