Coordinates#

DataArray is the base class in xdas. It is mainly composed of a N-dimensional array and a set of Coordinate objects that are gathered in a Coordinates dict-like object that can be accessed by the DataArray.coords attribute. Xdas comes with several flavors of Coordinate objects.

Type

Description

name

data

ScalarCoordinate

Used to label 0D dimensions

scalar

{"value": any}

DefaultCoordinate

Each value is equal to its index

default

{"size": int}

DenseCoordinate

Each index is mapped to a given value

dense

array-like[any]

InterpCoordinate

Values are interpolated linearly between tie points

interpolated

{"tie_indices": array-like[int], "tie_values": array-like[any]}

SampledCoordinate

Values are given as a multiple of a fixed sampling interval and several start values

sampled

{"tie_values": array-like[any], "tie_indices": array-like[int], "sampling_interval": any}

In the current state of the documentation, most coordinate information can be found on the Interpolated Coordinates page.

Per type information#