Skip to content

Commit

Permalink
Rechunk between preprocessor steps (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela authored Sep 28, 2023
1 parent ac31d53 commit be6009e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esmvalcore/preprocessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ def preprocess(
function = globals()[step]
itype = _get_itype(step)

for item in items:
if isinstance(item, Cube) and item.has_lazy_data():
item.data = item.core_data().rechunk()

result = []
if itype.endswith('s'):
result.append(_run_preproc_function(function, items, settings,
Expand Down

0 comments on commit be6009e

Please sign in to comment.