Ouranosinc/xclim: v0.24.0
Creators
- 1. Ouranos
- 2. @jakarto3d
- 3. STFC CEDA
Description
New indicators
days_over_precip_thresh,fraction_over_precip_thresh,liquid_precip_ratio,warm_spell_duration_index, all from eponymous indices.maximum_consecutive_warm_daysfrom indicemaximum_consecutive_tx_days.
Numerous changes to
xclim.core.calendar.percentile_doy:pernow accepts a sequence as well as a scalar and as such the output has a percentiles axis.perargument is now expected to between 0-100 (not 0-1).- input data must have a daily (or coarser) time frequency.
Change in unit handling paradigm for indices, which as a result will lead to some indices returning values with different units. Note that related
Indicatorobjects remain unchanged and will return units consistent with CF Convention. If you are concerned with code stability, please useIndicatorobjects. The change was necessary to resolve inconsistencies with xarray'skeep_attrs=Truecontext.- Indice functions now return output units that preserve consistency with input units. That is, feeding inputs in Celsius will yield outputs in Celsius instead of casting to Kelvin. In all cases the dimensionality is preserved.
- Indice functions now accept non-daily data, but daily frequency is assumed by default if the frequency cannot be inferred.
Removed the explicitly-installed
netCDF4python library from the base installation, as this is never explicitly used (now only installed in thedocsrecipe for sdba documented example).- Removed
xclim.core.checks, which was deprecated since v0.18.
- Indicator now have docstrings generated from their metadata.
- Units and fixed choices set are parsed from indice docstrings into
Indicator.parameters. - Units of indices using the
declare_unitsdecorator are stored inindice.in_unitsandindice.out_units. - Changes to
Indicator.formatandIndicator.jsonto ensure the resulting json really is serializable.
- Leave
missing_optionsundefined inland.fitindicator to allow control viaset_options. - Modified
xclim.core.calendar.percentile_doyto improve performance. - New
xclim.core.calendar.compare_offsetsfor comparing offset strings. - New
xclim.indices.generic.get_opto retrieve a function from a string representation of that operator. - The CI pipeline has been migrated from Travis CI to GitHub Actions. All stages are still built using
tox. - Indice functions must always set the units (the
declare_unitsdecorator does no check anymore). - New
xclim.core.units.rate2amoutto convert rates like precipitation to amounts. xclim.core.units.pint2cfunitsnow removes ' * ' symbols and changesΔ°todelta_deg.- New
xclim.core.units.to_agg_unitsandxclim.core.units.infer_sampling_unitsfor unit handling involving aggregation operations along the time dimension. - Added an indicators API page to the docs and links to there from the
Climate Indicatorspage.
- The unit handling change resolved a bug that prevented the use of
xr.set_options(keep_attrs=True)with indices.
Files
Ouranosinc/xclim-v0.24.0.zip
Files
(451.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:bc676d84cadc6fb6c11b939d0546e6ee
|
451.2 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/Ouranosinc/xclim/tree/v0.24.0 (URL)