• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xclim
92%

Build:
DEFAULT BRANCH: main
Repo Added 13 Sep 2018 03:39PM UTC
Files 60
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • HS_eve
  • SSI_SGI
  • add-vapour-pressure-deficit
  • add_general_part
  • add_missing
  • address-precision
  • adjust-auto-accept
  • adjust-yaml-test
  • adopt-ruff-format
  • allow-mocking
  • allsame-doy-nan
  • antecedent-precipitation-indicator
  • assume-daily-for-units
  • auto-accept-dependabot-ci
  • avoid-unnecessary-time-resampling
  • better-energy-stats
  • check_matching_times
  • ci-adjustments
  • clean-units
  • cli-warnings-engine
  • consistent-naming
  • convert-hurs-humidex
  • datatree-support
  • datetime-fixes
  • dependabot/github_actions/actions-008b153589
  • dependabot/github_actions/actions-013eabdef2
  • dependabot/github_actions/actions-01eb27b622
  • dependabot/github_actions/actions-039db0b2bc
  • dependabot/github_actions/actions-06ae9f9a40
  • dependabot/github_actions/actions-15e6f89b60
  • dependabot/github_actions/actions-1fb17b9afa
  • dependabot/github_actions/actions-39b0f4103c
  • dependabot/github_actions/actions-3ecfc2d9d1
  • dependabot/github_actions/actions-455df580f8
  • dependabot/github_actions/actions-461db7b400
  • dependabot/github_actions/actions-4c2e4dba1c
  • dependabot/github_actions/actions-5841e98833
  • dependabot/github_actions/actions-5c0850a894
  • dependabot/github_actions/actions-61ed329749
  • dependabot/github_actions/actions-644aa13a87
  • dependabot/github_actions/actions-66839892d2
  • dependabot/github_actions/actions-67a10efecd
  • dependabot/github_actions/actions-7236c8f22c
  • dependabot/github_actions/actions-7837a71296
  • dependabot/github_actions/actions-807e141772
  • dependabot/github_actions/actions-8412de4f2d
  • dependabot/github_actions/actions-885f5fa5a7
  • dependabot/github_actions/actions-88ce3606f7
  • dependabot/github_actions/actions-8a9de90a89
  • dependabot/github_actions/actions-8cb9a9667d
  • dependabot/github_actions/actions-90c1ca45e1
  • dependabot/github_actions/actions-b9c13a7af7
  • dependabot/github_actions/actions-bd1284decb
  • dependabot/github_actions/actions-c5043b94ad
  • dependabot/github_actions/actions-cce7c41234
  • dependabot/github_actions/actions-e569d89199
  • dependabot/github_actions/actions-e84dc08d5a
  • dependabot/github_actions/actions-ebe99d2749
  • dependabot/github_actions/actions-fb9b48e85b
  • dependabot/github_actions/actions-fd64dd94eb
  • dependabot/pip/CI/bump-my-version-1.2.6
  • dependabot/pip/CI/deptry-0.24.0
  • dependabot/pip/CI/exceptiongroup-1.3.1
  • dependabot/pip/CI/pip-25.3
  • dependabot/pip/CI/pip-8177a8837a
  • dependabot/pip/CI/pip-a6aa50acab
  • dependabot/pip/CI/pip-c4ff2e68b4
  • dependabot/pip/CI/pip-c55f158233
  • dependabot/pip/CI/pylint-4.0.4
  • dependabot/pip/CI/tomli-2.3.0
  • dependabot/pip/CI/tox-4.33.0
  • dependabot/pip/python-2040a6291e
  • dependabot/pip/python-2ea8ebdaef
  • dependabot/pip/python-350a0f59bc
  • dependabot/pip/python-3830f05ce5
  • dependabot/pip/python-3b6482bb29
  • dependabot/pip/python-4f703d6ade
  • dependabot/pip/python-5ab2ad6ea2
  • dependabot/pip/python-5ad8018256
  • dependabot/pip/python-861e731bcf
  • dependabot/pip/python-9d4d47bb59
  • dependabot/pip/python-9e0f745a7f
  • dependabot/pip/python-a5b369cbea
  • dependabot/pip/python-cd1223907b
  • dependabot/pip/python-d8eef1601a
  • dependabot/pip/python-e7cd2fa4e5
  • dependabot/pip/python-f8b8e00329
  • dependency-groups
  • deprecate-python310
  • deprecate-sdba
  • deprecate_heat_wave_index
  • deprecations
  • dev-v099
  • dynamic-time-selection
  • ensemble-calendar
  • expose_rolling_resample
  • fair-adoption
  • fao_allen
  • festive-indices
  • fit-mse
  • fitkwargs_lmoments
  • fix-#2014
  • fix-#2235
  • fix-2056-1763
  • fix-2146
  • fix-2148
  • fix-Grouper-360
  • fix-argmin-func
  • fix-bui
  • fix-cdda
  • fix-ci
  • fix-custom-missing-doc
  • fix-docs
  • fix-doctests
  • fix-documentation
  • fix-fire-season-unequal-chunks
  • fix-history
  • fix-hurs-nan
  • fix-jones-hi
  • fix-keepattrs-xr
  • fix-math-tags
  • fix-multi-dim-find-events
  • fix-pint-0.25
  • fix-prsn-dims
  • fix-robust-nodata
  • fix-token
  • fix-xclim-info-cli
  • fix/solar-zenith-time-cast
  • fix_keep_longest_run
  • fix_sdba_doc
  • fraction_of_rtop
  • hemisphere_thresh
  • improved-dd-calculations
  • interp-esat
  • isocalendar-fix
  • literal_str_operators
  • mahalanobis
  • main
  • missing-in-robust
  • numpydoc
  • pin-pandas
  • pmp
  • positive-utah
  • pre-commit-ci-update-config
  • prep_v0.55.1
  • prepare-v0540
  • prepare-v0550
  • prepare-v0560
  • prepare-v0570
  • prepare-v0580
  • prepare-v0581
  • prepare-v0590
  • prepare-v0591
  • prepare-v060
  • preserve-attrs
  • pylint-adjustments
  • pytest-v9
  • reenable-py310
  • refactor_converters
  • remove-black
  • remove-useless-noqas
  • revert-star-annotation
  • rolling-ind-indexing
  • rst-linting
  • season_length_from_bnds
  • secure-workflows
  • security-fixes
  • sg_fix_linalg_proper
  • simpler-version-check
  • skip-nl-langinfo-test
  • spi-prob-zero-method
  • split_sdba
  • support-py314
  • support-python313
  • support-socket-blocked
  • timeout
  • to_agg_units_temp_diff
  • tox-toml
  • unpin-scipy
  • upd-hurs-again
  • update-xsdba-docs
  • use-py313-CI
  • use-src
  • util_VARS
  • winner-winner

