Class PhoenixSpectrum

Inheritance Relationships

Base Type

Class Documentation

class PhoenixSpectrum : public StellarSource

Implements using data from the Phoenix data repository.

See

also helper.csv::download_phoenix()

Public Functions

PhoenixSpectrum(std::string spectrum_file, std::string wavelength_file, double magnitude, double telescope_area)

Constructor. Reads in spectrum and wavelength files and scales it for given visual magnitude.

Parameters
  • spectrum_file – file path for spectrum

  • wavelength_file – file path for wavelength file

  • magnitude – magnitude of star in the V-band

  • telescope_area – telescope light collecting area [m^2]

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