Skip to content

Library of derived climate variables, ie climate indicators, based on xarray.

License

Notifications You must be signed in to change notification settings

Paattrriicckk/xclim

 
 

Repository files navigation

xclim

xclim Python Package Index Build Conda-forge Build Version

Build Status Coveralls CodeFactor DOI Python Black

xclim is a library of functions to compute climate indices. It is built using xarray and can benefit from the parallelization handling provided by dask. Its 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:

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 being production ready. We're are currently nearing a release candidate (as of Q2 2019). If you're interested in participating to the development, please leave us a message on the issue tracker.

  • Free software: License
  • Documentation: Documentation Status

Credits

This work is made possible thanks to the contributions of the Canadian Center for Climate Services.

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

About

Library of derived climate variables, ie climate indicators, based on xarray.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Makefile 0.7%