-
Notifications
You must be signed in to change notification settings - Fork 1
Expand the concept of "climatology" to include full temporal reductions #86
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
To me, a "climatology" does not have to have a time component (like, dayofyear, month, etc.). I would also refer to a simple mean over all data as a "climatological mean".
Describe the solution you'd like
- The climatology module should recognise data without any time-like dimension as climatologies in the
anomalyfunction. - The frequency argument of
earthkit.transforms.climatology.reduceshould also accept a string like"total"(can't come up with a better name andNonealready does the auto-detection). When this special string is given, the function should reduce the full dataset like the equivalent function from the temporal module.
Describe alternatives you've considered
Anomalies can be computed just by subtracting the fully-reduced data from the data, but that introduces a need for branching in functions that have a broader understanding of climatologies. Same with just using the reduce function from temporal: it works, but I have to introduce an if-else or try-except to support it downstream.
Additional context
This extended understanding of "climatology" would eliminate an edge case in ecmwf/earthkit-meteo#89 and cover a use case related to percentile computations in ecmwf/earthkit-climate#34.
Organisation
ECMWF
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request