PatchMeta

class of dascore.core.processor source

PatchMeta(
    coords: ‘CoordManager’ ,
    attrs: ‘PatchAttrs’ ,
    dtype: ‘Any’ ,
    backend: ‘str’ = numpy,
    patch_type: ‘Any’ = None,
)-> None

Everything a patch carries except its data.

Parameters

Parameter Description
coords The coordinates, which carry the dimensions and the shape too.
attrs The patch’s attributes.
dtype What the data are.
backend Which array library the data belong to.

Methods

Name Description
get_axis Return the axis a dimension name refers to.
to_patch Return the patch this metadata and some data make.
update Return metadata with some of it changed.