Re: [gdal-dev] convert NETCDF to Geotiff upside down

2023-08-10 Thread Dori
i < > izzybit...@gmail.com> > *Sent:* Wednesday, August 9, 2023 2:29 PM > *To:* 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.ht

Re: [gdal-dev] convert NETCDF to Geotiff upside down

2023-08-10 Thread Marius Jigmond
n.tif From: gdal-dev on behalf of Dori Sent: Wednesday, August 9, 2023 2:29 PM To: 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/

Re: [gdal-dev] convert NETCDF to Geotiff upside down

2023-08-09 Thread Michael Sumner
just a follow up, as far as I can tell the lon,lat arrays are actually natively in global Mercator, so a four-number extent would suffice but these arrays have been materialized rather than preserve that compact origin (it's very common sadly). You might feed that back to the providers and/or othe

Re: [gdal-dev] convert NETCDF to Geotiff upside down

2023-08-09 Thread Michael Sumner
there is no georeferencing with this one, but as you say it has internal coordinates (which GDAL interprets as "geolocation arrays") so, run it through the warper i.e. gdalwarp NETCDF:GLOBCOMPLIR_nc.2023080819:data ofn.tif With that you can (and should) set your desired extent (-te), dimensions

[gdal-dev] convert NETCDF to Geotiff upside down

2023-08-09 Thread Dori
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_n