Skip to content

Commit

Permalink
apply fix to climate_statistics as in #1018 and #1069
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaslovato committed Apr 15, 2021
1 parent a9fa18b commit 3dad5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmvalcore/preprocessor/_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def climate_statistics(cube,
clim_coord = _get_period_coord(cube, period, seasons)
operator = get_iris_analysis_operation(operator)
clim_cube = cube.aggregated_by(clim_coord, operator)
clim_cube.remove_coord('time')
iris.util.demote_dim_coord_to_aux_coord(clim_cube, 'time')
if clim_cube.coord(clim_coord.name()).is_monotonic():
iris.util.promote_aux_coord_to_dim_coord(clim_cube, clim_coord.name())
else:
Expand Down

0 comments on commit 3dad5db

Please sign in to comment.