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

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

An albedo spectrum directly from the Cahoy et al (2010) [2] grid.

Definition at line 24 of file cahoyAlbedos.hpp.

#include <astro/cahoyAlbedos.hpp>

Static Public Member Functions

static std::string fileName (const paramsT &params)
 The file name is constructed from the paramerters sep, metal, and phase. More...
 
static int readSpectrum (std::vector< realT > &rawLambda, std::vector< realT > &rawSpectrum, const std::string &path, const paramsT &params)
 Read the spectrum from the file specified by path. Extra columns are discarded. More...
 

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)
 Geometric albedos are dimensionless. More...
 

Member Function Documentation

◆ fileName()

template<typename _units >
static std::string mx::astro::cahoySpectrumRaw< _units >::fileName ( const paramsT &  params)
inlinestatic

The file name is constructed from the paramerters sep, metal, and phase.

Definition at line 48 of file cahoyAlbedos.hpp.

◆ readSpectrum()

template<typename _units >
static int mx::astro::cahoySpectrumRaw< _units >::readSpectrum ( std::vector< realT > &  rawLambda,
std::vector< realT > &  rawSpectrum,
const std::string &  path,
const paramsT &  params 
)
inlinestatic

Read the spectrum from the file specified by path. Extra columns are discarded.

Definition at line 90 of file cahoyAlbedos.hpp.

References mx::ioutils::readColumns().

Member Data Documentation

◆ fluxUnits

template<typename _units >
constexpr realT mx::astro::cahoySpectrumRaw< _units >::fluxUnits = static_cast<realT>(1)
staticconstexpr

Geometric albedos are dimensionless.

Definition at line 43 of file cahoyAlbedos.hpp.

◆ wavelengthUnits

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

Convert from um to SI m.

Definition at line 40 of file cahoyAlbedos.hpp.


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