pypi xclim 0.59.0
v0.59.0

latest release: 0.59.1
one day ago

Contributors to this version: Pascal Bourgault (@aulemahal), Trevor James Smith (@Zeitsperre), Sascha Hofmann (@saschahofmann).

New indicators and features

  • xclim.ensembles.robustness_fractions now accepts instances of xclim.core.missing classes as a new invalid argument to control how data points are flagged as invalid. (PR/2245).
  • xclim.indices.stats.fit now returns NaNs when running with method PWD and a lmoments distribution. Before it failed with an L-Moments invalid error. (GH/2235, PR/2239).

Breaking changes

  • The relative humidity computations from specific humidity, pressure and temperature (vapor_pressure and relative_humidity) were modified to use the fraction of vapour pressure to saturation vapour pressure instead of an incomplete equation with the mixing ratios. Changes are small, but sometimes not negligible. (PR/2254).
  • black and blackdoc are no longer required for development. ruff is now exclusively used for code and code-block formatting. (PR/2249).
  • Python HDF5 libraries now have lower pins to ensure modern versions are preferably installed (h5netcdf >=1.5.0 and h5py >=3.12.1) (PR/2253).

Bug fixes

  • Fix dimensions of "prsn" in the variable dictionary. (PR/2242).
  • History is not written to the DataArray if the as_dataset option is activated. (GH/2240, PR/2251).
  • xclim.core.formatting.update_history now places the updated history at the top of the new attribute, not at the bottom. (PR/2251).
  • $ xclim info CLI utility now provides information for module-loaded indicators (cf, anuclim, icclim). (GH/2219, PR/2255).
  • A few functions have been adapted to the new xarray default (True) for option keep_attrs. (GH/2250, PR/2257).

Internal changes

  • Fixed an issue with a test that can fail when running with older versions of numpy. (PR/2253).
  • Updated flit to v3.11.0 and adopted PEP 639 for specifying licensing metadata. (PR/2260).

Don't miss a new xclim release

NewReleases is sending notifications on new releases.