Skip to content

Commit

Permalink
GRIB2 input
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 23, 2024
1 parent 03d1f22 commit a51463b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai_models_graphcast/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ 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", default=0)
param, level = fs.metadata("shortName"), fs.metadata("levelist", default=None)

if level != 0:
if level is not None:
param = GRIB_TO_XARRAY_PL.get(param, param)
if param not in target_variables:
continue
Expand Down

0 comments on commit a51463b

Please sign in to comment.