Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Ordonez committed May 20, 2024
1 parent cd71c71 commit 90c682c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pcmdi_metrics/sea_ice/sea_ice_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,15 @@
# Generate netcdf files of climatologies
# TODO: this requires a refactoring of the get_clim function
# to accept valid datasets as well as data arrays
print("Generating climatology for netcdf")
nc_dir = os.path.join(metrics_output_path, "netcdf")
if not os.path.exists(nc_dir):
os.mkdir(nc_dir)
nc_climo = lib.get_clim(ds, var, ds=None)
print("Writing climatology netcdf")
fname = (
"sic_climatology_"
+ "_".join(model, run, yr_range[0], yr_range[1])
"sic_clim_"
+ "_".join([model, run, yr_range[0], yr_range[1]])
+ ".nc"
)
fname = os.path.join(nc_dir, fname)
Expand Down

0 comments on commit 90c682c

Please sign in to comment.