emsarray.types

emsarray.types#

A collection of descriptive type aliases used across the library.

Pathish#

Something that can be used as a path.

alias of Union[PathLike, str]

Bounds#

Bounds of a geometry or of an area. Components are ordered as (min x, min y, max x, max y).

alias of tuple[float, float, float, float]

Landmark#

A landmark for a plot. This is a tuple of the landmark name and and its location.

alias of tuple[str, Point]

DataArrayOrName#

Either an xarray.DataArray, or the name of a data array in a dataset.

alias of Union[Hashable, DataArray]