Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 15, 2024
1 parent f55a164 commit 03d1f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ai_models_graphcast/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


def forcing_variables_numpy(sample, forcing_variables, dates):
"""Generate variables from climetlabs
"""Generate variables from earthkit-data
Args:
date (datetime): Datetime of current time step in forecast
Expand Down
2 changes: 1 addition & 1 deletion src/ai_models_graphcast/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def save_output_xarray(

for time in range(lead_time // hour_steps):
for fs in all_fields[: len(all_fields) // len(lagged)]:
param, level = fs.metadata("shortName"), fs.metadata("levelist")
param, level = fs.metadata("shortName"), fs.metadata("levelist", default=0)

if level != 0:
param = GRIB_TO_XARRAY_PL.get(param, param)
Expand Down

0 comments on commit 03d1f22

Please sign in to comment.