cphot 0.1
A C++ tool for computing photometry from spectra.
cphot::Vega Class Reference

Interface to Vega reference data. More...

#include <vega.hpp>

Public Member Functions

 Vega (const DMatrix &wavelength, const DMatrix &flux, const QLength &wavelength_unit, const QSpectralFluxDensity &flux_unit)
 Construct a new Vega object from data. More...
 
 Vega (const std::vector< double > &wavelength, const std::vector< double > &flux, const QLength &wavelength_unit, const QSpectralFluxDensity &flux_unit)
 Construct a new Vega object from data. More...
 
 Vega ()
 Construct a new Vega object from hardcoded data. More...
 
DMatrix get_wavelength ()
 Get the internal wavelength in nm. More...
 
DMatrix get_wavelength (const QLength &in)
 Get the internal wavelength in requested units. More...
 
DMatrix get_flux ()
 Get the internal flux in flam. More...
 
DMatrix get_flux (const QSpectralFluxDensity &in)
 Get the internal flux in requested units. More...
 

Detailed Description

Interface to Vega reference data.

Class that handles vega spectrum and references. This class knows where to find the Vega synthetic spectrum (Bohlin 2007) in order to compute fluxes and magnitudes in given filters

Definition at line 32 of file vega.hpp.

Constructor & Destructor Documentation

◆ Vega() [1/3]

cphot::Vega::Vega ( const DMatrix wavelength,
const DMatrix flux,
const QLength &  wavelength_unit,
const QSpectralFluxDensity &  flux_unit 
)

Construct a new Vega object from data.

Parameters
wavelengthwavelength array
fluxflux array of vega spectrum
wavelength_unitwavelength unit
flux_unitflux unit of the spectrum

Definition at line 74 of file vega.hpp.

◆ Vega() [2/3]

cphot::Vega::Vega ( const std::vector< double > &  wavelength,
const std::vector< double > &  flux,
const QLength &  wavelength_unit,
const QSpectralFluxDensity &  flux_unit 
)

Construct a new Vega object from data.

Parameters
wavelengthwavelength array
fluxflux array of vega spectrum
wavelength_unitwavelength unit
flux_unitflux unit of the spectrum

Definition at line 90 of file vega.hpp.

◆ Vega() [3/3]

cphot::Vega::Vega ( )

Construct a new Vega object from hardcoded data.

Definition at line 58 of file vega.hpp.

Member Function Documentation

◆ get_flux() [1/2]

DMatrix cphot::Vega::get_flux ( )

Get the internal flux in flam.

Returns
Vega flux in flam

Definition at line 146 of file vega.hpp.

◆ get_flux() [2/2]

DMatrix cphot::Vega::get_flux ( const QSpectralFluxDensity &  in)

Get the internal flux in requested units.

Parameters
inrequested units for the flux
Returns
Vega flux units of in

Definition at line 156 of file vega.hpp.

◆ get_wavelength() [1/2]

DMatrix cphot::Vega::get_wavelength ( )

Get the internal wavelength in nm.

Returns
Vega wavelength in nm

Definition at line 127 of file vega.hpp.

◆ get_wavelength() [2/2]

DMatrix cphot::Vega::get_wavelength ( const QLength &  in)

Get the internal wavelength in requested units.

Parameters
inrequested units for the wavelength
Returns
Vega wavelength units of in

Definition at line 137 of file vega.hpp.


The documentation for this class was generated from the following file: