How NDFD Treats wwaHazards

wwaHazards(Watch, Warning, Advisory Hazards) in NDFD is handled by including a wwaHazard 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(Codes) which refer to that entry in the wwaHazard string table. The entries consist of ASCII wwaHazard strings which have up to 5 wwaHazards separated by '^'.  Simple wwaHazards are of the form "AA.B^CC.D" where AA and CC are a two letter descriptor unique to each Hazard, and B and D are either a "W" for Warning, an "A" for Watch, a "Y" for Advisory or a "S" for statement.


Simple Hazard code

In order to create graphical images of wwaHazards, NDFD needed a way to combine the various possibilities of wwaHazards into a discrete number of colors. So they came up with NDFD simple wwaHazards codes. degrib currently (as of 10/2024) recognizes five iterations of simple wwaHazards codes, as follows:

      1 = initial version of NDFD Simple Hazard(WWA) Code
      2 = 9/2008 version of NDFD Simple Hazard(WWA) Code
      3 = 7/2009 version of NDFD Simple Hazard(WWA) Code
      4 = 3/2017 version of NDFD Simple Hazard(WWA) Code
      5 = 10/2024 version of NDFD Simple Hazard(WWA) Code(default)

Note: If there are more than one wwaHazards at a certain grid point, degrib will always pick up on the lowest Code value of a wwaHazard. The lower the Code the higher the priority. For example, what if we have a wwaHazard of "HU.W^EC.A"? See the Simple Hazard(WWA) Code Table below. Hurricane Warning has a Code of "19", and Extreme Cold Watch has a Code of "94", so degrib will pick up on the HU.W and ignore the EC.A. 

Please see Handling wwaHazard in Degrib(below), or our man page, for instructions on how to work with wwaHazards in degrib. 


 

Current(version 5) Simple Hazard(WWA) Code Table:

wwaHazard Code Label 1
None 0 None
- 1 Tsunami Warning
- 2 Tornado Warning
- 3 Extreme Wind Warning
- 4 Severe Thunderstorm Warning
- 5 Flash Flood Warning
- 6 Flash Flood Statement
- 7 Severe Weather Statement
- 8 Shelter In Place Warning
- 9 Evacuation Immediate
- 10 Civil Danger Warning
- 11 Nuclear Power Plant Warning
- 12 Radiological Hazard Warning
- 13 Hazardous Materials Warning
- 14 Fire Warning
- 15 Civil Emergency Message
- 16 Law Enforcement Warning
SS.W 17 Storm Surge Warning
HF.W 18 Hurricane Force Wind Warning
HU.W 19 Hurricane Warning
TY.W 20 Typhoon Warning
  21 Special Marine Warning
BZ.W 22 Blizzard Warning
- 23 Snow Squall Warning
IS.W 24 Ice Storm Warning
UP.W 25 Heavy Freezing Spray Warning
WS.W 26 Winter Storm Warning
LE.W 27 Lake Effect Snow Warning
DS.W 28 Dust Storm Warning
- 29 Blowing Dust Warning
HW.W 30 High Wind Warning
TR.W 31 Tropical Storm Warning
SR.W 32 Storm Warning
- 33 Tsunami Advisory
- 34 Tsunami Watch
- 35 Avalanche Warning
- 36 Earthquake Warning
- 37 Volcano Warning
AF.W 38 Ashfall Warning
- 39 Flood Warning
CF.W 40 Coastal Flood Warning
LS.W 41 Lakeshore Flood Warning
AF.Y 42 Ashfall Advisory
SU.W 43 High Surf Warning
EH.W 44 Excessive Heat Warning
TO.A 45 Tornado Watch
SV.A 46 Severe Thunderstorm Watch
FF.A 47 Flash Flood Watch
GL.W 48 Gale Warning
- 49 Flood Statement
EC.W 50 Extreme Cold Warning
FZ.W 51 Freeze Warning
FW.W 52 Red Flag Warning
SS.A 53 Storm Surge Watch
HU.A 54 Hurricane Watch
HF.A 55 Hurricane Force Wind Watch
TY.A 56 Typhoon Watch
TR.A 57 Tropical Storm Watch
SR.A 58 Storm Watch
- 59 Tropical Cyclone Local Statement
WW.Y 60 Winter Weather Advisory
- 61 Avalanche Advisory
CW.Y 62 Cold Weather Advisory
HT.Y 63 Heat Advisory
FA.Y 64 Flood Advisory
CF.Y 65 Coastal Flood Advisory
LS.Y 66 Lakeshore Flood Advisory
SU.Y 67 High Surf Advisory
FG.Y 68 Dense Fog Advisory
SM.Y 69 Dense Smoke Advisory
SC.Y 70 Small Craft Advisory
BW.Y 71 Brisk Wind Advisory
SE.W 72 Hazardous Seas Warning
- 73 Dust Advisory
DU.Y 74 Blowing Dust Advisory
LW.Y 75 Lake Wind Advisory
WI.Y 76 Wind Advisory
FR.Y 77 Frost Advisory
ZF.Y 78 Freezing Fog Advisory
UP.Y 79 Freezing Spray Advisory
LO.Y 80 Low Water Advisory
- 81 Local Area Emergency
WS.A 82 Winter Storm Watch
RP.S 83 Rip Current Statement
BH.S 84 Beach Hazards Statement
GL.A 85 Gale Watch
- 86 Avalanche Watch
SE.A 87 Hazardous Seas Watch
UP.A 88 Heavy Freezing Spray Watch
FA.A 89 Flood Watch
CF.A 90 Coastal Flood Watch
LS.A 91 Lakeshore Flood Watch
HW.A 92 High Wind Watch
EH.A 93 Excessive Heat Watch
EC.A 94 Extreme Cold Watch
FZ.A 95 Freeze Watch
FW.A 96 Fire Weather Watch
- 97 Extreme Fire Danger
- 98 911 Telephone Outage
- 99 Coastal Flood Statement
- 100 Lakeshore Flood Statement
- 101 Special Weather Statement
- 102 Marine Weather Statement
- 103 Air Quality Alert
AS.Y 104 Air Stagnation Advisory
- 105 Hazardous Weather Outlook
- 106 Hydrologic Outlook
- 107 Short Term Forecast
- 108 Administrative Message
- 109 Test
- 110 Child Abduction Emergency
- 111 Blue Alert
     

 

Handling wwaHazards in Degrib

Handing wwaHazards: Degrib -P Option

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

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

Handling wwaHazards: Degrib -C Option

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 ds.wwa.bin -C -Flt -Met -msg 1 => convert the message to a NxM 4 byte float file where each cell contains the number in the wwaHazards string lookup table contained in the .txt file (created with the default -Met option)
  2. degrib ds.wwa.bin -C -Flt -nMet -msg 1 -SimpleWWA 5=> convert the message to a NxM 4 byte float file using simple wwaHazards scheme 5 (see Table above).

The -C -Csv option

  1. degrib ds.wwa.bin -C -Csv -msg 1 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and wwaHazards value for each cell. In this case the wwaHazards value is the wwaHazards string.
  2. degrib ds.wwa.bin -C -Csv -msg 1 -WxParse 1 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and wwaHazards value for each cell. In this case the wwaHazards value is the wwaHazards string converted to english.
  3. degrib ds.wwa.bin -C -Csv -msg 1 -WxParse 2 => convert the message to an ASCII comma delimited file with a x, y, lat, lon, and wwaHazards value for each cell. In this case the wwaHazards value is the wwaHazards string converted to an NDFD simple wwaHazards code (see Table above).

DeGRIB for NDFD