Skip to content

Commit

Permalink
fixed bug in era5land switch
Browse files Browse the repository at this point in the history
  • Loading branch information
paolap committed Sep 21, 2022
1 parent 2e256e5 commit 15be523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion era5grib/era5grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def save_grib(ds, output, format="grib", era5land=True):
# era5land data
# this is a temporary fix to make sure files get saved
# it could potentially fail for bigger files
if era5land:
if not era5land:
# Saving with compression is fast here
tmp_compressed = tmp1.name
climtas.io.to_netcdf_throttled(ds, tmp_compressed)
Expand Down

0 comments on commit 15be523

Please sign in to comment.