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.

wsetTraceSet, optional

A trace set containing the wavelength solution. Must be specified if waveimg is not specified.

maskarray-like, optional

Interpolate over pixels where mask is non-zero.

filter_prefixstr, optional

Specifies a set of filter curves.

toairbool, optional

If True, convert the wavelengths to air from vacuum before computing.

Returns:
array-like

Integrated flux in the filter bands.

Raises:
ValueError

If neither waveimg nor wset are set.