[GRASS-dev] [GRASS GIS] #3498: Can't open NetCDF file
GRASS GIS
trac at osgeo.org
Sat Feb 17 03:41:29 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 [ticket:3498 mankoff]:
> In GRASS 7.2.2 I can read a netCDF file:
>
> {{{
> r.in.gdal -o input=netCDF:${ROOT}/MOD6_2000.nc:gld band=1 output=tmp --o
> WARNING: Over-riding projection check
> Proceeding with import of 366 raster bands...
> Importing raster map <tmp>...
> }}}
>
> In GRASS 7.4.0, I cannot:
>
> {{{
> r.in.gdal -o input=netCDF:${ROOT}/MOD6_2000.nc:gld band=1 output=tmp --o
> ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsProjected'.
>
> ERROR 10: Pointer 'hSRS' is NULL in 'OSRIsGeographic'.
>
> Input contains an invalid SRS. WKT definition:
> PROJCS[
> WARNING: Unable to convert input map projection information to GRASS
> format.
> }}}
>
> Same file, same GRASS location.
>
> Google finds 0 results for the string "Pointer 'hSRS' is NULL in
'OSRIsProjected'", so I'm not even sure what project (GRASS, proj, gdal)
might be causing this problem. Sample file is attached.
which EPSG/projection has this dataset?
gdalinfo says
{{{
polar_stereographic#false_easting=0
polar_stereographic#false_northing=0
polar_stereographic#GeoTransform=-653000 4992.671009771987 0 -632500 0
-5003.636363636364
polar_stereographic#grid_mapping_name=polar_stereographic
polar_stereographic#inverse_flattening=298.257223563
polar_stereographic#latitude_of_projection_origin=90
polar_stereographic#longitude_of_prime_meridian=0
polar_stereographic#long_name=CRS definition
polar_stereographic#semi_major_axis=6378137
polar_stereographic#spatial_ref=PROJCS[
polar_stereographic#standard_parallel=70
polar_stereographic#straight_vertical_longitude_from_pole=-45
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3498#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list