skultrafast.filter¶
This module contains various filters and binning methods. All take a dv tup and return a tup.
Functions¶
|
Only use the first n-components. |
|
|
|
Apply an uniform filter to data. |
|
Apply an uniform filter to data. |
|
Apply a Savitzky-Golay filter to a tup. |
|
Bin the data onto n-channels. |
|
Given wavelengths and data it bins the data into n-wavelenths. |
|
Returns a boolean array which is True where arr is between |
|
|
|
Module Contents¶
- skultrafast.filter.svd_filter(tup, n=6)[source]¶
Only use the first n-components.
- Parameters:
tup – data object.
n – number of svd components used.
- skultrafast.filter.sg_filter(tup, window_length=11, polyorder=2, deriv=0, axis=0)[source]¶
Apply a Savitzky-Golay filter to a tup.
Parameter¶
- tup:
Data
- window_length:
Winodw length of the filter
- polyorder:
The order of local polynomial. Must be smaller than window_length.
- deriv:
The order of the derivative to compute. This must be a nonnegative integer. The default is 0.
- skultrafast.filter.weighted_binner(n, wl, dat, std)[source]¶
Given wavelengths and data it bins the data into n-wavelenths. Returns bdata and bwl
- skultrafast.filter._idx_range(arr, a, b)[source]¶
Returns a boolean array which is True where arr is between a and b.
- Parameters:
arr (array) – Array to find the range in.
a (float) – First edge of the region.
b (float) – Second edge of the region.
- Returns:
The resulting boolean array
- Return type:
arr of bool