Skip to content

maximum and minimum variables added to MEAN_FIELDS list#365

Open
EddyCMWF wants to merge 5 commits into
mainfrom
feature/daily-stats-temporally-aggregated-variables
Open

maximum and minimum variables added to MEAN_FIELDS list#365
EddyCMWF wants to merge 5 commits into
mainfrom
feature/daily-stats-temporally-aggregated-variables

Conversation

@EddyCMWF

@EddyCMWF EddyCMWF commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

A user identifies that the "minimum/maximum since" variables should be handled like the mean/accumulated variables. This PR adds those variables to the MEAN_FIELDS list, and provides the option to append to the list in case similar things are identified in the future.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the daily statistics adaptor so that additional “since previous post-processing” variables (min/max and wind gust) are handled with the same temporal shifting logic as existing mean/accumulated variables, and introduces a config hook to extend that behavior for future variables.

Changes:

  • Added several “since previous post-processing” variables (min/max temperature, wind gust, min/max precipitation rate) to MEAN_FIELDS.
  • Extended the time-shift condition in retrieve_list_of_results to include extra_temporally_aggregated_variables from config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cads_adaptors/adaptors/daily_statistics/adaptor.py Outdated
Comment thread cads_adaptors/adaptors/daily_statistics/adaptor.py
Comment on lines +383 to 387
if var in ACCUMULATED_FIELDS + MEAN_FIELDS + ensure_list(
# Allow for extra variables to be treated as accumulated, based on config
self.config.get("extra_temporally_aggregated_variables", [])
):
this_hour = time_zone_hour - accumulation_period
EddyCMWF and others added 3 commits June 10, 2026 08:11
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants