Published February 17, 2026 | Version v0.14.0
Software Open

Ouranosinc/xscen: v0.14.0

Description

Contributors: Juliette Lavoie (@juliettelavoie), Gabriel Rondeau-Genesse (@RondeauG), Trevor James Smith (@Zeitsperre), Pascal Bourgault (@aulemahal).

New features and enhancements

  • xscen now supports numcodecs > 0.16, Pandas 3 and Python 3.14 (PR/692).
  • The group=False option was added to xs.train to completely skip this argument when calling xsdba. (PR/668).
  • The stack_periods argument was added to xs.adjust to pass arguments to xsdba.stack_periods before adjustment. (PR/668).
  • A conversion from geopotential to orography has been added to the xclim modules. (PR/673).
  • Add fill_nan_ds option to clean_up to fill NaNs in one dataset from value of another dataset. (PR/679).
  • Warnings of xs.health_checks are now added as an attribute to the returned dataset. (PR/679).
  • Make it possible to zip automatically after saving to zarr in xs.save_to_zarr.
  • A conversion from geopotential to orography has been added to the xclim modules. (PR/673).
  • Add zip_zarrdir and zip_kwargs options to xs.io.save_to_zarr to automatically zip the zarr directory after saving. (PR/679).
  • Add helper functions for handling station data and spatial suff: (PR/619).
    • xs.spatial.merge_duplicated_stations : Merge colocated stations.
    • xs.spatial.voronoi_weights : Compute weights for each station inversely proportional to they density, according to a Voronoi diagram.
    • xs.spatial.dataset_extent : Get a lat/lon shape or bbox describing the spatial extent of a gridded dataset.
  • Add support for daily frequencies to xs.utils.unstack_dates. Argument winter_starts_year has been deprecated in favor of year_month_start allowing for more flexibility (PR/619).
  • Add a fast-track to xs.spatial.subset(..., 'gridpoint') when fancier clisops options are not requested. (PR/619).

Bug fixes

  • Floor time in the preprocess of extract_dataset. (PR/660, PR/660).
  • dtype encodings are now removed before saving in save_to_netcdf and save_to_zarr, since it could create inconsistencies. Dtypes should instead be handled through kwargs. (PR/665).
  • Coordinates with dask chunks will now correctly be chunked if using the rechunk option in xs.io.save_to_netcdf and xs.io.save_to_zarr. (PR/673).
  • xs.io.estimate_chunks now returns the length of the dimension instead of -1 to avoid potential 'OverflowError: can't convert negative value to hsize_t'. (PR/673).
  • xs.spatial.get_crs can now also guess latitude_longitude (PlateCarree) even without a grid mapping variable. (PR/619).

Internal changes

  • Added test for catalog and config (PR/664).
  • More explicit calls to coords, compat, and join in calls to xr.concat and xr.merge to avoid FutureWarnings from xarray. (PR/665).
  • Add test for xs.health_checks for new xclim missing option missing_some_but_not_all. (PR/679).
  • Added a workflow for automatically approving and merging non-major Dependabot updates. (PR/682).
  • Temporarily pinned pandas (<3.0) until changes can be made to adapt to the new API. (PR/682).
  • Add "cat:bias_adjust_reference" guess in xs.train and xs.adjust. (PR/679).
  • Add xs.diagnostics.merge_attrs as it was removed from xclim. (PR/679).
  • Add grid mapping attrs to loc coords in xs.regrid. (PR/679).
  • Created the Region type for better documentation of the construct. (PR/619).
  • File environment.yml has been removed. Doc dependencies have been removed from environment-dev.yml and a distinct environment-docs.yml has been created. (PR/692).

Files

Ouranosinc/xscen-v0.14.0.zip

Files (893.9 kB)

Name Size Download all
md5:d1662beaed47a4bfd3085e8da6c61bac
893.9 kB Preview Download

Additional details

Related works

Software