GrADS crashes with error in g2_unpack7

Bug #1818676 reported by Jonas Kaufmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grads (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am trying to extract wave forecats for the Great Lakes. I was running trusty with grads before, and after an upgrade to bionic grads crashes on these files.

Here are some steps to reproduce the error:

wget https://nomads.ncep.noaa.gov/pub/data/nccf/com/wave/prod/glwu.20190305/glwu.grlc_2p5km.t07z.grib2 -O /var/tmp/gradsdata/glw/glwu.grlc_2p5km.t07z.grib2 (note that these files are archived for five days only, if reproducing later download a new one)

g2ctl.pl /var/tmp/gradsdata/glw/glwu.grlc_2p5km.t07z.grib > glw.ctl

gribmap -i glw.ctl

grads -b -l (copying output here):

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
GX Package Initialization: Size = 11 8.5
Running in Batch mode
ga-> open glw
Scanning description file: glw
Data file /var/tmp/gradsdata/glw/glwu.grlc_2p5km.t07z.grib2 is open as file 1
LON set to -92.6355 -74.2537
LAT set to 40.5209 49.179
LEV set to 1 1
Time values set: 2019:3:5:7 2019:3:5:7
E set to 1 1
Notice: Implied interpolation for file glw
 Interpolation will be performed on any data displayed from this file
ga-> set lat 41.9524
LAT set to 41.9524 41.9524
ga-> set lon -86.5905
LON set to -86.5905 -86.5905
ga-> set t 1 75
Time values set: 2019:3:5:7 2019:3:8:9
ga-> d HTSGWsfc
Notice: Automatic Grid Interpolation Taking Place
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 'htsgwsfc'
  Error ocurred at column 1
DISPLAY error: Invalid expression
  Expression = htsgwsfc

Grads config:
ga-> q config
Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
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

This build of GrADS has the following features:
 -+- Byte order is LITTLE ENDIAN
 -+- Athena Widget GUI DISABLED
 -+- Command line editing ENABLED
 -+- GRIB2 interface ENABLED g2clib-1.6.0
 -+- NetCDF interface ENABLED netcdf-4.6.0
 -+- OPeNDAP gridded data interface ENABLED
 -+- OPeNDAP station data interface ENABLED libgadap 2.0
 -+- HDF4 interface ENABLED hdf-4.2r13
 -+- HDF5 interface ENABLED hdf5-1.10.0
 -+- KML contour output ENABLED
 -+- GeoTIFF and KML/TIFF output ENABLED
 -+- Shapefile interface ENABLED
The 'q gxconfig' command returns Graphics configuration information

Forecast file information:

ga-> q file
File 1 : /var/tmp/gradsdata/glw/glwu.grlc_2p5km.t07z.grib2
  Descriptor: glw.ctl
  Binary: /var/tmp/gradsdata/glw/glwu.grlc_2p5km.t07z.grib2
  Type = Gridded
  Xsize = 597 Ysize = 376 Zsize = 1 Tsize = 150 Esize = 1
  Number of Variables = 16
     dirpwsfc 0 10,0,10 ** surface Primary Wave Direction [degree true]
     htsgwsfc 0 10,0,3 ** surface Significant Height Of CombinedWind Waves And Swell [m]
     perpwsfc 0 10,0,11 ** surface Primary Wave Mean Period [s]
     swdir_1 0 10,0,7 ** 1 in sequence Direction Of Swell Waves [degree true]
     swdir_2 0 10,0,7 ** 2 in sequence Direction Of Swell Waves [degree true]
     swell_1 0 10,0,8 ** 1 in sequence Significant Height Of Swell Waves [m]
     swell_2 0 10,0,8 ** 2 in sequence Significant Height Of Swell Waves [m]
     swper_1 0 10,0,9 ** 1 in sequence Mean Period Of Swell Waves [s]
     swper_2 0 10,0,9 ** 2 in sequence Mean Period Of Swell Waves [s]
     ugrdsfc 0 0,2,2 ** surface U-Component Of Wind [m s-1]
     vgrdsfc 0 0,2,3 ** surface V-Component Of Wind [m s-1]
     wdirsfc 0 0,2,0 ** surface Wind Direction (from Which Blowing) [Degrees true]
     windsfc 0 0,2,1 ** surface Wind Speed [m s-1]
     wvdirsfc 0 10,0,4 ** surface Direction Of Wind Waves [degree true]
     wvhgtsfc 0 10,0,5 ** surface Significant Height Of Wind Waves [m]
     wvpersfc 0 10,0,6 ** surface Mean Period Of Wind Waves [s]

---

Ubuntu Version 18.04.2 LTS
grads Package Version: 3:2.2.0-2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.