What’s new#

Unreleased#

New features#

  • The nodal corrections of xoa.tide analyses and predictions follow the time, updated every nodal_step (one day by default).

  • Compound constituents accept negative multipliers.

  • Add 13 constituents to the default database, like MSf, MU2, NU2, L2 and 2SM2.

Bug fixes#

  • Use the satellites of Foreman (1977): the nodal factors of K2, K1, O1 and Mf were wrong by up to 6%.

2026.11.0#

New features#

Bug fixes#

Breaking changes#

  • cartopy, matplotlib and dask are now required dependencies, and the plot extra is removed.

Documentation#

2026.10.0#

New features#

Breaking changes#

Deprecations#

Bug fixes#

  • xoa.grid.apply_along_dim() failed with datasets since xarray 2025.09.1, whose xarray.Dataset.update() returns None.

  • Fix xoa.grid.map_along_dim() when an output coordinate has a coordinate named like the working dimension, and import cmocean in xoa to register the cmo.* colormaps.

  • The bottom and top extrapolation modes of the cellave method of xoa.regrid.regrid1d() were ignored.

  • The conserv argument of xoa.regrid.regrid1d() was ignored by the cellave method. The conservative regridding also gives NaN instead of 0 where there is no valid input.

  • The bias and tension arguments of xoa.regrid.regrid1d() were ignored by the hermit method, and drop_na was not rejected by the cellave method.

  • xoa.regrid.extrap1d() failed with dask arrays of more than one dimension.

  • The cellave method of xoa.regrid.regrid1d() gave random results when the output coordinates have a dimension that the data does not have.

  • Fix the -h and --short-help options of xoa.cfgm.ConfigManager.arg_parse(), which lost the options section since python 3.10, and arg_long_help(), which failed. xoa.cfgm no longer uses the private argparse._HelpAction.

  • Draw the outline of 2D grids with plot_coords="auto" in xoa.plot.plot_minimap() instead of all the points, and default coords_linewidth to 1.5.

  • Fix the Greenwich phases of xoa.tide: astronomical arguments 12 h off, M2/N2/2N2 nodal satellites, and the 90° shifts of the diurnal constituents. They now agree with utide at Brest within 0.5° for the main constituents.

  • Search the time dimension and the variables of xoa.tide with xoa.coords and xoa.meta: t_dim and time_dim default to None, harmonic_analysis() and harmonic_analysis_uv() accept datasets, and valid_time is a known time name.

  • The legend of xoa.core.plot.Rose is no longer cut off by the figure edge.

  • Fix xoa.grid.pad(), get_centers(), get_edges(), shift() and diff() for longitudes across the dateline.

  • Fix xoa.grid.apply_along_dim(), whose extra keywords were modified by the coordinate ones.

  • Fix the bilinear and bicubic interpolation and regridding of regular grids that span more than 180°, which gave missing values, and of global grids, whose cells between the last and first columns are now interpolated. Longitudes out of [-180, 180], like 0-360, are now accepted for grids and points.

  • Fix xoa.filter.tidal_filter() with series that are sampled more than hourly, and the unit of its error message.

  • Fix the white margins of the figures of xoa.plot.plot_grid(), whose size now follows the aspect ratio of the map, and use cmo.deep for its bathymetry.

  • Fix xoa.dyn.flow2d() with a dataset of initial positions, which used the longitudes for the latitudes, and xoa.plot.plot_flow() with missing values in the currents.

  • Fix xoa.geo.get_distances() for a single set of points, which had two dimensions of the same name, now npts0 and npts1, and clarify the angle of xoa.geo.bearing().

  • Fix xoa.plot.add_lightshading(), which gave black objects with recent versions of matplotlib, with a default fraction of one.

  • Fix the thin last row and column of the under-sampled grids of xoa.plot.plot_grid(): the drawn edges are now evenly spread with the first and last ones kept.

  • Fix xoa.color.CmapAdapter without specs, which made the cmap validation function of xoa.cfgm crash, and its invalid specs, which now raise an error.

  • Fix xoa.krig: simple kriging now uses the covariance, block kriging averages per point, empirical_variogram() no longer fails when undersampling, drops pairs at the same distance or overwrites the long name, a fitted VariogramModel is not fitted again and the first variable of a dataset is used to fit it. The krigers now return the grid or the dimensions of the target with its coordinates and their attributes, and the attributes of the input data, and accept a single position. The kriging error is now named variance, and it is conservative for the ClusteredKriger. The latter and xoa.geo.clusterize() accept a seed for reproducible clusters. The kriging matrices are factorized (Cholesky or LU) instead of inverted, with a pseudo inverse for singular ones, and the fitted nugget is at least 1e-6 of the sill.

  • The set_meta_specs method of the xoa accessors accepts the same arguments as xoa.meta.set_meta_specs, like a name or a dict.

  • Fix xoa.krig.Kriger that computed the distances between input points in meters whatever its dist_units.

  • xoa.coords.get_depth() no longer fails when it has to decode a dataset, and no longer warns when errors="ignore".

  • Fix the decode_sigma subaccessor of the xoa accessor of datasets, that returned None.

  • Fix xoa.sigma.decode_sigma() that silently overwrote the heights at rho levels with those at w levels of CROCO. It now raises an error when two heights have the same name, and heights are named z_rho and z_w with the croco specs, as the location is also parsed from the name of the sigma variable.

  • Fix the meta appendix: the meta configurations are no longer called specifications, the specifications provided by the internal meta.ini file have their own page, and the details pages of the configuration items are not listed in the left table of contents anymore.

  • Fix the bilinear and bicubic interpolation with skipna=True and na_thres=0, that set isolated points to nan because of rounding errors in the sum of the weights of valid neighbours.

  • Fix the conservative weights of the cells that cross the dateline or that are on the other side of it, which were missing. Longitudes of the cells are made continuous before computing their overlaps, with xoa.core.poly.unwrap_longitudes() and xoa.core.grid.unwrap_grid_longitudes().

  • Fix the points that are on the first and last lines of a regular source grid, that were NaN on the last one and extrapolated up to one cell before the first one, with the bilinear and bicubic methods. Cells are now closed and what is outside is NaN on all sides.

  • Fix the bicubic method that returned NaN for the points that are exactly on the second and last but one lines of a rectangular grid, whereas they are valid on a regular grid.

  • Fix the interpolation on rectangular grids, which have an irregular spacing, whose latitudes decrease along their dimension, that gave NaN everywhere, and a longitude search that wrongly found points that are on the opposite side of the globe of a cell that crosses the dateline.

  • Fix the interpolation on curvilinear grids that cross the dateline, that gave NaN or wrong values near it.

  • Fix the search of the closest node of large curvilinear grids, that missed the cell of some points of the inside of the grid (0.1% on a 400 x 400 grid): the closest node of a subsampled grid is now refined by walking downhill instead of searching a window of fixed size, and invalid nodes trigger a full search.

  • Fix the conservative weights that were silently truncated to ten links per source cell, so that regridding to a much finer grid gave wrong values, and make their computation much faster with an index of the source cells, instead of testing all the pairs of cells.

  • xoa.core.grid.check_grid_type() no longer warns for a grid with a single row or column.

  • xoa.interp.Interpolator.interp_with_time() no longer renames an unnamed data array.

  • xoa.plot.plot_ts() only adds a colorbar automatically when the scatter colors are a data array, and not a numpy array, and its colorbar is now shrunk and labelled like the others. Its axis labels are built with xoa.plot.get_label().

  • Fix a data race in xoa.core.interp.closest2d() (parallel scan writing to shared accumulators) that made xoa.interp.grid2loc() silently return wrong results, or crash, on genuinely curvilinear (non-separable) grids.

  • Remove fastmath=True from xoa.core.interp.closest2d(), xoa.core.interp.cell2relloc() and xoa.core.interp.grid2relloc(): it could break the NaN-skip comparisons these functions rely on to ignore invalid/land-masked grid points, silently returning a wrong result.

