Skip to content

Commit 7100b49

Browse files
committed
[2025-02-10 09:47] Micropatch for requesting specific fields
1 parent 255df41 commit 7100b49

File tree

1 file changed

+4
-1
lines changed
  • weather_provider_api/routers/weather/sources/cds

1 file changed

+4
-1
lines changed

weather_provider_api/routers/weather/sources/cds/factors.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
file_to_use_era5land = get_var_map_file_location("era5land_var_map.json")
1717

1818
with open(file_to_use_era5sl, "r") as _f:
19-
era5sl_factors = json.load(_f)
19+
era5sl_factors: dict = json.load(_f)
20+
for factor in ["mwd", "mwp", "swh"]:
21+
era5sl_factors.pop(factor)
22+
2023

2124
with open(file_to_use_era5land, "r") as _f:
2225
era5land_factors = json.load(_f)

0 commit comments

Comments
 (0)