mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::astro::phoenixSpectrum< _units > Struct Template Reference

template<typename _units>
struct mx::astro::phoenixSpectrum< _units >

A spectrum from the Phoenix model, for use with ioutils::astro::astroSpectrum.

Definition at line 24 of file phoenixSpectrum.hpp.

#include <astro/phoenixSpectrum.hpp>

Public Types

typedef std::string paramsT
 The parameter is a string name. More...
 

Static Public Member Functions

static int 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>(1e10)
 Convert from A to SI m. More...
 
static constexpr realT fluxUnits = static_cast<realT>(1e7) / (static_cast<realT>(1e4)*static_cast<realT>(1e10))
 Convert from erg s-1 cm-2 A-1 to SI W m-3. More...
 

Member Typedef Documentation

◆ paramsT

template<typename _units >
typedef std::string mx::astro::phoenixSpectrum< _units >::paramsT

The parameter is a string name.

Definition at line 39 of file phoenixSpectrum.hpp.

Member Function Documentation

◆ readSpectrum()

template<typename _units >
static int mx::astro::phoenixSpectrum< _units >::readSpectrum ( std::vector< realT > &  rawLambda,
std::vector< realT > &  rawSpectrum,
const std::string &  path,
const paramsT params 
)
inlinestatic
Parameters
[in]paramsthe parameters are passed in case needed to construct the spectrum

Definition at line 46 of file phoenixSpectrum.hpp.

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

Member Data Documentation

◆ fluxUnits

template<typename _units >
constexpr realT mx::astro::phoenixSpectrum< _units >::fluxUnits = static_cast<realT>(1e7) / (static_cast<realT>(1e4)*static_cast<realT>(1e10))
staticconstexpr

Convert from erg s-1 cm-2 A-1 to SI W m-3.

Definition at line 35 of file phoenixSpectrum.hpp.

◆ wavelengthUnits

template<typename _units >
constexpr realT mx::astro::phoenixSpectrum< _units >::wavelengthUnits = static_cast<realT>(1e10)
staticconstexpr

Convert from A to SI m.

Definition at line 32 of file phoenixSpectrum.hpp.


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