CoordTransform

class of dascore.xarray.index
inherits from: xarray.core.coordinate_transform.CoordinateTransform
source

CoordTransform(
    name ,
    coord ,
    dim = None,
)

Positions to the labels of a DASCore coordinate, and back.

forward evaluates only the positions asked for; reverse returns the nearest sample as a float position, as xarray’s transform contract asks. CoordIndex selects through label_indexer instead.

Methods

Name Description
equals Two transforms are equal when they label every sample alike, units aside.
forward Return the labels for the given positions.
reverse Return the (float) positions of the samples nearest the labels.