<div dir="ltr"><div>If you have the source GRIB description file .....<br></div><div><br></div><div>Here is a PyNCL (same as NCL) response by Dave Brown:</div><div><a href="https://www.pyngl.ucar.edu/User_forum/Archives/2009/0094.html"><b>     https://www.pyngl.ucar.edu/User_forum/Archives/2009/0094.html</b></a></div><div><br></div><div>If (say) <br></div><div><br></div><div>       float VAR_2_3_203_P0_L1_GLL0 [ lat_0, lon_0 ]
<br>
          center :       US National Weather Service - NCEP (WMC)
<br>
          production_status :    Operational products
<br>
          <b>long_name :    unknown variable name</b>
<br>
          <b>units :        unknown</b></div><div>-----------------</div><div><br></div><div>       fgrb = addfile("foo.grb","r")</div><div>       x = f->VAR_2_3_203_P0_L1_GLL0    ; you can name the NCL script variable anything<br></div><div>                                                                   ; kren = f->VAR_2_3_203_P0_L1_GLL0</div><div>The user will have to provide the variable name and  units</div><div><br></div><div>        x@longname = "Phooey"</div><div>        x@units         = "???"</div><div><br></div><div>=======</div><div><b><br></b></div><div><b><br></b>
</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 23, 2021 at 12:47 PM Andrew Kren - NOAA Federal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi ncl-talk,<div><br></div><div>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:</div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">Copyright (C) 1995-2019 - All Rights Reserved</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span> </span>University Corporation for Atmospheric Research</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span> </span>NCAR Command Language Version 6.6.2</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span> </span>The use of this software is governed by a License Agreement.</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span> </span>See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">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</font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (205) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table</span></font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (206) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table</span></font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (201) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.16.table</span></font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (231) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.2.0.table</span></font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (232) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.2.0.table</span></font></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures">^M</span><span style="font-variant-ligatures:no-common-ligatures">warning: Entry (200) not found in code table file /opt/miniconda3/envs/ncl_stable/lib/ncarg/grib2_codetables/ncep/4/4.2.0.7.table</span></font></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)">I also get several variables where it says:</span></font></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font face="arial, sans-serif" color="#000000"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></font></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">float VAR_0_7_206_P0_2L103_GLC0 ( ygrid_0, xgrid_0 )</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>center : <span>      </span>US National Weather Service - NCEP (WMC)</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>production_status :<span>    </span>Operational products</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>long_name :<span>    </span>unknown variable name</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>units :<span>        </span>unknown</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>_FillValue : <span>  </span>1e+20</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>coordinates :<span>  </span>gridlat_0 gridlon_0</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>grid_type :<span>    </span>Lambert Conformal can be secant or tangent, conical or bipolar</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>parameter_discipline_and_category :<span>    </span>Meteorological products, Thermodynamic stability indices</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>parameter_template_discipline_category_number :<span>        </span>( 0, 0, 7, 206 )</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>level_type : <span>  </span>Specified height level above ground (m)</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>level :<span>        </span>(<span>  </span>0, 500 )</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>forecast_time :<span>        </span>6</font></span></p><p style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>forecast_time_units :<span>  </span>hours</font></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal">



















</p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><span>         </span>initial_time : 09/23/2021 (00:00)</font></span></p><div><br></div><div><br></div><div>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?</div><div><br></div><div>Thanks much as always!</div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><pre cols="72" style="white-space:pre-wrap;color:rgb(34,34,34);font-family:"arial black",sans-serif"><span style="font-family:arial,helvetica,sans-serif">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: <a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a></span><span style="font-family:arial,helvetica,sans-serif">
</span><a href="http://www.weather.gov/rah" style="color:rgb(17,85,204)" target="_blank"><span style="font-family:arial,helvetica,sans-serif">http://www.weather.gov/rah</span></a></pre></div><div dir="ltr"><img src="https://www.aoml.noaa.gov/pix/AOML/50th01.png" width="420" height="65"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>