Barak 0.3.2 documentation

barak.interp.splice

«  barak.interp.interp_spline   ::   Contents   ::   barak.interp.trilinear_interp  »

barak.interp.splice

barak.interp.splice(co0, co1, i, j, forced=None)[source]

Join two overlapping curves smoothly using a cubic spline.

Parameters :

co0, co1 : arrays of shape (N,)

The two curves to be joined. They must have the same length and overlap completely.

i, j : int

Roughly speaking, co0 values will be retained below i, and co1 values will be retained above j.

forced : int, optional

The number of pixels and continuum values between i and j that continuum will be forced to pass through.

Returns the new continuum array of shape (N,). :

«  barak.interp.interp_spline   ::   Contents   ::   barak.interp.trilinear_interp  »