Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ def run_lmc(action):
# domain-wide (empty transposition domain). Spatial L-moments pool across the
# surviving years, so dropping the bad year is the intended recovery.
import xarray as xr

kept_years, dropped_years = [], []
for _amf in sorted(glob.glob(os.path.join(lmc, "*Maxima.*.nc4"))):
with xr.open_dataset(_amf) as _d:
Expand Down Expand Up @@ -694,7 +695,9 @@ def run_lmc(action):
_day = _day + np.timedelta64(1, "D")
if needed_precip:
_get_folder(
action, "raw_precipitation", lmc,
action,
"raw_precipitation",
lmc,
name_filter=lambda b: b in needed_precip,
)
else:
Expand Down
Loading