raman.cut¶
-
raman.
cut
(x, y, x0, x1)¶ Cut out a subarray from x and y according to the closed interval [xfrom, xto].
Parameters: - x (array) – x-axis.
- y (array) – Data (same shape as x; if 2d array, same shape as x along axis 1).
- x0 (float) – Lower bound of interval in same units as x.
- x1 (float) – Upper bound of interval in same units as x.
Returns: Sliced arrays x and y.
Note
This function does not perform any interpolation but rather allows slicing of arrays using physical values rather than array indices.