mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches

template<typename _units, bool _rsr = true>
struct mx::astro::astroFilter< _units, _rsr >

A spectrum from the astroFilt filter library.

Definition at line 70 of file astroSpectra.hpp.

#include <astro/astroSpectra.hpp>

Public Types

typedef std::string paramsT
 The astroFilters are parameterized by name.

Static Public Member Functions

static error_t readSpectrum (std::vector< realT > &rawLambda, std::vector< realT > &rawSpectrum, const std::string &path, const paramsT &params)

Static Public Attributes

static constexpr realT wavelengthUnits = static_cast<realT>( 1e6 )
 Convert from um to SI m.
static constexpr realT fluxUnits = static_cast<realT>( 1 )
 No conversion is performed on filter transmission.

Member Typedef Documentation

◆ paramsT

template<typename _units, bool _rsr = true>
typedef std::string mx::astro::astroFilter< _units, _rsr >::paramsT

The astroFilters are parameterized by name.

Definition at line 77 of file astroSpectra.hpp.

Member Function Documentation

◆ readSpectrum()

template<typename _units, bool _rsr = true>
error_t mx::astro::astroFilter< _units, _rsr >::readSpectrum ( std::vector< realT > & rawLambda,
std::vector< realT > & rawSpectrum,
const std::string & path,
const paramsT & params )
inlinestatic
Parameters
[out]rawLambdathe raw wavelength. Should be empty on input.
[out]rawSpectrumthe raw spectrum. Should be empty on input.
[in]paththe full path to the file.
[in]paramsthe parameters needed to construct the spectrum

Definition at line 92 of file astroSpectra.hpp.

References mx::noerror, and mx::ioutils::readColumns().

Member Data Documentation

◆ fluxUnits

template<typename _units, bool _rsr = true>
realT mx::astro::astroFilter< _units, _rsr >::fluxUnits = static_cast<realT>( 1 )
staticconstexpr

No conversion is performed on filter transmission.

Definition at line 83 of file astroSpectra.hpp.

◆ wavelengthUnits

template<typename _units, bool _rsr = true>
realT mx::astro::astroFilter< _units, _rsr >::wavelengthUnits = static_cast<realT>( 1e6 )
staticconstexpr

Convert from um to SI m.

Definition at line 80 of file astroSpectra.hpp.


The documentation for this struct was generated from the following file: