Closed axel-lauer closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.12%. Comparing base (
bf04feb
) to head (bddf137
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR updates the check of argument
interval
in the preprocessor functionresample_hours
(line 1236 in_time.py
) fromif cube_period.total_seconds() / 3600 >= interval:
toif cube_period.total_seconds() / 3600 > interval:
This change allows to process 3-hourly CMIP6 data and hourly ERA5 data with the same preprocessor settings. This is needed e.g. when calculating diurnal cycles from CMIP6 and ERA5 that need to have the same time coordinate (frequency and actual values) to be compared with the preprocessor function
distance_metric
.The preprocessor
resample_hours
is currently not used by any recipe in the main branch, so risks of this change affecting existing diagnostics is expected to be very small.