Skip to content

Commit 5ce2828

Browse files
committed
Added fldmeans, fldstd and fldpctl methods
1 parent 64ebab0 commit 5ce2828

4 files changed

Lines changed: 536 additions & 4 deletions

File tree

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Added
2020
* Added the ``chname`` parameter when loading a project. This parameter can
2121
be used to display another variable from the dataset than the one stored
2222
in the psyplot project file
23+
* Added the ``gridweights``, ``fldmean``, ``fldstd`` and ``fldpctl`` methods
24+
to the ``psy`` DataArray accessor to calculate weighted means, standard
25+
deviations and percentiles over the spatial dimensions (x- and y).
2326

2427

2528
v1.0.0

psyplot/config/rcsetup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,12 @@ def validate_stringset(*args, **kwargs):
11011101
:class:`psyplot.plotter.maps.FieldPlotter` instances, set
11021102
``{'plotter.fieldplotter.title': 'my title'}``""")],
11031103

1104+
'gridweights.use_cdo': [
1105+
None, validate_bool_maybe_none,
1106+
'Boolean flag to control whether CDOs (Climate Data Operators) should '
1107+
'be used to calculate grid weights. If None, they are tried to be '
1108+
'used.'],
1109+
11041110
# decoder
11051111
'decoder.x': [set(), validate_stringset,
11061112
'names that shall be interpreted as the longitudinal x dim'],

0 commit comments

Comments
 (0)