[ncl-talk] Is there a workaround for entries not found in grib file?

Andrew Kren - NOAA Federal andrew.kren at noaa.gov
Thu Sep 23 13:24:57 MDT 2021


Thanks Dennis!

On Thu, Sep 23, 2021 at 3:19 PM Dennis Shea <shea at ucar.edu> wrote:

> If you have the source GRIB description file .....
>
> Here is a PyNCL (same as NCL) response by Dave Brown:
> *     https://www.pyngl.ucar.edu/User_forum/Archives/2009/0094.html*
> <https://www.pyngl.ucar.edu/User_forum/Archives/2009/0094.html>
>
> If (say)
>
>        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*
> -----------------
>
>        fgrb = addfile("foo.grb","r")
>        x = f->VAR_2_3_203_P0_L1_GLL0    ; you can name the NCL script
> variable anything
>                                                                    ; kren
> = f->VAR_2_3_203_P0_L1_GLL0
> The user will have to provide the variable name and  units
>
>         x at longname = "Phooey"
>         x at units         = "???"
>
> =======
>
>
>
>
> On Thu, Sep 23, 2021 at 12:47 PM Andrew Kren - NOAA Federal via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi ncl-talk,
>>
>> Not sure if this is fixable, but when I do an ncl_filedump on one of the
>> HRRR (high-res atmospheric model) grib files, I get several warnings:
>>
>> Copyright (C) 1995-2019 - All Rights Reserved
>>
>>  University Corporation for Atmospheric Research
>>
>>  NCAR Command Language Version 6.6.2
>>
>>  The use of this software is governed by a License Agreement.
>>
>>  See http://www.ncl.ucar.edu/ for more details.
>>
>> warning: Entry (204) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table
>>
>> ^Mwarning: Entry (205) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table
>>
>> ^Mwarning: Entry (206) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table
>>
>> ^Mwarning: Entry (201) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.16.table
>>
>> ^Mwarning: Entry (231) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.2.0.table
>>
>> ^Mwarning: Entry (232) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.2.0.table
>>
>> ^Mwarning: Entry (200) not found in code table file
>> /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table
>>
>>
>> I also get several variables where it says:
>>
>>
>> float VAR_0_7_206_P0_2L103_GLC0 ( ygrid_0, xgrid_0 )
>>
>>          center :       US National Weather Service - NCEP (WMC)
>>
>>          production_status :    Operational products
>>
>>          long_name :    unknown variable name
>>
>>          units :        unknown
>>
>>          _FillValue :   1e+20
>>
>>          coordinates :  gridlat_0 gridlon_0
>>
>>          grid_type :    Lambert Conformal can be secant or tangent,
>> conical or bipolar
>>
>>          parameter_discipline_and_category :    Meteorological products,
>> Thermodynamic stability indices
>>
>>          parameter_template_discipline_category_number :        ( 0, 0,
>> 7, 206 )
>>
>>          level_type :   Specified height level above ground (m)
>>
>>          level :        (  0, 500 )
>>
>>          forecast_time :        6
>>
>>          forecast_time_units :  hours
>>
>>          initial_time : 09/23/2021 (00:00)
>>
>>
>> I know what these errors mean, that the variables are not distinguishable
>> by the grib tables in ncl. I was wondering if anyone has any ideas on how
>> best to rectify this issue? Is there a way to figure out the variable names?
>>
>> Thanks much as always!
>> --
>>
>> Andrew Kren
>> Meteorologist
>> NOAA's National Weather Service
>> Raleigh Forecast Office
>> 1005 Capability Drive, Suite 300
>> Raleigh, North Carolina 27606
>> voice: 919-326-1035
>> mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 

Andrew Kren
Meteorologist
NOAA's National Weather Service
Raleigh Forecast Office
1005 Capability Drive, Suite 300
Raleigh, North Carolina 27606
voice: 919-326-1035
mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210923/a4fcf2d1/attachment.html>


More information about the ncl-talk mailing list