Documentation#

2026.7.0#

Bug fixes#

  • Remove the xoa reset_cf_cache CLI command: the disk cache no longer exists in xoa.meta and the command was raising AttributeError at runtime [PR117].

2026.2.0#

New features#

  • Add the within parameter to xoa.cf search methods.

  • Add the rename_args argument to formatting routing of xoa.meta to retrieve renaming information [PR102].

  • Add the xoa.dyn.get_sea_level() function to get either SSH, ADT, SLA or MDT in a dataset [PR102].

  • Allow passing a list of “meta_name” to xoa.cf.MetaSpecs.get() for enlarging a search [PR102].

  • The xoa.data_samples module now use Pooch to manage sample files [PR111].

  • Add the multi parameter to xoa.misc.Choices to allow multiple choices [PR111].

Deprecations#

  • The xoa.cf module is deprecated. Use xoa.meta instead. All references to “cf” must be converted to “meta” in modules, functions, classes, methods and accessors. A backward compatibility layer has been added [PR111].

  • The xoa.cf_configs module is deprecated in favour of module xoa.meta.configs [PR111].

  • Pure core regridding 1D function of the xoa.core.interp module are moved to xoa.core.regrid module.

Bug fixes#

Documentation#

  • Rename “Using the modules” section to “In-depth guides”.

  • Added in the in-depth guide to metadata mentions of xoa.coords, xoa.dyn and xoa.thermdyn helper function to access coordinates and physical variables like lon or temp.

  • Added in-depth guides about sigma-like coordinates, grids and regridding, and filtering.

