Skip to content

Commit

Permalink
Align ensemble number with ECMWF GRIB conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Dec 10, 2024
1 parent b04f173 commit daacf27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ai_models_gencast/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ def save_output_xarray(
values,
template=fs,
startStep=0,
number=ensemble_member,
# Offset to align with GRIB numbering, e.g. 0 is control, 1+ is ensemble
number=ensemble_member + 1,
endStep=(time + 1) * hour_steps,
)
else:
write(
values,
template=fs,
step=(time + 1) * hour_steps,
number=ensemble_member,
# Offset to align with GRIB numbering, e.g. 0 is control, 1+ is ensemble
number=ensemble_member + 1,
)

0 comments on commit daacf27

Please sign in to comment.