mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A square-wave filter spectrum.
Parameters specify the central wavelength, width, and sampling (all in microns) of a square-wave type filter.
To create this filter:
Note that dlam specifies how sharp the filter edges are when interpolated. Larger values will make the filter more trapezoidal.
Definition at line 140 of file astroSpectra.hpp.
#include <astro/astroSpectra.hpp>
Classes | |
struct | paramsT |
The square wave is parameterized by the central wavelength, width, and sampling (all in microns). More... | |
Static Public Member Functions | |
static int | readSpectrum (std::vector< realT > &rawLambda, std::vector< realT > &rawSpectrum, const std::string &path, const paramsT ¶ms) |
Static Public Attributes | |
static constexpr realT | wavelengthUnits = static_cast<realT>(1e6) |
Convert from um to SI m. More... | |
static constexpr realT | fluxUnits = static_cast<realT>(1) |
No conversion is performed on filter transmission. More... | |
|
inlinestatic |
[out] | rawLambda | the raw wavelength vector. This should be an empty vector on input. |
[out] | rawSpectrum | the raw spectrum. This should be an empty vector on input. |
[in] | path | the full path to the file. |
[in] | params | the parameters are passed in case needed to construct the spectrum |
Definition at line 168 of file astroSpectra.hpp.
References mx::astro::sqWaveFilter< _units, _rsr >::paramsT::dlam, mx::astro::sqWaveFilter< _units, _rsr >::paramsT::fw, and mx::astro::sqWaveFilter< _units, _rsr >::paramsT::lam0.
|
staticconstexpr |
No conversion is performed on filter transmission.
Definition at line 159 of file astroSpectra.hpp.
|
staticconstexpr |
Convert from um to SI m.
Definition at line 156 of file astroSpectra.hpp.