[gdal-dev] convert NETCDF to Geotiff upside down

Dori izzybitsie at gmail.com
Thu Aug 10 16:06:04 PDT 2023


Thank you all for the helpful information.
I tried the conversion with the -ts and without but I did not see a big
difference in the output Geotiff image.



On Thu, Aug 10, 2023 at 08:31 Marius Jigmond <mariusjigmond at hotmail.com>
wrote:

> 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/3ae760ec/attachment.htm>


More information about the gdal-dev mailing list