0.8.0 (2025-05-12)#

New features#

  • Add modules xoa.data_samples and xoa.cf_configs.

  • xoa.cf.CFSpecs, xoa.cf.register_cf_specs(), xoa.cf.get_cf_specs() and xoa.cf.set_cf_specs now accepts short names of internal CF config like “croco” or “argo”.

  • Add absolute option for salinity and the ref_dens option to enable using different formulae for density to xoa.plot.plot_ts().

  • Add the exclude_names option to xoa.cf configurations to ignore data array names.

  • Call xoa.cf.infer_cf_specs() from xoa.cf.get_cf_specs() when a data array or dataset is passed [PR96].

  • Add the drop_na and maxgap parameters to the xoa.regrid.regrid1d() function to fill gaps [PR92].

  • Add the xoa.filter.tidal_filter() function to apply a tidal filter to a time series [PR87].

Breaking changes#

  • xoa.cf.CFSpecs() tests the generic pivot name last, not first.

  • The xoa.cf.CFSpecs.decode() method no longer sets the “cf_specs” encoding [PR96].

  • The default name_format option of the sglocator section of the meta specifications is set to False to prevent parsing the grid location in names [PR96].

  • xoa.filter.tidal_filter() raises an XoaError instead of a simple warning when the time step is greater than an hour.

  • xoa.regrid.regrid1d(): extrapolation from input data instead of output data [PR91].

Deprecations#

Bug fixes#

Documentation#

0.7.1 (2023-07-21)#

New features#

Bug fixes#

Documentation#

  • Add a link to the github repository.

0.7.0 (2023-07-17)#

New features#

Breaking changes#

  • get_window_func() now accepts only one positional argument and all other arguments must be named.

Bug fixes#

Documentation#

0.6.1 (2022-02-24)#

New features#

Breaking changes#

  • A single Nan now contaminates the data over the kernel emprise in xoa.filter.convolve() since na_thres is set to zero by default [PR40].

  • xoa now requires the gsw package.

Bug fixes#

Documentation#

0.6.0 (2022-02-24)#

Empty with non existing tag.

0.5.1 (2021-10-13)#

New features#

  • Switch the CI workflow to github [PR36].

Bug fixes#

  • Fix xoa.cf.CFSpecs.to_loc() that was failing with dataset [PR23].

0.5.0 (2021-10-12)#

New features#

Bug fixes#

  • Fix xoa.cf.SGLocator.parse_attr parsing since regular expressions were not matching full strings.

  • Fix xoa.regrid.regrid1d() with “cellave” method [PR34].

  • Fix xoa.cf.CFSpecs.get_location_mapping() for coordinates that have no axis attribute specifications [PR34].

  • Fix xoa.grid.dz2depth() that was not working properly with 4D+ arrays [PR34].

Breaking changes#

  • The default name_format of xoa.cf.SGLocator no longer contains the location pattern {loc} to prevent unwanted location catching.

  • The loc argument of xoa.sigma.get_sigma_terms() is renamed vloc [PR34].

0.4.0 (2021-09-02)#

New features#

  • xoa.cf.CFSpecs.decode() better supports staggered grids.

  • xoa.cf.CFSpecs.search_dim() supports generic names in addition to dimension types as second argument.

  • Add the xoa.cf.CFSpecs.match_dim() method to check if a given dimension name is known.

  • Add the reloc() and to_loc() methods to xoa.cf.CFSpecs for quickly changing the staggered grid indicators in names.

  • Add the xoa.cf.SGLocator.add_loc() method to quickly change the location markers in a data array.

Breaking changes#

  • xoa.coords.get_dims() is renamed to xoa.coords.get_cf_dims().

  • The name argument of xoa.cf.CFSpecs methods is renamed to cf_name, and the dim_type(s) argument is renamed to cf_arg(s).

  • xoa.cf.SGLocator.get_location() is renamed to get_loc_from_da() and the get_loc() is added.

Bug fixes#

Documentation#

v0.3.1 (2021-05-21)#

New features#

Breaking changes#

  • Rename the cf and sigma keyword of xoa.register_accessors() respectively to xcf and decode_sigma to match the default name of accessors.

  • Rename the sigma accessor to decode_sigma.

Bug fixes#

  • Fix the access to the xoa executable on windows.

  • Fix the minimal version for xarray [PR23].

Documentation#

  • Add a “How to start” section.

  • Accessors are now documented separately with sphinx-autosummary-accessors [PR20].

  • The Hycom-GDP example now uses xoa.plot.plot_flow().

v0.3.0 (2021-05-12)#

New features#

Bug fixes#

  • Fix u and v CF config [PR6]

YYYY.M.MICRO#

New features#

Breaking changes#

Deprecations#

Bug fixes#

Documentation#