Skip to content

Commit

Permalink
Update xscen/extract.py
Browse files Browse the repository at this point in the history
Co-authored-by: RondeauG <[email protected]>
  • Loading branch information
aulemahal and RondeauG authored Oct 5, 2023
1 parent 64915d7 commit f5d338f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xscen/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def resample(
using the mapping in CVs/resampling_methods.json. If the variable is not found there,
"mean" is used by default.
missing: {'mask', 'drop'} or dict, optional
If 'mask' or 'drop', target periods with fewer steps than expected are masked or dropped.
For example, for daily data beginning in January with a `target_frequency` of "QS-DEC". the first season is missing one month.
If 'mask' or 'drop', target periods that would have been computed from fewer timesteps than expected are masked or dropped, using a threshold of 5% of missing data.
For example, the first season of a `target_frequency` of "QS-DEC" will be masked or dropped if data only starts in January.
If a dict, it points to a xclim check missing method which will mask periods according to their number of NaN values.
The dict must contain a "method" field corresponding to the xclim method name and may contain
any other args to pass. Options are documented in :py:mod:`xclim.core.missing`.
Expand Down

0 comments on commit f5d338f

Please sign in to comment.