Skip to content

Commit

Permalink
fix(ecmwf-mars): Write ensemble_stat dim correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Jan 17, 2025
1 parent d301a9f commit c63995d
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,11 @@ def _convert(path: pathlib.Path) -> ResultE[list[xr.DataArray]]:
)
del dss

if "ens-stat" in path.as_posix():
# Add in missing coordinates for mean/std data
if "enfo-es" in path.name:
ds = ds.expand_dims(dim={"ensemble_stat": ["std"]})
elif "enfo-em" in path.name:
ds = ds.expand_dims(dim={"ensemble_stat": ["mean"]})
# Add in missing coordinates for mean/std data
if "enfo-es" in path.name:
ds = ds.expand_dims(dim={"ensemble_stat": ["std"]})
elif "enfo-em" in path.name:
ds = ds.expand_dims(dim={"ensemble_stat": ["mean"]})
da: xr.DataArray = (
ds
.pipe(
Expand Down

0 comments on commit c63995d

Please sign in to comment.