Published September 18, 2020
| Version v0.20.0
Software
Open
Ouranosinc/xclim: v0.20.0
Authors/Creators
- 1. Ouranos
- 2. @jakarto3d
- 3. STFC CEDA
Description
Breaking changes
* `xclim.subset` has been deprecated and now relies on `clisops` to perform specialized spatio-temporal subsetting.
Install with `pip install xclim[gis]` in order to retain the same functionality.
* The python library `pandoc` is no longer listed as a docs build requirement. Documentation still requires a current
version of `pandoc` binaries installed at system-level.
* ANUCLIM indices have seen their `input_freq` parameter renamed to `src_timestep` for clarity.
* A clean-up and harmonization of the indicators metadata has changed some of the indicator identifiers, long_names, abstracts and titles. `xclim.atmos.drought_code` and `fire_weather_indexes` now have indentifiers "dc" and "fwi" (lowercase version of the previous identifiers).
* `xc.indices.run_length.run_length_with_dates` becomes `xc.indices.run_length.season_length`. Its argument `date` is now optional and the default changes from "07-01" to `None`.
* `xc.indices.consecutive_frost_days` becomes `xc.indices.maximum_consecutive_frost_days`.
* Changed the `history` indicator output attribute to `xclim_history` in order to respect CF conventions.
New indicators
~~~~~~~~~~~~~~
* `atmos.max_pr_intensity` acting on hourly data.
* `atmos.wind_vector_from_speed`, also the `wind_speed_from_vector` now also returns the "wind from direction".
* Richards-Baker flow flashiness indicator (`xclim.land.rb_flashiness_index`).
* `atmos.max_daily_temperature_range`.
* `atmos.cold_spell_frequency`.
* `atmos.tg_min` and `atmos.tg_max`.
* `atmos.frost_season_length`, `atmos.first_day_above`. Also, `atmos.consecutive_frost_days` now takes a `thresh` argument (default : 0 degC).
New features and enhancements
~~~~~~~~~~~~~
sdba.loesssubmodule implementing LOESS smoothing tools used insdba.detrending.LoessDetrend.- xclim now depends on clisops for subsetting, offloading several heavy GIS dependencies. This improves maintainability and reduces the size of a "vanilla" xclim installation considerably.
- New
generic.parametric_quantilefunction taking parameters estimated bygeneric.fitas an input. - Add support for using probability weighted moments method in
generic.fitfunction. Requires thelmoments3package, which is not included in dependencies because it is unmaintained. Install manually if needed. - Implemented
_fit_startutility function providing initial conditions for statistical distribution parameters estimation, reducing the likelihood of poor fits. - Added support for indicators based on hourly (1H) inputs, and a first hourly indicator called
max_pr_intensityreturning hourly precipitation intensity. - Indicator instances can be retrieved through their class with the
get_instance()class method. This allows the use ofxclim.core.indicator.registryas an instance registry. - Indicators now have a
realmattribute. It must be given when creating indicators outside xclim. - Better docstring parsing for indicators: parameters description, annotation and default value are accessible in the json output and
Indicator.parameters. - New command line interface
xclimfor simple indicator computing tasks. - New
sdba.processing.jitter_over_threshfor variables with a upper bound. - Added
opparameter toxclim.indices.daily_temperature_rangeto allow resample reduce operations other than mean core.formatting.AttrFormatter(and thus, locale dictionaries) can now use glob-like pattern for matching values to translate.
Bug fixes
The ICCLIM module was identified as `icclim` in the documentation but the module available under `ICCLIM`. Now `icclim == ICCLIM` and `ICCLIM will be deprecated in a future release`.
Internal changes
~~~~~~~
xclim.subsetnow attempts to load and expose the functions ofclisops.core.subset. This is an API workaround preserving backwards compatibility.- Code styling now conforms to the latest release of black (v0.20.8).
- New
IndicatorRegistrarclass that takes care of adding indicator classes and instances to the appropriate registries.Indicatornow inherits from it.
Files
Ouranosinc/xclim-v0.20.0.zip
Files
(34.1 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:bff7cadb31b7dba9f4924ca6207bc32f
|
34.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/Ouranosinc/xclim/tree/v0.20.0 (URL)