Skip to main content

Derived climate variables built with xarray.

Project description

====== xclim

.. image:: _static/_images/xclim-logo.png :align: center :target: _static/_images/xclim-logo.png :alt: xclim

.. image:: https://img.shields.io/pypi/v/xclim.svg :target: https://pypi.python.org/pypi/xclim :alt: Python Package Index Build

.. image:: https://img.shields.io/travis/Ouranosinc/xclim.svg :target: https://travis-ci.org/Ouranosinc/xclim :alt: Build Status

.. image:: https://coveralls.io/repos/github/Ouranosinc/xclim/badge.svg :target: https://coveralls.io/github/Ouranosinc/xclim :alt: Coveralls

.. image:: https://www.codefactor.io/repository/github/ouranosinc/xclim/badge :target: https://www.codefactor.io/repository/github/ouranosinc/xclim :alt: CodeFactor

.. image:: https://readthedocs.org/projects/xclim/badge :target: https://xclim.readthedocs.io/en/latest :alt: Documentation Status

.. image:: https://img.shields.io/github/license/Ouranosinc/xclim.svg :target: https://github.com/bird-house/birdhouse-docs/blob/master/LICENSE :alt: License

xclim is a library of functions computing climate indices. It is based on xarray and can benefit from the parallelization provided by dask. It's objective is to make it as simple as possible for users to compute indices from large climate datasets, and for scientists to write new indices with very little boilerplate.

For example, the following would compute monthly mean temperature from daily mean temperature:

.. code-block:: python

import xclim import xarray as xr ds = xr.open_dataset(filename) tg = xclim.icclim.TG(ds.tas, freq='YS')

For applications where meta-data and missing values are important to get right, xclim also provides a class for each index that validates inputs, checks for missing values, converts units and assigns metadata attributes to the output. This provides a mechanism for users to customize the indices to their own specifications and preferences.

xclim is still in active development at the moment, but is close to be production ready. We're are at a beta release (as of Q1 2019). If you're interested in participating to the development, please leave us a message on the issue tracker.

Credits

This work is made possible by the Canadian Center for Climate Services.

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage

======= History

0.7-beta (2019-02-05)

Major Changes:

  • Support for resampling of data structured using non-standard CF-Time calendars
  • Added several ICCLIM and other indicators
  • Dropped support for Python 3.4
  • Now under Apache v2.0 license
  • Stable PyPI-based dependencies
  • Dask optimizations for better memory management
  • Introduced class-based indicator calculations with data integrity verification and CF-Compliant-like metadata writing functionality

Class-based indicators are new methods that allow index calculation with error-checking and provide on-the-fly metadata checks for CF-Compliant (and CF-compliant-like) data that are passed to them. When written to NetCDF, outputs of these indicators will append appropriate metadata based on the indicator, threshold values, moving window length, and time period / resampling frequency examined.

0.6-alpha (2018-10-03)

  • File attributes checks
  • Added daily downsampler function
  • Better documentation on ICCLIM indices

0.5-alpha (2018-09-26)

  • Added total precipitation indicator

0.4-alpha (2018-09-14)

  • Fully PEP8 compliant and available under MIT License

0.3-alpha (2018-09-4)

  • Added icclim module
  • Reworked documentation, docs theme

0.2-alpha (2018-08-27)

  • Added first indices

0.1.0-dev (2018-08-23)

  • First release on PyPI.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xclim-0.9b0.tar.gz (33.4 MB view details)

Uploaded Source

Built Distribution

xclim-0.9b0-py2.py3-none-any.whl (33.4 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file xclim-0.9b0.tar.gz.

File metadata

  • Download URL: xclim-0.9b0.tar.gz
  • Upload date:
  • Size: 33.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.8

File hashes

Hashes for xclim-0.9b0.tar.gz
Algorithm Hash digest
SHA256 62db7cc3e567ced70cc13132ef4fdfddc470350d0dafc392aec19583af11863d
MD5 41e4cbdad4173a61052839c5200e0df6
BLAKE2b-256 6272de6674e2d4f01ffdc5d9c6915ab7c5f88d6f10e7e04eecc12856a97fed69

See more details on using hashes here.

File details

Details for the file xclim-0.9b0-py2.py3-none-any.whl.

File metadata

  • Download URL: xclim-0.9b0-py2.py3-none-any.whl
  • Upload date:
  • Size: 33.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.8

File hashes

Hashes for xclim-0.9b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e44317cb27b94b0349b1f917bea773ae62239567f8c828db7a05cee78257e188
MD5 973e6287b492939b3c92804b4df05ffd
BLAKE2b-256 e12b0d5c0423ae8204211dbd2d5c2b8b87e3128ee32d31372054af9e5ab81376

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page