Skip to content

Commit

Permalink
add some logging to filtering by time period
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Sep 11, 2023
1 parent e36cd31 commit a36798f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ml_downscaling_emulator/bin/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ def filter(
ensemble_member=ensemble_member,
)
):
logger.info(f"Working on {sample_filepath}")
samples_ds = xr.open_dataset(sample_filepath)

filtered_samples_filepath = filtered_samples_dirpath / sample_filepath.name

logger.info(f"Saving to {filtered_samples_filepath}")
samples_ds.sel(time=slice(*TIME_PERIODS[time_period])).to_netcdf(
filtered_samples_filepath
)

0 comments on commit a36798f

Please sign in to comment.