filter_to_fft

synphot.filter_parameterization.filter_to_fft(bp, wavelengths=None, n_terms=10)[source]

Calculate filter parameters using FFT.

Parameters:
bpSpectralElement

Filter to parameterize.

wavelengthsarray-like or Quantity

Wavelength values for sampling. If not a Quantity, assumed to be in Angstrom. If None, waveset is used.

n_termsint

Number of FFT parameters to keep.

Returns:
n_lambdaint

Number of elements in wl.

lambda_0Quantity

Minimum value of wl.

delta_lambdaQuantity

Median delta wavelength.

tr_maxQuantity

Maximum value of tr.

fft_parameterslist of complex

List of complex values that are FFT parameters to keep.