snr_der¶
Derivative-based SNR estimator (DER_SNR, Stoehr et al. 2008).
| Category | Quality / SNR |
| Backend | numpy - implemented here on top of numpy primitives |
| Version | 2.0.0 |
| Reads | ctx.spectrum (a Spectrum1D) |
| Writes | metrics.snr_der |
SNR = median(flux) / (1.482602 / sqrt(6) * median(|2*F[i] - F[i-2] - F[i+2]|)). Works on any reasonably sampled spectrum and is insensitive to broadband features. v2.0.0: masked samples (Spectrum1D.mask) are ignored — a masked or non-finite sample drops out of the signal median together with the three derivative terms it enters.
Parameters¶
This algorithm takes no parameters.
Use it¶
References¶
- Stoehr et al. 2008, 'DER_SNR: A Simple & General Spectroscopic Signal-to-Noise Measurement Algorithm', ASP Conf. Ser. 394, 505
Related algorithms¶
compare_snr_methods- Run every SNR estimator onctx.spectrumand collect their numbers.measure_line_offsets- Measured − reference wavelength of known emission lines, never applied.measure_resolving_power- Resolving power R = λ/FWHM from Gaussian fits of the strongest isolated lamp / sky lines.snr_edge- Estimate SNR from the flat, line-free regions at the spectrum's edges.snr_linear_fit- Estimate SNR from the scatter around a linear fit of a continuum region.validate_bess_header- Check a FITS header against the BeSS keyword contract.