Contributors to this version: Pascal Bourgault (@aulemahal), Trevor James Smith (@Zeitsperre), Mark L. Morrissey (@klemmeri), Éric Dupuis (@coxipi).
New indicators and features
- New
version_deprecatedattribute now indicates when Indicators are being deprecated. It optionally accepts a tuple with the version ofxclimwhen the deprecation was announced along with the name of an alternative Indicator or 'None'. (GH/2471, PR/2475).
Breaking changes
numbaggis now a required dependency, replacingbottleneck(now an optional "performance" dependency;$ pip install xclim[performance]). (GH/2459, PR/2461).xclim.atmos.standardized_precipitation_indexnow defaults to the two-parameter gamma distribution. (GH/2456, PR/2476).
Bug fixes
potential_evapotranspirationwith method "TW48" now computes the Thornthwaite heat index once, from the monthly normals of a reference period set by the newref_startandref_endarguments (default: the whole input), instead of recomputing it each year, which damped warming-driven PET trends. Monthly totals are also scaled by the number of days in the month. (GH/2463, PR/2464).heat_indexnow follows the full NWS procedure (simple formula below 80 °F, low- and high-humidity adjustments) instead of applying the Rothfusz regression alone, which erred by up to about 5 °C between 20 °C and 27 °C. (GH/2463, PR/2464).potential_evapotranspirationwith method "FAO_PM98" now computes the slope of the saturation vapour pressure curve at the mean temperature (FAO-56 Eq. 13). (GH/2463, PR/2464).- Fixed links in indicator search page. (GH/2466, PR/2467).
- Setting options with
set_optionsis now thread-safe. New top-level functionget_optionsto retrieve values. (GH/2470, PR/2477). - Re-added
xclim.indicators.atmos.effective_growing_degree_daysandxclim.indicators.land.melt_and_precip_maxto their respective__all__configurations. These were mistakenly omitted during the migration effort toxclimv1.0. (GH/2469, PR/2474).
Internal changes
- CI and boilerplate housekeeping adjustments. (PR/2460):
- Clearer directives concerning AI involvement have been added to
AGENTS.mdandPULL_REQUEST_TEMPLATE.md. - The suggested invocation for running doctests has been simplified in
CONTRIBUTING.rstandMakefile. - Corrections made to CI triggers and deployment environments.
- Clearer directives concerning AI involvement have been added to
- Convenience CLI tool
$ xclim release_notesnow supports a-l/--last-releaseflag for truncating the changelog to entries found in the last stable release. (PR/2460). - Standardized indices are now tested against
numbagginstead ofbottleneck. (PR/2468). xclimnow includes apy.typedfile to signal to downstream code analysis tools that the library is fully type-checked. (GH/2472, PR/2473).