[gradsusr] error reading GRIB2 file

Subhajit Ghosh subhajitghosh08 at gmail.com
Fri Sep 27 10:01:47 EDT 2019


Hi everyone
I am unable to read a GRIB2 file in GrADS and its showing following error

Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5
opendap-grids,stn geotiff shapefile

ga-> open wvhgt2.ctl

Scanning description file:  wvhgt2.ctl
Data file wvhgt.grib2 is open as file 1
LON set to 0 360
LAT set to -90 90
LEV set to 1 1
Time values set: 2019:9:11:0 2019:9:11:0
E set to 1 1
ga-> q file

File 1 : wvhgt.grib2
  Descriptor: wvhgt2.ctl
  Binary: wvhgt.grib2
  Type = Gridded
  Xsize = 1440  Ysize = 721  Zsize = 1  Tsize = 24  Esize = 1
  Number of Variables = 1
     wvhgtsfc  0  10,0,5  ** surface Significant Height of Wind Waves [m]

ga-> d wvhgtsfc

g2_unpack7: Data Representation Template 5.40 not yet implemented.

g2_getfld: return from g2_unpack7 = 4
GRIB2 I/O Error: g2_getfld failed, ierr=14
Data Request Error:  Error for variable 'wvhgtsfc'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = wvhgtsfc

If anyone can suggest  what's the problem and possible solution
using wgrib2 v0.2.0.8 2/2019

files are attached herewith
thanks & Regards
Subhajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190927/bea29454/attachment-0001.html>
-------------- next part --------------
subha at LAPTOP-6FCD7QOT:~/down3/grdstest$wgrib2 wvhgt.grib2 -netcdf nwvhgt.nc
subha at LAPTOP-6FCD7QOT:~/down3/grdstest$ cdo infov nwvhgt.nc
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter name
     1 : 2019-09-11 00:00:00       0  1038240  680389 :    0.050049      2.1007      11.464 : WVHGT_surface
     2 : 2019-09-11 01:00:00       0  1038240  679864 :    0.050005      2.1013      11.688 : WVHGT_surface
     3 : 2019-09-11 02:00:00       0  1038240  680788 :    0.050000      2.0983      11.773 : WVHGT_surface
     4 : 2019-09-11 03:00:00       0  1038240  680543 :    0.050019      2.0935      11.746 : WVHGT_surface
     5 : 2019-09-11 04:00:00       0  1038240  681753 :    0.050060      2.0910      11.712 : WVHGT_surface
     6 : 2019-09-11 05:00:00       0  1038240  683051 :    0.050021      2.0894      11.670 : WVHGT_surface
     7 : 2019-09-11 06:00:00       0  1038240  683967 :    0.050044      2.0901      11.697 : WVHGT_surface
     8 : 2019-09-11 07:00:00       0  1038240  684645 :    0.050071      2.0907      11.878 : WVHGT_surface
     9 : 2019-09-11 08:00:00       0  1038240  685178 :    0.050027      2.0919      12.151 : WVHGT_surface
    10 : 2019-09-11 09:00:00       0  1038240  686101 :    0.050078      2.0929      12.210 : WVHGT_surface
    11 : 2019-09-11 10:00:00       0  1038240  686748 :    0.050019      2.0919      12.145 : WVHGT_surface
    12 : 2019-09-11 11:00:00       0  1038240  688635 :    0.050011      2.0926      11.976 : WVHGT_surface
    13 : 2019-09-11 12:00:00       0  1038240  689896 :    0.050012      2.0950      11.720 : WVHGT_surface
    14 : 2019-09-11 13:00:00       0  1038240  690339 :    0.050036      2.0929      11.462 : WVHGT_surface
    15 : 2019-09-11 14:00:00       0  1038240  690578 :    0.050044      2.0901      11.209 : WVHGT_surface
    16 : 2019-09-11 15:00:00       0  1038240  690093 :    0.050024      2.0855      11.134 : WVHGT_surface
    17 : 2019-09-11 16:00:00       0  1038240  688823 :    0.050040      2.0816      11.185 : WVHGT_surface
    18 : 2019-09-11 17:00:00       0  1038240  687669 :    0.050080      2.0799      11.240 : WVHGT_surface
    19 : 2019-09-11 18:00:00       0  1038240  686701 :    0.050008      2.0784      11.249 : WVHGT_surface
    20 : 2019-09-11 19:00:00       0  1038240  686377 :    0.050048      2.0805      11.225 : WVHGT_surface
    21 : 2019-09-11 20:00:00       0  1038240  686259 :    0.050082      2.0825      11.240 : WVHGT_surface
    22 : 2019-09-11 21:00:00       0  1038240  686201 :    0.050007      2.0839      11.224 : WVHGT_surface
    23 : 2019-09-11 22:00:00       0  1038240  686324 :    0.050020      2.0838      11.142 : WVHGT_surface
    24 : 2019-09-11 23:00:00       0  1038240  686702 :    0.050038      2.0865      11.009 : WVHGT_surface
