What’s new
Only some of the major changes are tracked here.
v0.4.1 (07 October 2024)
s2stools.utils.wrap_time()ands2stools.utils.unwrap_time()are added to handle different dimensions of time (time versuswinter/timestepofseason)ensure compatibility with
xarray 2024.09.0,numpy 2andpython 3.12added
s2stools.process.sel_fc_around_dates(): select forecast data around a given list of dates, useful e.g., for selecting forecasts initialized around sudden stratospheric warming events
v0.4.0 (24 January 2024)
- breaking changes to
s2stools.clim.climatology() parameter
groupbyis now"leadtime"by default instead of"validtime"support for
groupby="validtime"is dropped for now, due to incompatibility with recent xarray version
- breaking changes to
new function
s2stools.process.reft_hc_year_to_fc_init_date()to convert s2s data reftime-hindcast_year to forecast initialisation date
v0.3.6 (15 December 2023)
s2stools.plot.cmap_spread()accepts to new argumentsless_dark_blueandless_dark_redto control saturation limitsnew function
s2stools.plot.legend_colored_labels_no_lines()behaves likeax.legend, but instead of drawing handles and labels next to each other, only labels are created, but in the color of the respective handlenew functions
s2stools.plot.set_xticks_with_colored_labels()ands2stools.plot.set_yticks_with_colored_labels()makes colored xticklabelsnew function
s2stools.plot.add_map_inset()adds a small map to an existing axis, which can be used to indicate the geographic domain of a particular analysisexperimental: new function
s2stools.compute.register_sample_variance_aggregation_for_flox()registers a function"sample_variance"to flox, which behaves like variance, but withddof=1s2stools.clim.climatology()now accepts hindcast-only datasetss2stools.clim.climatology()now raises a warning if used with flox (we should support flox in the future, do you want to implement it?)
internal changes:
add CI/CD with gitlab runners
v0.3.5 (August 2023)
s2stools.utils.lat_weighted_spatial_mean()makes it quicker to average a dataset over a spatial domain, because it directly accounts for latitudinal dependece of grid box areass2stools.utils.groupby_quantiles()implements an adaption of xarray’s groupby_bins: whilegroupby_binsby default splits the data into bins of the same size,groupby_quantilessplits data into groups which have the same subset sizes2stools.process.s2sparser()supports 6hrly data, as required for precipitation for examples2stools.process.s2sparser()supports data without dimension “number”two new colorbars, and the default kwargs for plotting on a North Atlantic map
new features:
s2stools.plot.add_map()ands2stools.plot.add_box()download nceps nao index to xarray:
s2stools.indices.nao()added
s2stools.compute.css()to compute correlation skill scorefix an issue with
s2stools.indices.download_mjo()