filter_thru¶
- pydl.pydlspec2d.spec2d.filter_thru(flux, waveimg=None, wset=None, mask=None, filter_prefix='sdss_jun2001', toair=False)[source]¶
Compute throughput in SDSS filters.
- Parameters:
- fluxarray-like
Spectral flux.
- waveimgarray-like, optional
Full wavelength solution, with the same shape as
flux.- wset
TraceSet, optional A trace set containing the wavelength solution. Must be specified if
waveimgis not specified.- maskarray-like, optional
Interpolate over pixels where
maskis non-zero.- filter_prefix
str, optional Specifies a set of filter curves.
- toair
bool, optional If
True, convert the wavelengths to air from vacuum before computing.
- Returns:
- array-like
Integrated flux in the filter bands.
- Raises:
ValueErrorIf neither
waveimgnorwsetare set.