Skip to content

Commit 7b0605f

Browse files
committed
feat(ecmwf): Add support for Netherlands live data
1 parent 233b412 commit 7b0605f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/nwp_consumer/internal/entities/modelmetadata.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ def with_region(self, region: str) -> "ModelMetadata":
121121
).map(lambda coords: dataclasses.replace(
122122
self, name=f"{self.name}_west-europe", expected_coordinates=coords,
123123
)).unwrap()
124+
case "nl":
125+
return self.expected_coordinates.crop(
126+
north=53.8, west=2.8, south=50.6, east=7.7,
127+
).map(lambda coords: dataclasses.replace(
128+
self, name=f"{self.name}_nl", expected_coordinates=coords,
129+
)).unwrap()
124130
case _:
125131
log.warning(f"Unknown region '{region}', not cropping expected coordinates.")
126132
return self

src/nwp_consumer/internal/repositories/raw_repositories/ecmwf_realtime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def repository() -> entities.RawRepositoryMetadata:
8686
"hres-ifs-uk": entities.Models.ECMWF_HRES_IFS_0P1DEGREE.with_region("uk-north60"),
8787
"hres-ifs-india": entities.Models.ECMWF_HRES_IFS_0P1DEGREE.with_region("india")\
8888
.with_chunk_count_overrides({"variable": 1}),
89+
"hres-ifs-nl": entities.Models.ECMWF_HRES_IFS_0P1DEGREE.with_region("nl"),
8990
},
9091
)
9192

0 commit comments

Comments
 (0)