apply_filter¶
- sofia_redux.calibration.standard_model.derived_optics.apply_filter(caldata, filter_name, atmosphere_wave, atmosphere_transmission, model_wave, model_flux)[source]¶
Only select out wavelength and fluxes in a given filter.
- Parameters:
- caldatastr
Path to location of calibration data.
- filter_namestr
Name of the filter to apply.
- atmosphere_wavenumpy.array
Wavelengths of the atmosphere transmission model.
- atmosphere_transmissionnumpy.array
Transmission of the atmosphere at each wavelength in
atmosphere_wave
.- model_wavenumpy.array
Wavelengths of the source model.
- model_fluxnumpy.array
Modeled flux emitted by source at each wavelength in
model_wave
.
- Returns:
- wfnumpy.array
Wavelengths of the filter.
- tfnumpy.array
Transmission of the filter at each wavelength in
wf
.- tafnumpy.array
Atmospheric transmission at each wavelength in the filter.
- fsinumpy.array
Flux emitted by the modeled source at each wavelength in the filter.
- warrnumpy.array
Wavelengths in the filter that
fsi
is defined at.- fnamestr
Full path of the filter.