Class CustomSpectrum¶
Defined in File source.h
Inheritance Relationships¶
Base Type¶
public StellarSource
(Class StellarSource)
Class Documentation¶
-
class CustomSpectrum : public StellarSource¶
Public Functions
-
CustomSpectrum(double magnitude, double telescope_area, const std::string spectrum_file, std::string wave_file)¶
-
void read_spectrum(const std::string spectrum_file, std::string wave_file)¶
-
virtual double get_spectral_density(double wavelength)¶
This function returns the spectral density at a given wavelength. It is the essential function for all subclasses.
- See
Source::get_spectrum() will use this function to integrate over it to retrieve a spectrum for a given wavelength vector.
- Parameters
wavelength – wavelength
- Returns
spectral density
-
CustomSpectrum(double magnitude, double telescope_area, const std::string spectrum_file, std::string wave_file)¶