|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
Provides access to the removal of cosmic spikes that could impact analysis. More...
Public Member Functions | |
| __init__ (self, spin_tau, spin_window) | |
| ProcessedReading | DarrenEtAlAlgo (self, ProcessedReading processed_reading) |
| None | interpolate_zs (self, np.ndarray spectra, np.ndarray scores, list[int] candidate_idxs, float tau, int m) |
| ProcessedReading | process (self, ProcessedReading processed_reading) |
Public Attributes | |
| spin_tau = spin_tau | |
| spin_window = spin_window | |
Provides access to the removal of cosmic spikes that could impact analysis.
Currently only implements the algorithm in the paper by Whitaker and Hayes. Future improvements will provide different algorithms to choose from.
| enlighten.post_processing.DespikingFeature.DespikingFeature.__init__ | ( | self, | |
| spin_tau, | |||
| spin_window ) |
| ProcessedReading enlighten.post_processing.DespikingFeature.DespikingFeature.DarrenEtAlAlgo | ( | self, | |
| ProcessedReading | processed_reading ) |
| None enlighten.post_processing.DespikingFeature.DespikingFeature.interpolate_zs | ( | self, | |
| np.ndarray | spectra, | ||
| np.ndarray | scores, | ||
| list[int] | candidate_idxs, | ||
| float | tau, | ||
| int | m ) |
| tau,sensitivity | to spikes, lower means more likely to consider something a spike, Whitaker and Hayes used 6.5 for default |
| m | window size, larger window means grabs more neighbors for averaging in the moving window takes the pre-identified indicies that are believed to be spikes and applies the algorithm from the paper on them. Modification is done in place |
| ProcessedReading enlighten.post_processing.DespikingFeature.DespikingFeature.process | ( | self, | |
| ProcessedReading | processed_reading ) |
| enlighten.post_processing.DespikingFeature.DespikingFeature.spin_tau = spin_tau |
| enlighten.post_processing.DespikingFeature.DespikingFeature.spin_window = spin_window |