[GRASS-dev] [GRASS GIS] #3498: Can't open NetCDF file

GRASS GIS trac at osgeo.org
Sat Feb 17 05:38:56 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 mmetz):

 Replying to [comment:4 hellik]:
 > {{{
 > 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:
 > }}}

 This is the projection info as recognized by GDAL:

 > {{{
 > PROJCS[
 > }}}

 it's incomplete.

 > {{{
 > 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.

 Yes, the error comes from GDAL and is not fatal, the band is still
 imported.

 Anyway, I have fixed this error in r72251,2 (trunk, relbr74).

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3498#comment:5>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list