integrate_spectrum_filter¶
- msaexp.spectrum.integrate_spectrum_filter(spec, filt, z=0, filter_fraction_threshold=0.1)[source]¶
Integrate spectrum data through a filter bandpass
- Parameters
- spec
Table Spectrum data with columns
wave(microns),fluxanderr[full_err] (fnu) andvalid- filt
FilterDefinition Filter bandpass object
- zfloat
Redshift
- filter_fraction_thresholdfloat
Minimum allowed
filter_fraction, i.e. for filters that overlap with the observed spectrum
- spec
- Returns
- npixint
Number of “valid” pixels
- filter_fractionfloat
Fraction of the integrated bandpass that falls on valid spectral wavelength bins
- filter_fluxfloat
Integrated flux density, in units of
spec['flux']- filter_errfloat
Propagated uncertainty from
spec['err']- filter_full_errfloat
Propagated uncertianty from
spec['full_err'], if available. Returns -1 if not available.