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 <mariusjigm...@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-boun...@lists.osgeo.org> on behalf of Dori < > izzybit...@gmail.com> > *Sent:* Wednesday, August 9, 2023 2:29 PM > *To:* gdal-dev@lists.osgeo.org <gdal-dev@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 > >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev