pypi xclim 1.0.1
v1.0.1

one hour ago

Contributors to this version: Pascal Bourgault (@aulemahal), Trevor James Smith (@Zeitsperre), Mark L. Morrissey (@klemmeri), Éric Dupuis (@coxipi).

New indicators and features

  • New version_deprecated attribute now indicates when Indicators are being deprecated. It optionally accepts a tuple with the version of xclim when the deprecation was announced along with the name of an alternative Indicator or 'None'. (GH/2471, PR/2475).

Breaking changes

  • numbagg is now a required dependency, replacing bottleneck (now an optional "performance" dependency; $ pip install xclim[performance]). (GH/2459, PR/2461).
  • xclim.atmos.standardized_precipitation_index now defaults to the two-parameter gamma distribution. (GH/2456, PR/2476).

Bug fixes

  • potential_evapotranspiration with method "TW48" now computes the Thornthwaite heat index once, from the monthly normals of a reference period set by the new ref_start and ref_end arguments (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_index now 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_evapotranspiration with 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_options is now thread-safe. New top-level function get_options to retrieve values. (GH/2470, PR/2477).
  • Re-added xclim.indicators.atmos.effective_growing_degree_days and xclim.indicators.land.melt_and_precip_max to their respective __all__ configurations. These were mistakenly omitted during the migration effort to xclim v1.0. (GH/2469, PR/2474).

Internal changes

  • CI and boilerplate housekeeping adjustments. (PR/2460):
    • Clearer directives concerning AI involvement have been added to AGENTS.md and PULL_REQUEST_TEMPLATE.md.
    • The suggested invocation for running doctests has been simplified in CONTRIBUTING.rst and Makefile.
    • Corrections made to CI triggers and deployment environments.
  • Convenience CLI tool $ xclim release_notes now supports a -l/--last-release flag for truncating the changelog to entries found in the last stable release. (PR/2460).
  • Standardized indices are now tested against numbagg instead of bottleneck. (PR/2468).
  • xclim now includes a py.typed file to signal to downstream code analysis tools that the library is fully type-checked. (GH/2472, PR/2473).

Don't miss a new xclim release

NewReleases is sending notifications on new releases.