Skip to content

Commit b2619f9

Browse files
committed
Add additional weather metrics to ingest_weather.py
- Added new cities: Madrid, New York, Los Angeles, Sydney, Tokyo, Beijing, and Cape Town. - Expanded metrics list to include windspeed, cloudcover, UV index, visibility, and precipitation probability.
1 parent 60341ef commit b2619f9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

metrics/examples/weather/ingest_weather.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,26 @@ def ingest() -> pd.DataFrame:
1616
("london", 51.5002, -0.1262),
1717
("berlin", 52.5235, 13.4115),
1818
("paris", 48.8567, 2.3510),
19+
("madrid", 40.4167, -3.7033),
20+
("new_york", 40.7128, -74.0060),
21+
("los_angeles", 34.0522, -118.2437),
22+
("sydney", -33.8688, 151.2153),
23+
("tokyo", 35.6812, 139.7671),
24+
("beijing", 39.9087, 116.3975),
25+
("cape_town", -33.9249, 18.4241),
1926
]
2027

2128
# Define metrics to fetch
22-
metrics = ["temperature_2m", "precipitation"]
29+
metrics = [
30+
"temperature_2m",
31+
"precipitation",
32+
"windspeed_10m",
33+
"cloudcover",
34+
"uv_index",
35+
"visibility",
36+
"precipitation_probability",
37+
"uv_index"
38+
]
2339

2440
data = {}
2541
for city, lat, lng in cities:

0 commit comments

Comments
 (0)