skultrafast.filter
¶
This module contains various filters and binning methods. All take a dv tup and return a tup.
Module Contents¶
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 |
|
|
|
- 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