cphot 0.1
A C++ tool for computing photometry from spectra.
|
|
Go to the documentation of this file.
19 std::string filter_id =
"Gaia/Gaia3.G";
29 std::cout <<
"Vega zero points for filter: " << filter_id <<
"\n"
30 << flux_flam_v2 <<
" flam\n"
31 << -2.5 * std::log10(flux_flam_v2) <<
" mag\n"
35 std::cout << s.get_wavelength(
angstrom) <<
" angstrom\n"
36 << s.get_flux() <<
" flam\n";
39 std::cout << s.get_wavelength(
angstrom) <<
" angstrom\n"
40 << s.get_flux(
flam) <<
" flam\n";
const std::vector< double > wavelength_nm
QSpectralFluxDensity get_flux(const DMatrix &wavelength, const DMatrix &flux, const QLength &wavelength_unit, const QSpectralFluxDensity &flux_unit)
Integrate the flux within the filter and return the integrated energy/flux.
DMatrix get_flux()
Get the internal flux in flam.
double get_Vega_zero_mag()
Vega magnitude zero point.
Unit Aware Filter. input spectra and output values have units to avoid mis-interpretation.
std::vector< std::string > get_content()
returns the list of lick indices registered
DMatrix get_wavelength()
Get the internal wavelength in nm.
void info()
Display some information on cout.
constexpr QLength angstrom
Interface to Vega reference data.
Filter download_svo_filter(const std::string &id)
main interface to SVO data requests
const std::vector< double > flux_flam
Class that handles the Sun's spectrum and references.
Collection of Lick indices.
constexpr QSpectralFluxDensity flam