What’s New¶
v0.6.2 (August 27, 2025)¶
catching and ignoring a bunch of warnings from
xgcm, but still staying withxgcmv0.8.1until I can update this code to match.updating CI test versions to 3.11, 3.12, 3.13
v0.6.1 (October 28, 2024)¶
Correction in a few built-in calculations of u/v grid to rho-grid interpolations of u and v velocities (currently
speedand_uv2eastnorth). In these cases, we need to fill nans with zeros so that the masked locations in the velocity fields are not fully brought forward into the rho mask but are instead interpolated over. By making them 0, they are calculated into the mask_rho positions by combining them with neighboring cells. If this wasn’t done, the fact that they are masked would supersede the neighboring cells and they would be masked in mask_rho. This needs to be done anytime the velocities are moved from their native grids to the rho or other grids to preserve their locations around masked cells.
v0.6.0 (February 9, 2024)¶
fixed error in
derived.py’suv_geostrophicfunction after being pointed out by @ak11283updated docs so mostly well-formatted and working
v0.5.3 (October 11, 2023)¶
change to
roms_dataset()so that input flaginclude_3D_metricsalso controls ifds["3d"] = True.
v0.5.2 (October 4, 2023)¶
small fix to
roms_dataset()processing to enable running it twice
v0.5.1 (September 14, 2023)¶
renamed all references to “divergence” to “convergence” instead
v0.5.0 (September 12, 2023)¶
the mixed layer depth function now returns positive values
v0.4.7 (September 8, 2023)¶
Fixed attributes for accessor method
div_norm
v0.4.6 (July 31, 2023)¶
fixed
ds.xroms.divandds.xroms.div_normin the case thatuandvneed to be calculated from other velocities likeeastandnorth.
v0.4.5 (July 27, 2023)¶
typo fix
v0.4.4 (July 27, 2023)¶
added accessor function
find_horizontal_velocities()which returns the names of the horizontal velocities since they sometimes have different names, but still there are only a few options.
v0.4.3 (July 27, 2023)¶
zkey is checked for but not required in interpll now
v0.4.2 (July 27, 2023)¶
changes to roms_dataset
If “coordinates” are found in attrs for a variable, they are moved to “encoding” now because everything works better then.
Recreated the zslice function in the accessor for both Dataset and DataArray (instead of just using the default isoslice).
updated docs and tests accordingly.
v0.4.1 (July 27, 2023)¶
can now pass kwargs to xe.Regridder in interpll
v0.4.0 (July 25, 2023)¶
hopefully fixing issue reordering dimensions when extra coords present
divergence calculation was added to derived.py
accessor changes:
xgrid is run automatically when accessor is used, which could be too slow for some uses
div and div_norm properties added to accessor
div_norm is the surface divergence normalized by f
added tests for new functions
hopefully fixed build issue on several OSes by pinning
h5py < 3.2, see for reference https://github.com/h5py/h5py/issues/1880, https://github.com/conda-forge/h5py-feedstock/issues/92updated docs
v0.3.3 (July 11, 2023)¶
do not use Z coords if 2d
v0.3.2 (June 23, 2023)¶
More fixes to the rotation accessor options
v0.3.1 (June 22, 2023)¶
made east/north variable names have two options
v0.3.0 (June 12, 2023)¶
can rotate along-grid velocities to be eastward and northward
can also rotate to be along an arbitrary angle (to be along-channel for example)
v0.2.3 (May 24, 2023)¶
updating versioning approach
the xgcm grid is no longer attached to every variable in a Dataset. Because of this:
Several
xromsaccessor functions now require the grid to be inputAdditionally because of the grid not being available, the Dataset is no longer available within the DataArray accessor, making it so that functions that change the grid size in any dimension no longer know about other coordinates to use. Therefore, these
xromsaccessor functions for DataArrays no longer work (e.g. ddeta, ddxi, etc). AllxromsDataset accessor functions still work, and the grid object is still saved to the Datasetxromsaccessor.
You can set up the grid object directly in your
xromsDataset accessor withds.xroms.set_grid(grid), otherwise it will be calculated internally.xromsfunctions for opening model output files will be deprecated in the future; usexarrayfunctions directly instead of opening model output throughxroms, and then runxroms.roms_dataset()to add functionality to your Dataset and to calculate yourxgcmgrid object.tests have been updated
xromsworks with newest version ofxgcmchanged all references to the
xgcmgrid toxgridsince there is now a “grid” attribute in some Datasets.updated example notebooks to be formal docs
added a ROMS example dataset, available with
xroms.datasets.fetch_ROMS_example_full_grid().