mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Provide various characteristics of main sequence stars according to their spectral type.
Interpolates on "A Modern Mean Dwarf Stellar Color and Effective Temperature Sequence" by Eric Mamajek, available at http://www.pas.rochester.edu/~emamajek/EEM_dwarf_UBVIJHK_colors_Teff.txt.
Loads values of the sequence at construction (hard coded), and then provides interpolation in between the points.
Version of the sequence used: 2017.03.14
#include <astro/stars.hpp>
Public Member Functions | |
realT | Teff (realT numType) |
Get the interpolated effective temperature. More... | |
realT | Teff (const std::string &spType) |
Get the interpolated effective temperature. More... | |
realT | radius (realT numType) |
Get the interpolated radius. More... | |
realT | radius (const std::string &spType) |
Get the interpolated radius. More... | |
realT | logL (realT numType) |
Get the interpolated log of luminosity. More... | |
realT | logL (const std::string &spType) |
Get the interpolated log of luminosity. More... | |
realT | Mv (realT numType) |
Get the interpolated absolute V magnitude. More... | |
realT | Mv (const std::string &spType) |
Get the interpolated absolute V magnitude. More... | |
realT | V_Rc (realT numType) |
Get the interpolated absolute V-Rc color. More... | |
realT | V_Rc (const std::string &spType) |
Get the interpolated absolute V-Rc color. More... | |
realT | V_Ic (realT numType) |
Get the interpolated absolute V-Ic color. More... | |
realT | V_Ic (const std::string &spType) |
Get the interpolated absolute V-Ic color. More... | |
realT | V_Ks (realT numType) |
Get the interpolated absolute V-Ks color. More... | |
realT | V_Ks (const std::string &spType) |
Get the interpolated absolute V-Ks color. More... | |
realT | J_H (realT numType) |
Get the interpolated absolute J-H color. More... | |
realT | J_H (const std::string &spType) |
Get the interpolated absolute J-H color. More... | |
realT | H_Ks (realT numType) |
Get the interpolated absolute H-Ks color. More... | |
realT | H_Ks (const std::string &spType) |
Get the interpolated absolute H-Ks color. More... | |
Public Attributes | |
std::vector< double > | m_numTypes |
The numeric spectral type codes from the sequence. More... | |
std::vector< double > | m_numTypesR |
The numeric spectral type codes from the sequence, in reversed order. More... | |
std::vector< double > | m_Teffs |
The effective temperatures from the sequence. More... | |
std::vector< double > | m_TeffsR |
The effective temperatures from the sequence, reveresed order. More... | |
std::vector< double > | m_logLs |
The log10 luminosities from the sequence. More... | |
std::vector< double > | m_rads |
The radii from the sequence. More... | |
std::vector< double > | m_masses |
The masses from the sequence. More... | |
std::vector< double > | m_Mvs |
The absolute V magnitudes from the sequence. More... | |
std::vector< double > | m_V_Rcs |
The V-Rc colors from the sequence. More... | |
std::vector< double > | m_V_Ics |
The V-Ic colors from the sequence. More... | |
std::vector< double > | m_V_Kss |
The V-Ks colors from the sequence. More... | |
std::vector< double > | m_J_Hs |
The J-H colors from the sequence. More... | |
std::vector< double > | m_H_Kss |
The H-Ks colors from the sequence. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpT |
The interpolator for effective Temperature. More... | |
double | m_minT |
The minimum numeric spectral type for effective Temperature. More... | |
double | m_maxT |
The maximum numeric spectral type for effective Temperature. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpRad |
The interpolator for effective Temperature. More... | |
double | m_minRad |
The minimum numeric spectral type for effective Temperature. More... | |
double | m_maxRad |
The maximum numeric spectral type for effective Temperature. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpL |
The interpolator for log luminosity. More... | |
double | m_minL |
The minimum numeric spectral type for log luminosity. More... | |
double | m_maxL |
The maximum numeric spectral type for log luminosity. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpMv |
The interpolator for absolute V magnitude. More... | |
double | m_minMv |
The minimum numeric spectral type for absolute V magnitude. More... | |
double | m_maxMv |
The maximum numeric spectral type for absolute V magnitude. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpVRc |
The interpolator for V-Rc color. More... | |
double | m_minVRc |
The minimum numeric spectral type for V-Rc color. More... | |
double | m_maxVRc |
The maximum numeric spectral type for V-Rc color. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpVIc |
The interpolator for V-Ic color. More... | |
double | m_minVIc |
The minimum numeric spectral type for V-Ic color. More... | |
double | m_maxVIc |
The maximum numeric spectral type for V-Ic color. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpVKs |
The interpolator for V-Ks color. More... | |
double | m_minVKs |
The minimum numeric spectral type for V-Ks color. More... | |
double | m_maxVKs |
The maximum numeric spectral type for V-Ks color. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpJH |
The interpolator for J-H color. More... | |
double | m_minJH |
The minimum numeric spectral type for J-H color. More... | |
double | m_maxJH |
The maximum numeric spectral type for J-H color. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpHKs |
The interpolator for H-Ks color. More... | |
double | m_minHKs |
The minimum numeric spectral type for H-Ks color. More... | |
double | m_maxHKs |
The maximum numeric spectral type for H-Ks color. More... | |
math::gslInterpolator< math::gsl_interp_linear< double > > | interpSpTfmT |
The interpolator for effective Temperature. More... | |
double | m_minSpTfmT |
The minimum numeric spectral type for effective Temperature. More... | |
double | m_maxSpTfmT |
The maximum numeric spectral type for effective Temperature. More... | |
|
inline |
Get the interpolated absolute H-Ks color.
Get the interpolated absolute H-Ks color
[in] | spType | the spectral type in standard format |
Definition at line 463 of file stars.hpp.
References mx::astro::mainSequence< realT >::H_Ks(), and mx::astro::numSpType().
|
inline |
Get the interpolated absolute H-Ks color.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 448 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpHKs, and mx::astro::mainSequence< realT >::m_maxHKs.
Referenced by mx::astro::mainSequence< realT >::H_Ks().
|
inline |
Get the interpolated absolute J-H color.
[in] | spType | the spectral type in standard format |
Definition at line 438 of file stars.hpp.
References mx::astro::mainSequence< realT >::J_H(), and mx::astro::numSpType().
|
inline |
Get the interpolated absolute J-H color.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 423 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpJH, and mx::astro::mainSequence< realT >::m_maxJH.
Referenced by mx::astro::mainSequence< realT >::J_H().
|
inline |
Get the interpolated log of luminosity.
[in] | spType | the spectral type in standard format |
Definition at line 313 of file stars.hpp.
References mx::astro::mainSequence< realT >::logL(), and mx::astro::numSpType().
|
inline |
Get the interpolated log of luminosity.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 298 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpL, and mx::astro::mainSequence< realT >::m_maxL.
Referenced by mx::astro::mainSequence< realT >::logL().
|
inline |
Get the interpolated absolute V magnitude.
[in] | spType | the spectral type in standard format |
Definition at line 338 of file stars.hpp.
References mx::astro::mainSequence< realT >::Mv(), and mx::astro::numSpType().
|
inline |
Get the interpolated absolute V magnitude.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 323 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpMv, and mx::astro::mainSequence< realT >::m_maxMv.
Referenced by mx::astro::mainSequence< realT >::Mv().
|
inline |
Get the interpolated radius.
[in] | spType | the spectral type in standard format |
Definition at line 288 of file stars.hpp.
References mx::astro::numSpType(), and mx::astro::mainSequence< realT >::radius().
|
inline |
Get the interpolated radius.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 273 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpRad, and mx::astro::mainSequence< realT >::m_maxRad.
Referenced by mx::astro::mainSequence< realT >::radius().
|
inline |
Get the interpolated effective temperature.
[in] | spType | the spectral type in standard format |
Definition at line 263 of file stars.hpp.
References mx::astro::numSpType(), and mx::astro::mainSequence< realT >::Teff().
|
inline |
Get the interpolated effective temperature.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 248 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpT, and mx::astro::mainSequence< realT >::m_maxT.
Referenced by mx::astro::mainSequence< realT >::Teff().
|
inline |
Get the interpolated absolute V-Ic color.
[in] | spType | the spectral type in standard format |
Definition at line 388 of file stars.hpp.
References mx::astro::numSpType(), and mx::astro::mainSequence< realT >::V_Ic().
|
inline |
Get the interpolated absolute V-Ic color.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 373 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpVIc, and mx::astro::mainSequence< realT >::m_maxVIc.
Referenced by mx::astro::mainSequence< realT >::V_Ic().
|
inline |
Get the interpolated absolute V-Ks color.
[in] | spType | the spectral type in standard format |
Definition at line 413 of file stars.hpp.
References mx::astro::numSpType(), and mx::astro::mainSequence< realT >::V_Ks().
|
inline |
Get the interpolated absolute V-Ks color.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 398 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpVKs, and mx::astro::mainSequence< realT >::m_maxVKs.
Referenced by mx::astro::mainSequence< realT >::V_Ks().
|
inline |
Get the interpolated absolute V-Rc color.
[in] | spType | the spectral type in standard format |
Definition at line 363 of file stars.hpp.
References mx::astro::numSpType(), and mx::astro::mainSequence< realT >::V_Rc().
|
inline |
Get the interpolated absolute V-Rc color.
[in] | numType | the numeric spectral type code, see mx::astro::numSpType() |
Definition at line 348 of file stars.hpp.
References mx::astro::mainSequence< realT >::interpVRc, and mx::astro::mainSequence< realT >::m_maxVRc.
Referenced by mx::astro::mainSequence< realT >::V_Rc().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpHKs |
The interpolator for H-Ks color.
Definition at line 156 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::H_Ks().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpJH |
The interpolator for J-H color.
Definition at line 152 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::J_H().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpL |
The interpolator for log luminosity.
Definition at line 132 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::logL().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpMv |
The interpolator for absolute V magnitude.
Definition at line 136 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::Mv().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpRad |
The interpolator for effective Temperature.
Definition at line 128 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::radius().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpSpTfmT |
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpT |
The interpolator for effective Temperature.
Definition at line 124 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::Teff().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpVIc |
The interpolator for V-Ic color.
Definition at line 144 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Ic().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpVKs |
The interpolator for V-Ks color.
Definition at line 148 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Ks().
math::gslInterpolator<math::gsl_interp_linear<double> > mx::astro::mainSequence< realT >::interpVRc |
The interpolator for V-Rc color.
Definition at line 140 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Rc().
std::vector<double> mx::astro::mainSequence< realT >::m_H_Kss |
std::vector<double> mx::astro::mainSequence< realT >::m_J_Hs |
std::vector<double> mx::astro::mainSequence< realT >::m_logLs |
std::vector<double> mx::astro::mainSequence< realT >::m_masses |
double mx::astro::mainSequence< realT >::m_maxHKs |
The maximum numeric spectral type for H-Ks color.
Definition at line 158 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::H_Ks().
double mx::astro::mainSequence< realT >::m_maxJH |
The maximum numeric spectral type for J-H color.
Definition at line 154 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::J_H().
double mx::astro::mainSequence< realT >::m_maxL |
The maximum numeric spectral type for log luminosity.
Definition at line 134 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::logL().
double mx::astro::mainSequence< realT >::m_maxMv |
The maximum numeric spectral type for absolute V magnitude.
Definition at line 138 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::Mv().
double mx::astro::mainSequence< realT >::m_maxRad |
The maximum numeric spectral type for effective Temperature.
Definition at line 130 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::radius().
double mx::astro::mainSequence< realT >::m_maxSpTfmT |
double mx::astro::mainSequence< realT >::m_maxT |
The maximum numeric spectral type for effective Temperature.
Definition at line 126 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::Teff().
double mx::astro::mainSequence< realT >::m_maxVIc |
The maximum numeric spectral type for V-Ic color.
Definition at line 146 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Ic().
double mx::astro::mainSequence< realT >::m_maxVKs |
The maximum numeric spectral type for V-Ks color.
Definition at line 150 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Ks().
double mx::astro::mainSequence< realT >::m_maxVRc |
The maximum numeric spectral type for V-Rc color.
Definition at line 142 of file stars.hpp.
Referenced by mx::astro::mainSequence< realT >::V_Rc().
double mx::astro::mainSequence< realT >::m_minHKs |
double mx::astro::mainSequence< realT >::m_minJH |
double mx::astro::mainSequence< realT >::m_minL |
double mx::astro::mainSequence< realT >::m_minMv |
double mx::astro::mainSequence< realT >::m_minRad |
double mx::astro::mainSequence< realT >::m_minSpTfmT |
double mx::astro::mainSequence< realT >::m_minT |
double mx::astro::mainSequence< realT >::m_minVIc |
double mx::astro::mainSequence< realT >::m_minVKs |
double mx::astro::mainSequence< realT >::m_minVRc |
std::vector<double> mx::astro::mainSequence< realT >::m_Mvs |
std::vector<double> mx::astro::mainSequence< realT >::m_numTypes |
std::vector<double> mx::astro::mainSequence< realT >::m_numTypesR |
std::vector<double> mx::astro::mainSequence< realT >::m_rads |
std::vector<double> mx::astro::mainSequence< realT >::m_Teffs |
std::vector<double> mx::astro::mainSequence< realT >::m_TeffsR |
std::vector<double> mx::astro::mainSequence< realT >::m_V_Ics |
std::vector<double> mx::astro::mainSequence< realT >::m_V_Kss |
std::vector<double> mx::astro::mainSequence< realT >::m_V_Rcs |