Skip to content

Commit

Permalink
Antarctica
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Feb 7, 2024
1 parent 0d8a6cb commit 384130c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions monetio/profile/gml_ozonesonde.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"Narragansett, Rhode Island",
"Pago Pago, American Samoa",
"San Cristobal, Galapagos",
"South Pole, Antartica", # note sp
"South Pole, Antarctica",
"Summit, Greenland",
"Suva, Fiji",
"Trinidad Head, California",
Expand Down Expand Up @@ -51,10 +51,16 @@ def get_files(place):
if cached is not None:
return cached

url = f"{base}/{place}/100 Meter Average Files/".replace(" ", "%20")
if place == "South Pole, Antarctica":
url_place = "South Pole, Antartica" # note sp
else:
url_place = place
url = f"{base}/{url_place}/100 Meter Average Files/".replace(" ", "%20")
print(url)

r = requests.get(url, timeout=10)
r.raise_for_status()

data = []
for m in re.finditer(r'href="([a-z0-9_]+\.l100)"', r.text):
fn = m.group(1)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gml_ozonesonde.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_add_data_place_sel():
dates = pd.date_range("2023-01-01", "2023-01-31 23:59", freq="H")
df = gml_ozonesonde.add_data(
dates,
place=["Boulder, Colorado", "South Pole, Antartica"],
place=["Boulder, Colorado", "South Pole, Antarctica"],
n_procs=2,
)
assert len(df) > 0
Expand Down

0 comments on commit 384130c

Please sign in to comment.