11 .def(luabind::constructor<const std::string&, double>())
16 void solar_pts(
const int *lunr,
const char* filename,
const int* filename_len,
const double *fzero,
const double *grid,
const double *frac,
double *spts,
const int *ncp);
28 double Fraction_solar_diameter)
29 : line_list_file_(Line_list_file), fraction_solar_diameter_(Fraction_solar_diameter)
39 Os <<
"Solar Absorption GFIT File:\n" 40 <<
" Fraction solar diameter: " << fraction_solar_diameter_;
49 double grid = spec_domain.
data()(1) - spec_domain.
data()(0);
50 double fzero = spec_domain.
data()(0) - grid;
51 int ncp = spec_domain.
data().rows();
52 Array<double, 1> spts(ncp);
53 int file_len = line_list_file_.length();
54 solar_pts(&lunr, line_list_file_.c_str(), &file_len, &fzero, &grid, &fraction_solar_diameter_, spts.dataFirst(), &ncp);
For different instruments, it is more natural to either work with wavenumbers (e.g., GOSAT) or wavelength (e.g., OCO).
const Unit dimensionless("dimensionless", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
This class calculates the solar absorption spectrum.
This class calculates the solar absorption spectrum.
Apply value function to a blitz array.
void solar_pts(const int *lunr, const char *filename, const int *filename_len, const double *fzero, const double *grid, const double *frac, double *spts, const int *ncp)
This is a full spectrum, which contains a SpectralRange and SpectralDomain.
We have a number of different spectrums that appear in different parts of the code.
virtual Spectrum solar_absorption_spectrum(const SpectralDomain &spec_domain) const
This calculates the solar absorption spectrum.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
const blitz::Array< double, 1 > & data() const
Return data.
SolarAbsorptionGfitFile(const std::string &Line_list_file, double Fraction_solar_diameter=1.0)
Read the given line list file, and use for calculating the solar absorption spectrum.
virtual void print(std::ostream &Os) const
Print description of object.