Skip to content

Commit 1c4f80c

Browse files
authored
NL model inclusion (MO) (#300)
1 parent a1f17c9 commit 1c4f80c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ dependencies = [
3030
"returns == 0.24.0",
3131
"s3fs == 2024.9.0",
3232
"xarray == 2025.1.0",
33-
"zarr == 2.18.3"
33+
"zarr == 2.18.3",
34+
"pandas < 3.0"
3435
]
3536

3637
[dependency-groups]

src/nwp_consumer/internal/entities/coordinates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import dask.array
4747
import numpy as np
4848
import pandas as pd
49-
import pytz
5049
import xarray as xr
5150
from returns.result import Failure, ResultE, Success
5251

@@ -374,7 +373,7 @@ def to_pandas(self) -> dict[str, pd.Index]:
374373
out_dict: dict[str, pd.Index] = { # type: ignore
375374
"init_time": pd.Index(
376375
[
377-
np.datetime64(t.astimezone(pytz.utc).replace(tzinfo=None), "ns")
376+
np.datetime64(t.astimezone(dt.UTC).replace(tzinfo=None), "ns")
378377
for t in self.init_time
379378
],
380379
),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def repository() -> entities.RawRepositoryMetadata:
165165
"default": entities.Models.MO_UM_GLOBAL_10KM.with_region("india"),
166166
"um-global-10km-india": entities.Models.MO_UM_GLOBAL_10KM.with_region("india"),
167167
"um-global-10km-uk": entities.Models.MO_UM_GLOBAL_10KM.with_region("uk"),
168+
"um-global-10km-nl": entities.Models.MO_UM_GLOBAL_10KM.with_region("nl"),
168169
"um-ukv-2km": entities.Models.MO_UM_UKV_2KM_LAEA,
169170
},
170171
)

0 commit comments

Comments
 (0)