[gradsusr] Errors with RAP model Winds....

Wesley Ebisuzaki - NOAA Federal wesley.ebisuzaki at noaa.gov
Mon Mar 28 09:12:51 EDT 2022


William,

My system (Ubuntu 20.04.1 LTS) using universe/science version of
GrADS has the same error but includes an additional error message.

ga-> d ugrd10m
*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 'ugrd10m'
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = ugrd10m
ga->

The version of GrADS doesn't support template 5.40 which is jpeg2000
compression.  The rap
file that I downloaded from nomads.ncep.noaa.gov uses jepg2000, so GrADS
could not
decode the grid.

Short term solution: I used wgrib2 to convert the file from jpeg2000 to
complex-3 compression, and
used GrADS on the new file.

    $ wgrib2 IN.grb -set_grib_type c3 -grib_out OUT.grb

Long term solution:  GrADS uses the g2clib for reading grib.  Newer
versions of g2clib have
the option of using OpenJPEG instead of Jasper for handling jpeg2000.  So
it is possible
to build GrADS with a better supported jpeg2000 library.   BTW wgrib2
v3.0.1+ has support
for either the Jasper or  OpenJPEG libraries.

Wesley

On Fri, Mar 25, 2022 at 2:24 PM Jeff Duda <jeffduda319 at gmail.com> wrote:

> WIlliam,
> You are correct that we will need more information to help with this.
>
> Please send the contents of your control file as well as output from
> wgrib2 on the data file.
>
> Also, what is your source for the RAP data files?
>
> Jeff Duda
>
> On Thu, Mar 24, 2022 at 9:36 PM William Rasch - NOAA Federal <
> william.rasch at noaa.gov> wrote:
>
>> Hi,
>>
>> I'm getting all kinds of errors trying to simply plot ugrd (any level) of
>> the RAP model.  I've seen some discussion about this but nothing I'm doing
>> seems to be working....
>>
>> The process I'm using is cat (bunch of grib2 RAP files) > rap.master
>> g2ctl rap.master > rap.master.ctl
>> gribmap -i rap.master.ctl
>>
>> I realize I may not be sharing nearly enough information for this, but
>> just spit balling if anyone has had RAP issues.  Thanks so much...here is
>> the error...
>>
>>
>> g2_getfld: return from g2_unpack7 = 4
>> GRIB2 I/O Error: g2_getfld failed, ierr=14
>> Data Request Error:  Error for variable 'ugrd10m'
>> Operation Error:  Error from mag function
>>   Error ocurred at column 1
>> DEFINE error:  Invalid expression.
>> ugrd10m vgrd10m
>> x1 isss 143.002 505.333 85.3913 309.533
>> g2_getfld: return from g2_unpack7 = 4
>> GRIB2 I/O Error: g2_getfld failed, ierr=14
>> Data Request Error:  Error for variable 'ugrd10m'
>> Operation Error:  Error from mag function
>>   Error ocurred at column 9
>> DEFINE error:  Invalid expression.
>> g2_getfld: return from g2_unpack7 = 4
>> GRIB2 I/O Error: g2_getfld failed, ierr=14
>> Data Request Error:  Error for variable 'ugrd10m'
>> Operation Error:  Error from maskout function
>> Operation Error:  Error from maskout function
>>   Error ocurred at column 1
>> DEFINE error:  Invalid expression.
>> Syntax Error:  Invalid Operand
>>   'xmag' not a variable or function name
>> Operation Error:  Error from maskout function
>> Operation Error:  Error from maskout function
>>   Error ocurred at column 1
>> DEFINE error:  Invalid expression.
>> SET error:  Missing or invalid arguments for ARRSCL option
>> Syntax Error:  Invalid Operand
>>   'ugrd' not a variable or function name
>> Operation Error:  Error from skip function
>>   Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>   Expression = skip(ugrd,10,10)
>> g2_getfld: return from g2_unpack7 = 4
>> GRIB2 I/O Error: g2_getfld failed, ierr=14
>> Data Request Error:  Error for variable 'ugrd10m'
>> Operation Error:  Error from maskout function
>>   Error ocurred at column 1
>> DEFINE error:  Invalid expression.
>> Syntax Error:  Invalid Operand
>>   'xmag' not a variable or function name
>> Operation Error:  Error from maskout function
>>   Error ocurred at column 1
>> DEFINE error:  Invalid expression.
>> Syntax Error:  Invalid Operand
>>   'ugrd' not a variable or function name
>> Operation Error:  Error from skip function
>>   Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>   Expression = skip(ugrd,10,10)
>>
>>
>> --
>>
>> William Rasch
>> Science and Operations Officer
>> Weather Forecast Office
>> Sacramento, CA
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
> --
> Jeff Duda, Research Scientist
> University of Colorado Boulder
> Cooperative Institute for Research in Environmental Sciences
> NOAA/OAR/ESRL/Global Systems Laboratory
> Boulder, CO
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220328/fea28b8d/attachment-0001.html>


More information about the gradsusr mailing list