4int main(
int argc,
char** argv)
try {
5 constexpr Index minargs = 9;
9 " TAG F0 NF DF T P VMR_O2 VMR_H2O [GUI]");
12 Numeric F0 = std::stod(argv[2]);
13 Index NF = std::stoi(argv[3]);
14 Numeric DF = std::stod(argv[4]);
19 vmr.
O2 = std::stod(argv[7]);
20 vmr.
H2O = std::stod(argv[8]);
22 bool gui = argc > minargs ? std::stoi(argv[minargs - 1]) :
false;
24 const Vector f_grid(F0, NF, DF);
29 propmat_clearsky, x, tag.Isotopologue(), f_grid, P, T, vmr, {});
32 std::cout << std::setprecision(15) << propmat_clearsky <<
'\n';
34 ARTSGUI::plot(f_grid, propmat_clearsky.
Kjj());
36}
catch (std::exception& e) {
37 std::cerr << e.what() <<
'\n';
This can be used to make arrays out of anything.
VectorView Kjj(const Index iz=0, const Index ia=0)
Vector view to diagonal elements.
#define ARTS_USER_ERROR_IF(condition,...)
NUMERIC Numeric
The type to use for all floating point numbers.
INDEX Index
The type to use for all integer numbers and indices.
void compute(PropagationMatrix &propmat_clearsky, ArrayOfPropagationMatrix &dpropmat_clearsky_dx, const SpeciesIsotopeRecord &model, const Vector &f_grid, const Numeric &rtp_pressure, const Numeric &rtp_temperature, const VMRS &vmr, const ArrayOfRetrievalQuantity &jacobian_quantities)
Compute the predefined model.
int main(int argc, char **argv)
Contains known required VMR values.