xoa.coords.get_coords_compat_with_dims

xoa.coords.get_coords_compat_with_dims(da, include_dims=None, exclude_dims=None)[source]

Return the coordinates that are compatible with dims

Parameters:
  • da (xarray.DataArray) – Data array

  • include_dims (set(str)) – If provided, the coordinates must have at least one of these dimensions

  • exclude_dims (set(str)) – If provided, the coordinates must not have one of these dimnesions

Returns:

list(str) – List of coordinates