Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 3c91119

Browse files
committed
Fuix channel selection
1 parent cd619a4 commit 3c91119

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocf_datapipes/load/nwp/providers/excarta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def open_excarta(zarr_path) -> xr.Dataset:
6262
nwp = nwp.drop_vars(
6363
["10m_wind_speed", "10m_wind_speed_angle", "100m_wind_speed", "100m_wind_speed_angle"]
6464
)
65-
nwp = nwp.to_dataarray(dim="channels")
65+
nwp = nwp.to_dataarray(dim="channel")
6666
# Sanity checks.
6767
time = pd.DatetimeIndex(nwp.init_time_utc)
6868
assert time.is_unique

ocf_datapipes/select/filter_channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232

3333
def __iter__(self) -> Union[xr.DataArray, xr.Dataset]:
3434
for xr_data in self.source_datapipe:
35-
if "channels" not in xr_data.dims and isinstance(
35+
if "channel" not in xr_data.dims and isinstance(
3636
xr_data, xr.Dataset
3737
): # Variables are in their own data variables, not channels
3838
logger.debug(

0 commit comments

Comments
 (0)