patch_to_xarray

function of dascore.xarray.patch source

patch_to_xarray(
    patch: Patch ,
    lazy_coords: collections.abc.Collection[str] = (),
)

Return a data array with patch contents.

Parameters

Parameter Description
patch The patch to convert.
lazy_coords Names of coordinates to serve by the range which states them
rather than by an array of every label. Such a coordinate then
costs three numbers however long the acquisition, and its labels
are computed on demand. A name which does not belong to an
evenly sampled temporal dimension coordinate of this patch is
ignored; anything not named spells its labels out, which is what
xarray aligns arithmetic on. See
dascore.xarray.index.TemporalRangeIndex for what a lazily
served coordinate does not yet support.
Note

A DataArray states a coordinate by its labels, so a coordinate of a single sample cannot say how far apart its samples would be: such a step is lost unless the coordinate is served lazily, which states it.