mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A spectrum from the HST calspec library.
See http://www.stsci.edu/hst/observatory/crds/calspec.html
Definition at line 201 of file astroSpectra.hpp.
#include <astro/astroSpectra.hpp>
Public Types | |
typedef std::string | paramsT |
The calspec Spectra are parameterized by star name. More... | |
Static Public Member Functions | |
static std::string | fileName (const std::string &name) |
The file name is found from the star's name. More... | |
static int | readSpectrum (std::vector< realT > &rawLambda, std::vector< realT > &rawSpectrum, const std::string &path, const paramsT ¶ms) |
Read a CALSPEC spectrum, which 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>(1e7) / (static_cast<realT>(1e4)*static_cast<realT>(1e10)) |
Convert from erg s-1 cm-2 A-1 to SI W m-3. More... | |
typedef std::string mx::astro::calspecSpectrum< _units >::paramsT |
The calspec Spectra are parameterized by star name.
Definition at line 208 of file astroSpectra.hpp.
|
inlinestatic |
The file name is found from the star's name.
Definition at line 219 of file astroSpectra.hpp.
|
inlinestatic |
Read a CALSPEC spectrum, which 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 227 of file astroSpectra.hpp.
References mx::ioutils::readColumns().
|
staticconstexpr |
Convert from erg s-1 cm-2 A-1 to SI W m-3.
Definition at line 214 of file astroSpectra.hpp.
|
staticconstexpr |
Convert from A to SI m.
Definition at line 211 of file astroSpectra.hpp.