Skip to main content

xsdba: Statistical Downscaling and Bias Adjustment library

Versions

PyPI Conda-forge Build Version

Documentation and Support

Documentation Status Supported Python Versions

Open Source

License OpenSSF Scorecard DOI

Coding Standards

Ruff prek pre-commit.ci status zizmor Open Source Security Foundation Best Practices

Development Status

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status Coveralls

Statistical correction and bias adjustment tools for xarray.

Features

  • The xsdba submodule provides a collection of bias-adjustment methods meant to correct for systematic biases found in climate model simulations relative to observations. Almost all adjustment algorithms conform to the train - adjust scheme, meaning that adjustment factors are first estimated on training data sets, then applied in a distinct step to the data to be adjusted. Given a reference time series (ref), historical simulations (hist) and simulations to be adjusted (sim), any bias-adjustment method would be applied by first estimating the adjustment factors between the historical simulation and the observation series, and then applying these factors to sim`, which could be a future simulation:

  • Time grouping (months, day of year, season) can be done within bias adjustment methods.

  • Properties and measures utilities can be used to assess the quality of adjustments.

Quick Install

xsdba can be installed from PyPI:

$ pip install xsdba

Documentation

The official documentation is at https://xsdba.readthedocs.io/

How to make the most of xsdba: Basic Usage Examples and In-Depth Examples.

xsdba was first developed as the submodule sdba of xclim. A migration guide is available for users of sdba.

Acknowledgments

xsdba development is funded through Ouranos, a not-for-profit collaborative innovation organization fostering resilient adaptation to climate change, based in Québec, Canada.

This package was created with Cookiecutter and the Ouranosinc/cookiecutter-pypackage project template.

Metadata

Release files for xsdba 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xsdba 0.8.0
File Size Uploaded Provenance Actions
xsdba-0.8.0.tar.gz 197.8 kB With provenance Details for xsdba-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xsdba 0.8.0
File Interpreter ABI Platform Actions
xsdba-0.8.0-py3-none-any.whl Python 3 none any Details for xsdba-0.8.0-py3-none-any.whl

Total release size: 339.8 kB

Release files / xsdba-0.8.0.tar.gz

Download URL xsdba-0.8.0.tar.gz
Size 197.8 kB
Tags Source
SHA-256 checksum
How to use checksums
986c08d5c7a3f4d5ce2247e729c96f4859bc9f60673cc8c4578fad5ddb708df7
BLAKE2b-256 checksum
How to use checksums
3e368be2f1105eef75aed5fef97c51acbd114f8caa2098897abcef42b6eb98cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / xsdba-0.8.0-py3-none-any.whl

Download URL xsdba-0.8.0-py3-none-any.whl
Size 142.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9121a171535277a2e21d89b75fb843804439bfb0464080882f8c4934c3efa0f
BLAKE2b-256 checksum
How to use checksums
7d8fa1670919f737326ae49bcf18445d2f8eab80351274f163c4fb623b84839d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for xsdba 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xsdba-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page