cdo infon: Processed 24917760 values from 1 variable over 24 timesteps [0.38s 38MB]
subha at LAPTOP-6FCD7QOT:~/down3/grdstest$ cdo infov wvhgt.grib2
    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter name
     1 : 2019-09-11 00:00:00       0  1038240  680389 :    0.050049      2.1007      11.464 : shww
     2 : 2019-09-11 01:00:00       0  1038240  679864 :    0.050005      2.1013      11.688 : shww
     3 : 2019-09-11 02:00:00       0  1038240  680788 :    0.050000      2.0983      11.773 : shww
     4 : 2019-09-11 03:00:00       0  1038240  680543 :    0.050019      2.0935      11.746 : shww
     5 : 2019-09-11 04:00:00       0  1038240  681753 :    0.050060      2.0910      11.712 : shww
     6 : 2019-09-11 05:00:00       0  1038240  683051 :    0.050021      2.0894      11.670 : shww
     7 : 2019-09-11 06:00:00       0  1038240  683967 :    0.050044      2.0901      11.697 : shww
     8 : 2019-09-11 07:00:00       0  1038240  684645 :    0.050071      2.0907      11.878 : shww
     9 : 2019-09-11 08:00:00       0  1038240  685178 :    0.050027      2.0919      12.151 : shww
    10 : 2019-09-11 09:00:00       0  1038240  686101 :    0.050078      2.0929      12.210 : shww
    11 : 2019-09-11 10:00:00       0  1038240  686748 :    0.050019      2.0919      12.145 : shww
    12 : 2019-09-11 11:00:00       0  1038240  688635 :    0.050011      2.0926      11.976 : shww
    13 : 2019-09-11 12:00:00       0  1038240  689896 :    0.050012      2.0950      11.720 : shww
    14 : 2019-09-11 13:00:00       0  1038240  690339 :    0.050036      2.0929      11.462 : shww
    15 : 2019-09-11 14:00:00       0  1038240  690578 :    0.050044      2.0901      11.209 : shww
    16 : 2019-09-11 15:00:00       0  1038240  690093 :    0.050024      2.0855      11.134 : shww
    17 : 2019-09-11 16:00:00       0  1038240  688823 :    0.050040      2.0816      11.185 : shww
    18 : 2019-09-11 17:00:00       0  1038240  687669 :    0.050080      2.0799      11.240 : shww
    19 : 2019-09-11 18:00:00       0  1038240  686701 :    0.050008      2.0784      11.249 : shww
    20 : 2019-09-11 19:00:00       0  1038240  686377 :    0.050048      2.0805      11.225 : shww
    21 : 2019-09-11 20:00:00       0  1038240  686259 :    0.050082      2.0825      11.240 : shww
    22 : 2019-09-11 21:00:00       0  1038240  686201 :    0.050007      2.0839      11.224 : shww
    23 : 2019-09-11 22:00:00       0  1038240  686324 :    0.050020      2.0838      11.142 : shww
    24 : 2019-09-11 23:00:00       0  1038240  686702 :    0.050038      2.0865      11.009 : shww
cdo infon: Processed 24917760 values from 1 variable over 24 timesteps [4.70s 59MB]


Grid Analysis and Display System (GrADS) Version 2.2.0
Copyright (C) 1988-2017 by George Mason University
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information

Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
Landscape mode? ('n' for portrait):  y
GX Package Initialization: Size = 11 8.5
ga-> open wvhgt2.ctl
Scanning description file:  wvhgt2.ctl
Data file wvhgt.grib2 is open as file 1
LON set to 0 360
LAT set to -90 90
LEV set to 1 1
Time values set: 2019:9:11:0 2019:9:11:0
E set to 1 1
ga-> q file
File 1 : wvhgt.grib2
  Descriptor: wvhgt2.ctl
  Binary: wvhgt.grib2
  Type = Gridded
  Xsize = 1440  Ysize = 721  Zsize = 1  Tsize = 24  Esize = 1
  Number of Variables = 1
     wvhgtsfc  0  10,0,5  ** surface Significant Height of Wind Waves [m]
ga-> d wvhgtsfc
g2_unpack7: Data Representation Template 5.40 not yet implemented.
g2_getfld: return from g2_unpack7 = 4
GRIB2 I/O Error: g2_getfld failed, ierr=14
Data Request Error:  Error for variable 'wvhgtsfc'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = wvhgtsfc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wvhgt.ctl
Type: application/octet-stream
Size: 590 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190927/bea29454/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wvhgt.grib2
Type: application/octet-stream
Size: 20075733 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190927/bea29454/attachment-0003.obj>


More information about the gradsusr mailing list