Re: Fatal error when reading gfs GRIB2 file

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 01 Sep 2009 10:26:45 -0600

We got the file. Other than a variable not being in the 5.1.1 table, we can
read the file with no problem.

Can you pls send (offline) the output from

%> uname -a

%> gcc --version
=====================================================

%> ncl_filedump fh.0000_tl.press_gr.1p0deg.grb

or, after looking at the original ncl_filedump, the '-v' option was set to
the variable.

%> ncl_filedump -v VAR_2_3_203_P0_L1_GLL0 fh.0000_tl.press_gr.1p0deg.grb
| less

Copyright (C) 1995-2009 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 5.1.1

warning: Entry (203) not found in code table file
/contrib/ncarg/lib/ncarg/grib2_codetables/ncep/4/4.2.2.3.table
Variable: f (file variable)

filename: fh.0000_tl.press_gr.1p0deg

[SNIP]

float VAR_2_3_203_P0_L1_GLL0 ( lat_0, lon_0 )
center : US National Weather Service - NCEP (WMC)
production_status : Operational products
long_name : unknown variable name
units : unknown
_FillValue : 1e+20
grid_type : Latitude/longitude
parameter_discipline_and_category : Land surface products, Mass
parameter_template_discipline_category_number : ( 0, 2, 3, 203 )
level_type : Ground or water surface
level : 0
forecast_time : 0
forecast_time_units : hours
initial_time : 08/30/2009 (00:00)

[SNIP]

=========================

Variables:

VAR_2_3_203_P0_L1_GLL0:

0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
[snip]
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2846 0.2846 0.1000E+21 0.2485 0.3679
0.3679 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.3679 0.3679 0.3679 0.1000E+21 0.1000E+21 0.1000E+21
0.3679 0.1000E+21 0.1000E+21 0.3679 0.3679 0.1000E+21
0.2485 0.2485 0.3317 0.3317 0.2485 0.1000E+21
0.1000E+21 0.2485 0.2485 0.2485 0.1000E+21 0.2485
0.2485 0.2485 0.2485 0.1000E+21 0.2485 0.2485
0.2485 0.2485 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.2485 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2485 0.2485 0.2485 0.2485 0.2485
0.2485 0.2485 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21 0.1000E+21
[SNIP]
=========================

Gilmour, Isla wrote:
>
> Hi. I just moved from running NCL vs 5.0.0 to vs5.1.1 and am having an
> issue with code which previously ran to completion daily. I can’t see
> anything of relevance in the archives or on the NCL website… so any
> insight would be appreciated.
>
> The file is a z500 GFS file, downloaded from NCEP. With vs 4.3.0 it
> uploaded & I extracted the z500 variable, namely
> HGT_P0_L100_GLL0(13,:,:). But now I can’t even open the file.
>
> gilmour_at_xxx.nyc:/weather/gfs/20090831/00> ncl
>
> Copyright (C) 1995-2009 - All Rights Reserved
>
> University Corporation for Atmospheric Research
>
> NCAR Command Language Version 5.1.1
>
> The use of this software is governed by a License Agreement.
>
> See http://www.ncl.ucar.edu/ for more details.
>
> ncl 0> file1 = addfile("fh.0000_tl.press_gr.1p0deg.grib2","r")
>
> fatal:NclGRIB2: Invalid Product Definition Template.
>
> fatal:Could not open (fh.0000_tl.press_gr.1p0deg)
>
> Another piece of code which reads in ECMWF grib data continues to run
> to completion with vs5.1.1, suggesting that I have NCARG_ROOT etc set
> up properly.
>
> Isla
>
> -------------------------------------------------------------------------
> Dr Isla Gilmour
> D. E. Shaw & Co. (U.K.) Ltd.
>
> /D. E. Shaw & Co. (U.K.), Ltd., which is authorised and regulated by
> the Financial Services Authority, may record telephone calls made to
> or from our business and otherwise gather personal information that
> you may share in the course of our dealings with you. This information
> will be used for the purposes of providing services, keeping records,
> and regulatory compliance and, accordingly, may be transferred outside
> of the European Economic Area to other D. E. Shaw group companies. /
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 01 2009 - 10:26:45 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 07:55:08 MDT