xoa.coords

Coordinates and dimensions utilities

Functions

change_index(da, dim, values)

Change the values of a dataset or data array index

drop_dim_coords(da, dim)

Drop coords that have a particular dim

get_altitude(da[, errors])

Get the altitude coordinate

get_cf_coords(da, coord_names[, errors])

Get several coordinates

get_coords_compat_with_dims(da[, …])

Return the coordinates that are compatible with dims

get_depth(da[, errors])

Get the depth coordinate

get_dim_types(da[, unknown, asdict])

Get dimension types

get_dims(da, dim_types[, allow_positional, …])

Get the data array dimensions names from their type

get_lat(da[, errors])

Get the latitude coordinate

get_level(da[, errors])

Get the level coordinate

get_lon(da[, errors])

Get the longitude coordinate

get_order(da)

Like get_dim_types() but returning a string

get_positive_attr(da[, zdim])

Get the positive attribute of a dataset

get_time(da[, errors])

Get the time coordinate

get_vertical(da[, errors])

Get either depth or altitude

reorder(da, order)

Transpose an array to match a given order

transpose(da, dims[, mode])

Transpose an array

Classes

DimFlusher1D(da_in, coord_out[, dim, …])

positive_attr([value])

Allowed value for the positive attribute argument

transpose_modes([value])

Supported transpose() modes