47 virtual std::vector<double>
get_spectrum(std::vector<double> wavelength);
141 IdealEtalon(
double d,
double n,
double theta,
double R);
154 static double coefficient_of_finesse(
double R);
177 static double T(
double wl,
double theta,
double d,
double n,
double cF);
226 static double planck(
const double& T,
const double& wavelength);
242 PhoenixSpectrum(std::string spectrum_file, std::string wavelength_file,
const double& min_wavelength,
const double& max_wavelength);
243 void read_spectrum(std::string spectrum_file, std::string wavelength_file,
const double& min_wavelength,
const double& max_wavelength);
258 void read_spectrum(std::string linelist);
260 std::vector<double>
get_spectrum(std::vector<double> wavelength);
261 std::vector<double> get_wavelength();
Base class of all spectral sources.
Definition: source.h:13
double d
Definition: source.h:186
Implements the spectral density of an ideal fabry-perot etalon.
Definition: source.h:131
void set_integration_steps(int n)
Definition: source.cpp:64
Implements a blackbody spectrum.
Definition: source.h:213
Implements line list spectrum.
Definition: source.h:255
double cF
Definition: source.h:190
int integration_steps
number of steps for the integrator
Definition: source.h:82
std::map< double, double > data
Definition: source.h:246
double shift
current doppler shift
Definition: source.h:81
virtual ~Source()
Definition: source.cpp:33
double value
Definition: source.h:112
Source()
Definition: source.cpp:26
virtual std::vector< double > get_spectrum(std::vector< double > wavelength)
Definition: source.cpp:45
double integral_s(double a, double b, int n)
Definition: source.cpp:68
virtual std::vector< double > get_spectral_density(std::vector< double > wavelength)
Definition: source.cpp:38
double R
Definition: source.h:189
double T
Temperature [K].
Definition: source.h:237
double theta
Definition: source.h:188
void set_doppler_shift(double shift)
Definition: source.cpp:77
std::map< double, double > data
Definition: source.h:263
Implements constant spectral density.
Definition: source.h:94
double n
Definition: source.h:187