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

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

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

Definition at line 27 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.
static error_t 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.

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

Member Function Documentation

◆ fileName()

template<typename _units>
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 52 of file cahoyAlbedos.hpp.

References mx::ioutils::convertToString(), MXE_INVALIDARG, and mxError.

◆ readSpectrum()

template<typename _units>
error_t 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 93 of file cahoyAlbedos.hpp.

References mx::ioutils::readColumns().

Member Data Documentation

◆ fluxUnits

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

Geometric albedos are dimensionless.

Definition at line 47 of file cahoyAlbedos.hpp.

◆ wavelengthUnits

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

Convert from um to SI m.

Definition at line 44 of file cahoyAlbedos.hpp.


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