filter_from_fft

synphot.filter_parameterization.filter_from_fft(n_lambda, lambda_0, delta_lambda, tr_max, fft_parameters)[source]

Reconstruct a filter from given FFT parameters. The inputs for this function can be obtained from filter_to_fft().

Parameters:
n_lambdaint

Number of elements in original wavelength array.

lambda_0float or Quantity

Minimum value of original wavelength array. If not a Quantity, assumed to be in Angstrom.

delta_lambdafloat or Quantity

Median delta wavelength of original wavelength array. If not a Quantity, assumed to be in Angstrom.

tr_maxfloat or Quantity

Maximum value of transmittance curve. If a Quantity, must be unitless.

fft_parameterslist of complex

List of complex values that are FFT parameters representing the filter transmittance curve.

Returns:
bpSpectralElement

Reconstructed filter.