get_coord

function of dascore.proc.coords source

get_coord(
    self: Patch ,
    name: str ,
    require_sorted: bool = False,
    require_evenly_sampled: bool = False,
)-> ‘BaseCoord’

Get a managed coordinate, raising if it doesn’t meet requirements.

Parameters

Parameter Description
name Name of the coordinate to fetch.
require_sorted If True, require the coordinate to be sorted or raise Error.
require_evenly_sampled If True, require the coordinate to be evenly sampled or raise Error.