[GRASS-user] Issue with netcdf import into GRASS 7

Markus Neteler neteler at osgeo.org
Tue Jun 9 00:45:30 PDT 2015


On Tue, Jun 9, 2015 at 4:47 AM, Thomas Adams <tea3rd at gmail.com> wrote:
> All:
>
> Using the help found here: http://grasswiki.osgeo.org/wiki/NetCDF I have
> been able to import a netcdf file into GRASS 7, but the data is not scaled
> correctly.
...
>
> This is my import command:
>
> r.in.gdal input=NETCDF:"geo_em.d02.nc":GREENFRAC output=greenfrac -o -e
> --overwrite
>
> which produces..
>
> Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute
...
> I am virtually certain the lower left corner is placed correctly, because I
> can zoom to the lower-left location and it falls about where it should --
> however the spatial extent of the data is not what it should be, but when
> zoomed-in looks correct.

Tom, I believe that the gdal list is the right place here since the
netCDF file is not read properly.
Once solved, r.in.gdal will run out of the box.

Perhaps they could give you hints how to convert the file with
gdalwarp into e.g. a GeoTIFF which you can then import without
problems.

Markus


More information about the grass-user mailing list