Ouranosinc / xscen

A climate change scenario-building analysis framework.
https://xscen.readthedocs.io/
Apache License 2.0
15 stars 2 forks source link

Climatological op #290

Closed vindelico closed 9 months ago

vindelico commented 10 months ago

Pull Request Checklist:

What kind of change does this PR introduce?

xscen.aggregate.climatological_mean is replaced by xscen.aggregate.climatological_op.

climatological_op permits to apply operations ('op') other than 'mean' to the input dataset. operations implemented: ['max', 'mean', 'median', 'min', 'std', 'sum', 'var', 'linregress']

other additions:

Modifiede the "Getting Started" notebook to use climatological_op with option 'mean'.

Does this PR introduce a breaking change?

No, climatological_mean is retained and calls climatological_op. Tests for climatological_mean were adjusted for minor changes in attribute values.

Other information:

Uses a wrapper for scipy.stats.linregress for trend calculation with xarray.

review-notebook-app[bot] commented 10 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB