is_continuum_below_threshold¶
- specutils.analysis.is_continuum_below_threshold(spectrum, threshold=0.01)[source]¶
Determine if the baseline of this spectrum is less than a threshold. I.e., an estimate of whether or not the continuum has been subtracted.
If
threshold
is anQuantity
with flux units, this directly compares the median of the spectrum to the threshold. of the flux to the threshold.If the threshold is a float or dimensionless quantity then the spectrum’s uncertainty will be used or an estimate of the uncertainty. If the uncertainty is present then the threshold is compared to the median of the flux divided by the uncertainty. If the uncertainty is not present then the threshold is compared to the median of the flux divided by the
mad_std
.- Parameters:
- spectrum
Spectrum1D
The spectrum object over which the width will be calculated.
- threshold: float or `~astropy.units.Quantity`
The tolerance on the quantification to confirm the continuum is near zero.
- spectrum
- Returns:
- is_continuum_below_threshold: bool
Return True if the continuum of the spectrum is below the threshold, False otherwise.