Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-25 Thread Jeff McKenna
Hi Tony, Also, if I execute 'ncdump -k N_197901_concentration_v3.0_4326.nc' the response is "classic". (apparently the -k switch shows the 'kind' of netCDF file) Hope that also helps, -jeff -- Jeff McKenna MapServer Consulting and Training Services https://gatewaygeomatics.com/ On 201

Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-25 Thread Jeff McKenna
Hi Tony, When I execute 'ncdump -h' locally on your generated file I get a proper response (see https://pastebin.com/Ki4BTTNS). Note that MS4W is currently built against netCDF-4.7.0 (maybe you have an older netCDF library version?) PS. I'll shortly be upgrading netCDF support to the recent

Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-25 Thread Tony L.
Hello Paul,Thanks for your reply, I tried the command you suggested but the resulting file doesn't seem to plot correctly. Any suggestion? Tony Try this: gdal_translate -of netCDF -a_srs +proj=longlat N_197901_concentration_v3.0.tif out.nc Paul On 2019-11-22 1:24 PM, Tony L. wrote: > Hel

Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-25 Thread Tony L.
Hello Jeff!Thank you so much for your help!!I tried to follow your steps and works well for the transformation from tif to netcdf. I can use ncdump to check info on the file and I can plot it normally. Now, when I reproject the file to lat/lon coord using your command: gdalwarp -s_srs EPSG:3411

Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-22 Thread Paul Higgins
Try this: gdal_translate -of netCDF -a_srs +proj=longlat N_197901_concentration_v3.0.tif out.nc Paul ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-22 Thread Jeff McKenna
Hi Tony, Here are my steps. Have a nice weekend. *** #use gdalinfo to get summary (see https://gdal.org/programs/gdalinfo.html) gdalinfo -noct N_197901_concentration_v3.0.tif #review source EPSG projection (found from gdalinfo command above) in web browser goto: http://epsg.io/3411

[gdal-dev] Export a geotiff to netcdf in lat lon coordinates

2019-11-22 Thread Tony L.
HelloI'm quite new with gdal and would like to use is to rewrite a geotiff of NSIDC sea ice concentration from geotiff in polar stereographic projection into a netcdf in Lon Lat coordinates The file is located here: N_197901_concentration_v3.0.tif | | | | | | | | | | | N_197901_conce