28 #include <xtensor/xadapt.hpp>
29 #include <xtensor/xarray.hpp>
36 using DMatrix = xt::xarray<double, xt::layout_type::row_major>;
48 double distance_conversion;
51 Sun(
const QLength & distance=1 *
au,
52 const std::string & flavor=
"theoretical");
68 const std::string & flavor){
70 this->distance = distance;
71 if (flavor.compare(
"theoretical") == 0){
91 return this->wavelength_nm;
101 return this->wavelength_nm *
nm.to(in);
110 return this->flux_flam * this->distance_conversion;
120 return this->flux_flam *
flam.to(in) * this->distance_conversion;;