Contributors to this version: Pascal Bourgault (@aulemahal), Trevor James Smith (@Zeitsperre), Sascha Hofmann (@saschahofmann).
New indicators and features
xclim.ensembles.robustness_fractionsnow accepts instances ofxclim.core.missingclasses as a newinvalidargument to control how data points are flagged as invalid. (PR/2245).xclim.indices.stats.fitnow returns NaNs when running with methodPWDand a lmoments distribution. Before it failed with anL-Moments invaliderror. (GH/2235, PR/2239).
Breaking changes
- The relative humidity computations from specific humidity, pressure and temperature (
vapor_pressureandrelative_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). blackandblackdocare no longer required for development.ruffis 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.0andh5py >=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_datasetoption is activated. (GH/2240, PR/2251). xclim.core.formatting.update_historynow places the updated history at the top of the new attribute, not at the bottom. (PR/2251).$ xclim infoCLI utility now provides information for module-loaded indicators (cf,anuclim,icclim). (GH/2219, PR/2255).- A few functions have been adapted to the new
xarraydefault (True) for optionkeep_attrs. (GH/2250, PR/2257).