import dascore as dc
= dc.get_example_patch()
patch
= patch.get_axis("time")
axis assert axis == patch.get_axis("time")
get_axis
get_axis(
self: Patch ,
dim: str ,
)-> ‘int’
Get the axis corresponding to a Patch dimension. Raise error if not found.
Parameters
Parameter | Description |
---|---|
self | The Patch object. |
dim | The dimension name. |