NOAA logo-Select to go to the NOAA homepage
NOAA / NWS's Meteorological Development Laboratory   
  Select to go to the NWS homepage
GRIB1 logo Degrib (NDFD GRIB2 Decoder) GRIB2 logo
 
Local forecast by
"City, St"
 
 
 
 
 
 
 

Degrib: NDFD and Weather

Table of Contents:

Weather in NDFD is handled by including a weather string table in the local use section of the GRIB2 message. The grid cell values in the data part of the GRIB2 message are numbers which refer to that entry in the weather string table. The entries consist of ASCII weather strings which have upto 5 weather words separated by '^'.


Each weather word has 5 pieces separated by ':'. The 5 pieces of the weather word are as follows:

  1. Coverage / Probability
  2. Weather Type
  3. Intensity
  4. Visibility
  5. Hazards (Attributes)

The posibilities for Coverage / Probability are:
CodeMeaningCodeMeaning
<NoCov>No Coverage / probability IsoIsolated
SctScattered NumNumerous
WideWidespread OcnlOccasional
SChcSlight Chance ChcChance of
LklyLikely DefDefinite
PatchyPatchy AreasAreas of
Added 8/13/2004
PdsPeriods of FrqFrequent
InterIntermittent BrfBrief

The posibilities for Weather Type are:
CodeMeaning CodeMeaning
<NoWx>No Weather KSmoke
BDBlowing Dust BSBlowing Snow
HHaze FFog
LDrizzle RRain
RWRain Showers AHail
Hail was removed 8/12/2004
FRFrost ZLFreezing Drizzle
ZRFreezing Rain IPIce Pellets (sleet)
SSnow SWSnow Showers
TThunderstorms
Added 1/20/2004
BNBlowing Sand ZFFreezing Fog
ICIce Crystals IFIce Fog
VAVolcanic Ash ZYFreezing Spray
WPWater Spouts

The posibilities for Intensity are:
CodeMeaningCodeMeaning
<NoInten>No Intensity --Very Light
-Light mModerate
+Heavy

The posibilities for Visibility are: <NoVis>, 0SM, 1/4SM, 1/2SM, 3/4SM, 1SM, 11/2SM, 2SM, 21/2SM, 3SM, 4SM, 5SM, 6SM, P6SM

Hazards (or Attributes) are broken up into upto 5 pieces separated by ','s. The posibilities for Hazards (Attributes) are:
CodeMeaningCodeMeaning
NoneNone FLFrequent Lightning
GWGusty Winds HvyRnHeavy Rain
DmgWDamaging Wind SmASmall Hail
LgALarge Hail OLAOutlying Areas
OBOon Bridges and Overpasses
Added 8/13/2004
OGAOn Grassy Areas Drydry
TORTornado PrimaryHighest Ranking
MentionInclude Unconditionally ORor
MXmixture



Degrib has several different ways of handling weather. Starting with the "degrib -P" option, it can:

  1. Output the weather string:
    degrib wx.bin -P -pnt 35,-76 -WxParse 0
  2. Convert the weather string to english:
    degrib wx.bin -P -pnt 35,-76 -WxParse 1
  3. Convert the weather string to an NDFD simple weather code:
    degrib wx.bin -P -pnt 35,-76 -WxParse 2

What is an NDFD simple weather code? In order to create graphical images of weather, NDFD needed a way to combine the various possibilities of weather into a discrete number of colors. So they came up with NDFD simple weather codes

degrib currently (as of 12/15/2006) recognizes four iterations of simple weather codes, as follows:

  1. Simple weather code 1: 6/2003 version
  2. Simple weather code 2 & 3: 1/2004 & 2/2004 version
  3. Simple weather code 4: 11/2004 version
(Note: If you are interested in encoding schemes, you might also be interested in how we encoded the weather for ESRI Shapefiles (see here or wxshp.php.))

To get a particular simple weather code using the -P option use:

  • degrib wx.bin -P -pnt 35,-76 -WxParse 2 -SimpleVer 2

  • Note: -SimpleVer defaults to the most recent one (currently 4).

Continuing to the "degrib -C" option, it is limited in some respects by the file formats that it writes to.

The -C -Flt option
  1. degrib wx.bin -C -Flt -Met -msg 1 => convert the message to a NxM 4 byte float file where each cell contains the number in the weather string lookup table contained in the .txt file (created with the default -Met option)
  2. degrib wx.bin -C -Flt -nMet -msg 1 -SimpleVer 2 -SimpleWx => convert the message to a NxM 4 byte float file using simple weather scheme 2 (see above).
The -C -Csv option
  1. degrib wx.bin -C -Csv -msg 1 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and weather value for each cell. In this case the weather value is the weather string.
  2. degrib wx.bin -C -Csv -msg 1 -WxParse 1 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and weather value for each cell. In this case the weather value is the weather string converted to english.
  3. degrib wx.bin -C -Csv -msg 1 -WxParse 2 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and weather value for each cell. In this case the weather value is the weather string converted to an NDFD simple weather code (see above).
The -C -Shp (and -C -Shp2) options

With shapefiles, I could get creative, so I broke up the weather into more of its component parts. The data I provide are as follows:
  1. Wx: The original weather string.
  2. Wx-index: The index into the original weather table that came with the message.
  3. Visibility: The minimum visibility in the 5 weather words, in 1/32 of a statute mile.
  4. Ndfdwxcode: The NDFD simple weather code (see above)


  5. Next, for each of the 5 weather words, I provide the following:
  6. Weather: An english translation of the weather word.
  7. Wx-inten: A combination of the weather type and the intensity. (see wxshp.php)
  8. Cover: A numeric value for coverage. (see wxshp.php)
  9. Hazard: A numeric value for hazards. (see wxshp.php)
The -NetCDF option:

    Page last Modified: December 15, 2006.
    US Dept of Commerce
    National Oceanic and Atmospheric Administration
    National Weather Service
    Meteorological Development Laboratory
1325 East West Highway
Silver Spring, MD 20910
Degrib Questions? Arthur Taylor
NDFD Questions? nws.ndfd@noaa.gov
Disclaimer
Privacy Policy