Make the NOAA METAR URL point to the new address
This commit is contained in:
parent
5a64d51e10
commit
78a51fb6e1
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# create_metar_dat.py
|
# create_metar_dat.py
|
||||||
#
|
#
|
||||||
# Script to create metar.dat.gz by checking weather.noaa.gov for stations
|
# Script to create metar.dat.gz by checking tgftp.nws.noaa.gov for stations
|
||||||
# that have reported recently.
|
# that have reported recently.
|
||||||
#
|
#
|
||||||
# Usage: create_metar_dat.py [OUTPUT_FILENAME]
|
# Usage: create_metar_dat.py [OUTPUT_FILENAME]
|
||||||
|
@ -36,7 +36,7 @@ import urllib.request
|
||||||
|
|
||||||
filename = "metar.dat.gz" if len(sys.argv) <= 1 else sys.argv[1]
|
filename = "metar.dat.gz" if len(sys.argv) <= 1 else sys.argv[1]
|
||||||
max_age_days = 7
|
max_age_days = 7
|
||||||
url = "http://weather.noaa.gov/pub/data/observations/metar/stations/"
|
url = "http://tgftp.nws.noaa.gov/data/observations/metar/stations/"
|
||||||
|
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
script = os.path.basename(__file__)
|
script = os.path.basename(__file__)
|
||||||
|
|
Loading…
Reference in a new issue