get_dim_sampling_rate

function of dascore.utils.patch source

get_dim_sampling_rate(
    patch: Patch ,
    dim: str ,
)-> ‘float’

Get sampling rate, as a float from sampling period along a dimension.

Parameters

Parameter Description
patch The input patch.
dim Dimension to extract.

Raises

CoordDataError if patch is not evenly sampled along desired dimension.