Skip to content

Commit 5741c8f

Browse files
authored
Prepare v0.58.0 (#2234)
### What kind of change does this PR introduce? * Prepares the next minor release (v0.58.0) ### Does this PR introduce a breaking change? This release includes some breaking changes, which are detailed in the changelog. Documentation is up-to-date to reflect the new indices and indicator structure introduced in #2224 and the significant changes to agroclimate indicators introduced in #2207. ### Other information: The milestone goals were achieved a day early, so why not release it today.
2 parents 191eb2a + 979a128 commit 5741c8f

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog
33
=========
44

5-
v0.58.0 (unreleased)
5+
v0.58.0 (2025-08-27)
66
--------------------
77
Contributors to this version: Sebastian Lehner (:user:`seblehner`), Trevor James Smith (:user:`Zeitsperre`), Pascal Bourgault (:user:`aulemahal`), Éric Dupuis (:user:`coxipi`), Baptiste Hamon (:user:`baptistehamon`).
88

@@ -12,12 +12,12 @@ New indicators and features
1212
* Argument ``indexer`` added to indicators ``max_n_day_precipitation_amount``, ``max_pr_intensity``, and ``blowing_snow``. (:issue:`2187`, :pull:`2190`).
1313
* Argument ``window`` added to indicator ``rain_on_frozen_ground_days``. (:pull:`2190`).
1414
* New helper ``xclim.indices.generic.season_length_from_boundaries`` takes ``season_start`` and ``season_end`` as input and gives ``season_length``. This is used when starts and ends are computed with different resampling frequencies: ``days_since`` are used to compute temporal lengths in this case. (:pull:`2189`).
15-
* Allow ``invalid_values`` as argument for ``relative_humidity_from_dewpoint``. (:pull:`2203`, :issue:`2202`)
16-
* New thermodynamic conversion indicators:
15+
* Allow ``invalid_values`` as argument for ``relative_humidity_from_dewpoint``. (:issue:`2202`, :pull:`2203`).
16+
* New thermodynamic conversion indicators (:issue:`2165`, :pull:`2206`):
1717
+ ``xclim.convert.vapor_pressure`` to compute the partial pressure of water vapor from specific humidity and total pressure.
1818
+ ``xclim.convert.dewpoint_from_specific_humidity`` to compute the dewpoint temperature from specific humidity and total pressure.
1919
* All functions using saturation vapour pressure can now compute it with a smooth transition between saturation over ice and saturation over water. The transition is controlled by the ``interp_power`` , ``ice_thresh`` and ``water_thresh`` parameters. (:issue:`2165`, :pull:`2206`).
20-
+ New methods ``"buck81"`` and `"aerk96"` and new method ``"ECMWF"`` which is ``"buck81"`` on water and ``"aerk96"`` on ice.
20+
+ New methods ``"buck81"`` and ``"aerk96"`` and new method ``"ECMWF"`` which is ``"buck81"`` on water and ``"aerk96"`` on ice.
2121
+ Saturation vapor pressure calculations were reorganized. ``xclim.indices.converters.ESAT_FORMULAS_COEFFICIENTS`` now stores the August-Roche-Magnus formula's coefficients.
2222
* New indicator ``xclim.atmos.hot_days`` as counterpart to ``xclim.atmos.frost_days``. (:issue:`2194`, :pull:`2213`).
2323
* New helper indices for computing the day-length coefficient for viticulture growing seasons based on several approaches:
@@ -31,7 +31,7 @@ New indicators and features
3131

3232
Breaking changes
3333
^^^^^^^^^^^^^^^^
34-
* The ``"jones"`` method for calculating `'k'` in ``xclim.indices.huglin_index`` and ``xclim.indices.biologically_effective_degree_days`` now require daily data computed at annual frequencies (`freq="YS"|"YS-JAN"|"YS-JUL"`). The previous behaviour for non-annual frequencies was undefined. (:issue:`2201`, :pull:`2207`).
34+
* The ``"jones"`` method for calculating `'k'` in ``xclim.indices.huglin_index`` and ``xclim.indices.biologically_effective_degree_days`` now require daily data computed at annual frequencies (``freq="YS"|"YS-JAN"|"YS-JUL"``). The previous behaviour for non-annual frequencies was undefined. (:issue:`2201`, :pull:`2207`).
3535
* The ``"jones"`` method now sets a floor value for ``"k"`` where it is not allowed to be less than ``1.0``. This is to avoid values below ``1.0`` for ``"k"`` which were previously allowed in `xclim` but not supported by the source literature.
3636
* Incomplete growing seasons (where the values of ``"k"`` for all latitudes during the growing season are all below ``1.0``) will now raise `ValueError`. This is to ensure that the expected output is consistent with the literature.
3737
* The ``"gladstones"`` method for calculating `'k'` in ``xclim.indices.biologically_effective_degree_days`` now uses a dedicated function based on a dynamic day_length compared to a reference latitude (40 degrees). The previous implementation of the ``"gladstones"`` method was based off an approximation found in Hall and Jones (2010). (:issue:`2201`, :pull:`2207`).
@@ -51,6 +51,7 @@ Internal changes
5151
* ``xclim.testing.utils.show_versions`` now uses the `importlib.metadata` library to more accurately gather dependency information. (:pull:`2229`).
5252
* Replaced the deprecated ``"time.week"`` grouping strings with ``da.time.dt.isocalendar().week`` in ``xclim.indices.stats.standardized_index`` functions. (:pull:`2230`).
5353
* ``xclim.indices.run_length.lazy_indexing`` moved to utils. (:issue:`2107`, :pull:`2231`).
54+
* Updated the command-line configuration to address ``DeprecationWarning`` messages introduced in `click` v8.2.0 (changes remain compatible with `click` v8.1.0). (:issue:`2212`, :pull:`2233`).
5455

5556
Bug fixes
5657
^^^^^^^^^
@@ -59,7 +60,7 @@ Bug fixes
5960
* Indices relying on ``units.to_agg_units(src, out, 'count')`` will not raise on a non-inferrable frequency and instead use the common default of "D", as their docstring implies. (:issue:`2215`, :pull:`2217`).
6061
* Fix ``spell_length_statistics`` and related functions for cases where ``thresh`` is a DataArray. (:issue:`2216`, :pull:`2218`).
6162
* Addressed a noisy warning emitted by `numpy` in the ``xclim.indices.stats`` when performing a fit over data with missing values. (:pull:`2224`).
62-
* In the Canadian Forest Fire Weather Index System, values of 0 for both the Duff-Moisture code (DMC) and the Drought code (DC) will yield a 0 Build-Up index (BUI) instead of failing with division by zero error (:issue:`2145`, :pull:`2225`).
63+
* In the Canadian Forest Fire Weather Index System, values of 0 for both the Duff-Moisture code (DMC) and the Drought code (DC) will yield a 0 Build-Up index (BUI) instead of failing with division by zero error. (:issue:`2145`, :pull:`2225`).
6364
* ``xclim.indices.generic.{doymax|doymin}`` now work with dask arrays. (:issue:`2107`, :pull:`2231`).
6465

6566
v0.57.0 (2025-05-22)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ xclim = "xclim.cli:cli"
126126
[tool]
127127

128128
[tool.bumpversion]
129-
current_version = "0.57.1-dev.18"
129+
current_version = "0.58.0"
130130
commit = true
131131
commit_args = "--no-verify --signoff"
132132
tag = false

src/xclim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
__author__ = """Travis Logan"""
1515
__email__ = "logan.travis@ouranos.ca"
16-
__version__ = "0.57.1-dev.18"
16+
__version__ = "0.58.0"
1717

1818

1919
with _resources.as_file(_resources.files("xclim.data")) as _module_data:

0 commit comments

Comments
 (0)