projects
/
weather.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct NOAA WX weather product URL regression
[weather.git]
/
weather.py
diff --git
a/weather.py
b/weather.py
index
a8ff613
..
c375f95
100644
(file)
--- a/
weather.py
+++ b/
weather.py
@@
-1531,12
+1531,13
@@
def correlate():
zones[zone]["description"] = description
for line in data[1:]:
line = line.decode("latin1").strip()
zones[zone]["description"] = description
for line in data[1:]:
line = line.decode("latin1").strip()
- urimatch = re.match("/webdocs/(.+):(.+) for ", line)
+ urimatch = re.match("/webdocs/pub/(.+):(.+) for ",
+ line)
if urimatch:
uritype = urimatch.group(2).lower().replace(" ","_")
if urimatch:
uritype = urimatch.group(2).lower().replace(" ","_")
- zones[zone][uritype]
\
- = "http://weather.noaa.gov/%s" \
- % urimatch.group(1)
+ zones[zone][uritype]
= (
+ "http://tgftp.nws.noaa.gov/%s"
+ % urimatch.group(1)
)
count += 1
zcatalog.close()
print("done (%s files)." % count)
count += 1
zcatalog.close()
print("done (%s files)." % count)