Skip to content

Commit a51463b

Browse files
committed
GRIB2 input
1 parent 03d1f22 commit a51463b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ai_models_graphcast/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def save_output_xarray(
3939

4040
for time in range(lead_time // hour_steps):
4141
for fs in all_fields[: len(all_fields) // len(lagged)]:
42-
param, level = fs.metadata("shortName"), fs.metadata("levelist", default=0)
42+
param, level = fs.metadata("shortName"), fs.metadata("levelist", default=None)
4343

44-
if level != 0:
44+
if level is not None:
4545
param = GRIB_TO_XARRAY_PL.get(param, param)
4646
if param not in target_variables:
4747
continue

0 commit comments

Comments
 (0)