[GRASS-dev] [GRASS GIS] #3498: Can't open NetCDF file
GRASS GIS
trac at osgeo.org
Sat Feb 17 04:06:16 PST 2018
#3498: Can't open NetCDF file
--------------------------+-------------------------
Reporter: mankoff | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.1
Component: Default | Version: 7.4.0
Resolution: | Keywords:
CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Comment (by hellik):
Replying to [comment:2 mankoff]:
>
> {{{
> g.proj -j
> +proj=stere
> +lat_0=90
> +lat_ts=70
> +lon_0=-45
> +k=1
> +x_0=0
> +y_0=0
> +no_defs
> +a=6378137
> +rf=298.257223563
> +towgs84=0.000,0.000,0.000
> +to_meter=1
> }}}
no 7.2.2 available here for testing.
location created by the above proj4 string, now here also
{{{
g.proj -j
+proj=stere
+lat_0=90
+lat_ts=70
+lon_0=-45
+k=1
+x_0=0
+y_0=0
+no_defs
+a=6378137
+rf=298.257223563
+towgs84=0,0,0,0,0,0,0
+to_meter=1
}}}
tested with
{{{
GRASS version: 7.4.0
GRASS SVN revision: r72154
Build date: 2018-01-27
Build platform: x86_64-w64-mingw32
GDAL: 2.2.3
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.17.0
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}
{{{
r.in.gdal -o input=D:\temp\nc\foo.nc output=band1 band=1
ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsProjected'.
ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsGeographic'.
WARNING: Input contains subdatasets which may need to be imported
separately
Input contains an invalid SRS. WKT definition:
PROJCS[
WARNING: Unable to convert input map projection information to GRASS
format.
Over-riding projection check
Importing 366 raster bands...
Importing raster map <band1>...
}}}
and
{{{
GRASS version: 7.5.svn
GRASS SVN revision: r72230
Build date: 2018-01-12
Build platform: x86_64-w64-mingw32
GDAL: 2.2.3
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.17.0
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}
{{{
r.in.gdal -o input=D:\temp\nc\foo.nc output=band2 band=2
ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsProjected'.
ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsGeographic'.
WARNING: Input contains subdatasets which may need to be imported
separately
Input contains an invalid SRS. WKT definition:
PROJCS[
WARNING: Unable to convert input map projection information to GRASS
format.
Over-riding projection check
Importing 366 raster bands...
Importing raster map <band2>...
}}}
though there is this error, the band seems to be imported.
wasn't there already a similar error with stere?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3498#comment:4>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list