mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A spectrum from the Pickles library.
Definition at line 243 of file astroSpectra.hpp.
#include <astro/astroSpectra.hpp>
Public Types | |
typedef std::string | paramsT |
The Pickles spectra are parameterized by a spectral type string. More... | |
Static Public Member Functions | |
static std::string | fileName (const std::string &spt) |
The name of the datafile is constructed from its spectral type string. More... | |
static int | readSpectrum (std::vector< realT > &rawLambda, std::vector< realT > &rawSpectrum, const std::string &path, const paramsT ¶ms) |
Read a Pickles spectrum, which for these purposes is a simple two column ASCII format. More... | |
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>(1) |
The Pickles spectra are dimensionless. More... | |
static constexpr const char * | dataDirEnvVar = "PICKLES_DATADIR" |
The Pickles spectra location is specified by the PICKLES_DATADIR environment variable. More... | |
typedef std::string mx::astro::picklesSpectrum< _units >::paramsT |
The Pickles spectra are parameterized by a spectral type string.
Definition at line 250 of file astroSpectra.hpp.
|
inlinestatic |
The name of the datafile is constructed from its spectral type string.
Definition at line 262 of file astroSpectra.hpp.
References mx::ioutils::toLower().
|
inlinestatic |
Read a Pickles spectrum, which for these purposes is a simple two column ASCII format.
[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 268 of file astroSpectra.hpp.
References mx::ioutils::readColumns().
|
staticconstexpr |
The Pickles spectra location is specified by the PICKLES_DATADIR environment variable.
Definition at line 259 of file astroSpectra.hpp.
|
staticconstexpr |
The Pickles spectra are dimensionless.
Definition at line 256 of file astroSpectra.hpp.
|
staticconstexpr |
Convert from A to SI m.
Definition at line 253 of file astroSpectra.hpp.