[CAP] NOAA Implementation of CAP
Bill
billmarriott at viaradio.com
Wed Mar 21 09:24:06 PDT 2007
I am having issues with dealing with NOAA cap Alert files such as
http://www.weather.gov/alerts/fl.cap
I am using the Description but they often seem to add lots of non text
information and some text information that could go in other fields - like
counties affected ( Cap:areaDesc) and the cancel time ( Cap: Expires).
This means I have to do some pretty ugly parsing and Regular Expressions to
find and delete all those numbers
I would be interested in hearing what the CAP gurus think of this ..
Thanks
Bill
Example from today
- <http://www.weather.gov/alerts/sc.cap> <cap:info>
<cap:category>Met</cap:category>
<cap:event>Flood Warning</cap:event>
<cap:urgency>Unknown</cap:urgency>
<cap:severity>Unknown</cap:severity>
<cap:certainty>Unknown</cap:certainty>
<cap:effective>2007-03-21T14:58:00</cap:effective>
<cap:expires>2007-03-26T03:00:00</cap:expires>
<cap:headline>FLOOD STATEMENT</cap:headline>
<cap:description>FLOOD STATEMENT NATIONAL WEATHER SERVICE CHARLESTON SC
1057 AM EDT WED MAR 21 2007 ...THE FLOOD WARNING CONTINUES FOR THE FOLLOWING
RIVERS IN SOUTH CAROLINA... LOWER SANTEE RIVER NEAR JAMESTOWN STAY TUNED TO
NOAA WEATHER RADIO ALL HAZARDS OR LOCAL RADIO AND TV FOR THE LATEST UPDATES.
SCC015-019-220857- /X.EXT.KCHS.FL.W.0001.000000T0000Z-070326T0300Z/
/JAMS1.2.ER.070304T1615Z.070313T1330Z.070325T2100Z.NO/ 1057 AM EDT WED MAR
21 2007 ...FLOOD WARNING WARNING CONTINUES FOR THE LOWER SANTEE RIVER NEAR
JAMESTOWN. * UNTIL FURTHER NOTICE. * AT 9 AM WEDNESDAY THE STAGE WAS 12.6
FEET. * MINOR FLOODING IS OCCURRING AND IS FORECAST TO CONTINUE. * FLOOD
STAGE IS 10.0 FEET. $$</cap:description>
<cap:web>http://www.weather.gov/alerts/SC.html#SCC015.CHSFLSCHS.14:58:00</ca
p:web>
- <http://www.weather.gov/alerts/sc.cap> <cap:area>
<cap:areaDesc>Berkeley (South Carolina)</cap:areaDesc>
<cap:geocode>045015</cap:geocode>
</cap:area>
</cap:info>
More information about the CAP-list
mailing list