23 Feb 2026 02:59PM UTC coverage: 91.882%. First build
22311596568

push

github

web-flow
Flexible handling of zero-precipitation probabilities in standardized precipitation index (#2280)

<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #2279
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGELOG.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

### What kind of change does this PR introduce?

Adds a new argument `prob_zero_method` to `standardized_index` and
`standardized_precipitation_index`. This argument allows users to
control how the probability of zero-precipitation events ($P(x=0)$) is
handled when transforming to the standard normal distribution.

Supported options are:
* "center" (Default): Uses the Center of Mass method ($P = p_0 / 2$) as
recommended by Stagge et al. (2015) to avoid bias in the mean SPI.
* "upper": Uses the traditional cumulative probability ($P = p_0$),
which replicates the legacy behavior (McKee method).
* Callable: Accepts a custom function (e.g., lambda p: p * 0.75) for
experimental use cases.

### Does this PR introduce a breaking change?

No.

While the default calculation method has changed from the implicit
"upper" method to the unbiased "center" method. The API remains backward
compatible, and users who strictly require the old values can set
prob_zero_method="upper".

24 of 36 new or added lines in 1 file covered. (66.67%)

7934 of 8635 relevant lines covered (91.88%)

6.27 hits per line

Relevant lines Covered
Build:
Build:
8635 RELEVANT LINES 7934 COVERED LINES
6.27 HITS PER LINE
Source Files on main
  • Tree
  • List 60
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22311596568 main Flexible handling of zero-precipitation probabilities in standardized precipitation index (#2280) <!--Please ensure the PR fulfills the following requirements! --> <!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! -... push 23 Feb 2026 03:04PM UTC web-flow github
91.88
22115747208 support-socket-blocked Merge d0003e780 into 338bed916 Pull #2324 17 Feb 2026 09:11PM UTC web-flow github
91.95
22112975037 support-socket-blocked Merge 666ca9af1 into 338bed916 Pull #2324 17 Feb 2026 07:45PM UTC web-flow github
91.99
22111971788 main Adapt to new xsdba documentation structure (#2325) ### What kind of change does this PR introduce? * Updates the `intersphinx` directives to point at new `xsdba` sphinx targets. * Updates the `ReadTheDocs` configuration to build docs with an old... push 17 Feb 2026 07:13PM UTC web-flow github
92.0
22111670254 update-xsdba-docs Merge 6d74a69f6 into f2b9f0c15 Pull #2325 17 Feb 2026 07:06PM UTC web-flow github
92.0
22109822234 update-xsdba-docs Merge abf185c9a into f2b9f0c15 Pull #2325 17 Feb 2026 06:05PM UTC web-flow github
91.97
22109362570 update-xsdba-docs Merge ca26340ff into f2b9f0c15 Pull #2325 17 Feb 2026 05:51PM UTC web-flow github
91.97
22108500786 update-xsdba-docs Merge ca26340ff into f2b9f0c15 Pull #2325 17 Feb 2026 05:26PM UTC web-flow github
92.0
22108081135 update-xsdba-docs Merge a1d965e23 into f2b9f0c15 Pull #2325 17 Feb 2026 05:13PM UTC web-flow github
91.97
22107398076 update-xsdba-docs Merge aaa25ee82 into f2b9f0c15 Pull #2325 17 Feb 2026 04:54PM UTC web-flow github
92.0
See All Builds (4945)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc