Skip to content

Expand the concept of "climatology" to include full temporal reductions #86

@chpolste

Description

@chpolste

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 anomaly function.
  • The frequency argument of earthkit.transforms.climatology.reduce should also accept a string like "total" (can't come up with a better name and None already 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions