Make the NOAA METAR URL point to the new address
This commit is contained in:
+2
-2
@@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user