snap

method of dascore.core.coords.NumericCoord source

snap(
    self ,
    step = None,
    max_shift = None,
    warn = False,
)-> ‘BaseCoord’

Snap the coordinates to evenly sampled grid points.

The labels spread evenly between the min and max, or with step go to the nearest positions of its grid through the first. A move over max_shift steps raises; one over one step warns if warn (snap_coords asks, operations snapping for their own use do not).