Update NOAA WX weather products URLs
Per http://www.wxforum.net/index.php?topic=29502.0 the old http://weather.noaa.gov/pub site was deprecated and as of August 23 is no longer in service. Update the software and current dataset to use working http://tgftp.nws.noaa.gov URLs instead.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# http://weather.noaa.gov/data/nsd_cccc.txt
|
||||
# 6561bd4dc1ffd4147e35cf6dee7503d5 2011-05-04 nsd_cccc.txt
|
||||
#
|
||||
# http://weather.noaa.gov/pub/data/zonecatalog.curr.tar
|
||||
# http://tgftp.nws.noaa.gov/data/zonecatalog.curr.tar
|
||||
# 748043471973d418cb415fccc3a0000b 2007-06-07 zonecatalog.curr.tar
|
||||
#
|
||||
# http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/dictionaries/metar.tbl
|
||||
|
||||
+4677
-4677
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@
|
||||
# http://weather.noaa.gov/data/nsd_cccc.txt
|
||||
# 6561bd4dc1ffd4147e35cf6dee7503d5 2011-05-04 nsd_cccc.txt
|
||||
#
|
||||
# http://weather.noaa.gov/pub/data/zonecatalog.curr.tar
|
||||
# http://tgftp.nws.noaa.gov/data/zonecatalog.curr.tar
|
||||
# 748043471973d418cb415fccc3a0000b 2007-06-07 zonecatalog.curr.tar
|
||||
#
|
||||
# http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/dictionaries/metar.tbl
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# generated on 2014-11-10 by running:
|
||||
#
|
||||
# wget -qO- http://weather.noaa.gov/pub/data/observations/metar/decoded/ \
|
||||
# wget -qO- http://tgftp.nws.noaa.gov/data/observations/metar/decoded/ \
|
||||
# | grep '<a href="[^\.]*\.TXT">.*-'$( date +%b-%Y )' ' \
|
||||
# | sed 's,.*<a href="\([^\.]*\)\.TXT">.*,\1,' \
|
||||
# | tr A-Z a-z
|
||||
|
||||
+2
-2
@@ -1238,7 +1238,7 @@ def correlate():
|
||||
# http://weather.noaa.gov/data/nsd_cccc.txt
|
||||
# %s %s %s
|
||||
#
|
||||
# http://weather.noaa.gov/pub/data/zonecatalog.curr.tar
|
||||
# http://tgftp.nws.noaa.gov/data/zonecatalog.curr.tar
|
||||
# %s %s %s
|
||||
#
|
||||
# http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/dictionaries/metar.tbl
|
||||
@@ -1401,7 +1401,7 @@ def correlate():
|
||||
icao = line.split("#")[0].strip()
|
||||
if icao:
|
||||
stations[icao] = {
|
||||
"metar": "http://weather.noaa.gov/pub/data/observations/"\
|
||||
"metar": "http://tgftp.nws.noaa.gov/data/observations/"\
|
||||
+ "metar/decoded/%s.TXT" % icao.upper()
|
||||
}
|
||||
count += 1
|
||||
|
||||
+3
-3
@@ -99,12 +99,12 @@ defargs = home,work
|
||||
[home]
|
||||
description = Conditions and Forecast at Home
|
||||
forecast = True
|
||||
metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KRDU.TXT
|
||||
zone_forecast = http://weather.noaa.gov/pub/data/forecasts/zone/nc/ncz041.txt
|
||||
metar = http://tgftp.nws.noaa.gov/data/observations/metar/decoded/KRDU.TXT
|
||||
zone_forecast = http://tgftp.nws.noaa.gov/data/forecasts/zone/nc/ncz041.txt
|
||||
|
||||
[work]
|
||||
description = Conditions at Work
|
||||
metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KGSO.TXT
|
||||
metar = http://tgftp.nws.noaa.gov/data/observations/metar/decoded/KGSO.TXT
|
||||
.fi
|
||||
.P
|
||||
Now if
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# http://weather.noaa.gov/data/nsd_cccc.txt
|
||||
# 6561bd4dc1ffd4147e35cf6dee7503d5 2011-05-04 nsd_cccc.txt
|
||||
#
|
||||
# http://weather.noaa.gov/pub/data/zonecatalog.curr.tar
|
||||
# http://tgftp.nws.noaa.gov/data/zonecatalog.curr.tar
|
||||
# 748043471973d418cb415fccc3a0000b 2007-06-07 zonecatalog.curr.tar
|
||||
#
|
||||
# http://www.nco.ncep.noaa.gov/pmb/codes/nwprod/dictionaries/metar.tbl
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
# generated on 2014-11-10 by running:
|
||||
#
|
||||
# for area in $(
|
||||
# wget -qO- http://weather.noaa.gov/pub/data/forecasts/zone/ \
|
||||
# wget -qO- http://tgftp.nws.noaa.gov/data/forecasts/zone/ \
|
||||
# | grep '<a href="[^/]*/">' \
|
||||
# | sed 's,.*<a href="\([^/]*\)/">.*,\1,'
|
||||
# ) ; do
|
||||
# wget -qO- http://weather.noaa.gov/pub/data/forecasts/zone/$area \
|
||||
# wget -qO- http://tgftp.nws.noaa.gov/data/forecasts/zone/$area \
|
||||
# | grep '<a href="[^\.]*\.txt">.*-'$( date +%b-%Y )' ' \
|
||||
# | sed 's,.*<a href="\([^\.]*\)\.txt">.*,\1,'
|
||||
# sleep 1
|
||||
|
||||
Reference in New Issue
Block a user