X-Git-Url: https://www.yuggoth.org/gitweb?p=weather.git;a=blobdiff_plain;f=weather.py;h=48bb8d1f10f525c921fd812a6327722794f4aa77;hp=dbd732105d1f6ef07c882a11bbdf53921cff9f8e;hb=c2edb3e07fd8ed35377e19cc1cb1c7049bd62e1b;hpb=562fc1c1df0671a71f5cdffb03c4573b96338009 diff --git a/weather.py b/weather.py index dbd7321..48bb8d1 100644 --- a/weather.py +++ b/weather.py @@ -1,12 +1,12 @@ """Contains various object definitions needed by the weather utility.""" weather_copyright = """\ -# Copyright (c) 2006-2014 Jeremy Stanley . Permission to +# Copyright (c) 2006-2016 Jeremy Stanley . Permission to # use, copy, modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. #""" -weather_version = "2.0" +weather_version = "2.1" radian_to_km = 6372.795484 radian_to_mi = 3959.871528 @@ -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