41 cout <<
"Compare q1==q2: " << q1.
Compare(q2) << endl;
42 cout <<
"Compare q2==q1: " << q2.
Compare(q1) << endl;
46 cout <<
"q1: " << q1 << endl;
47 cout <<
"q2: " << q2 << endl;
49 WriteXML(
"ascii", q1,
"quantum.xml", 0,
54 cout <<
"q3: " << q3 << endl;
56 cout << endl <<
"========================================" << endl << endl;
68 "/Users/olemke/Dropbox/Hacking/sat/catalogue/HITRAN2008/HITRAN08.par",
82 cout <<
"qnr: " << qnr << endl;
84 WriteXML(
"ascii", qnr,
"quantumrecord.xml", 0,
89 cout <<
"qnr2: " << qnr2 << endl;
99 cout <<
"========================================" << endl << endl;
101 cout <<
"Matches: " << matches.
nelem() << endl;
105 cout << abs_lines[matches[i]] << endl;
106 cout << abs_lines[matches[i]].QuantumNumbers() << endl;
109 cout <<
"========================================" << endl << endl;
111 cout <<
"Search key: " << endl;
112 cout <<
"Species: " << stag.
Name() <<
" species: " << stag.
Species() <<
" iso: " << stag.
Isotopologue() << endl;
116 catch (runtime_error e)
118 cout << e.what() << endl;
INDEX Index
The type to use for all integer numbers and indices.
bool Compare(const QuantumNumbers &qn) const
Compare Quantum Numbers.
void Print(Workspace &ws, const Agenda &x, const Index &level, const Verbosity &verbosity)
Index nelem() const
Number of elements.
String Name() const
Return the full name of the tag.
Index Species() const
Molecular species index.
This file contains basic functions to handle XML data files.
void timerStart(Timer &, const Verbosity &)
WORKSPACE METHOD: timerStart.
The global header file for ARTS.
Record containing upper and lower quantum numbers.
Header file for sparse matrices.
The declarations of all the exception classes.
A tag group can consist of the sum of several of these.
void SetUpper(const Index i, const Rational r)
Set upper quantum number.
bool find_matching_lines(ArrayOfIndex &matches, const ArrayOfLineRecord &abs_lines, const Index species, const Index isotopologue, const QuantumNumberRecord qr, const LineMatchingCriteria match_criteria)
Find lines matching the given criteria.
Declarations required for the calculation of absorption coefficients.
void Set(Index qn, Rational r)
Set quantum number.
void SetLower(const Index i, const Rational r)
Set lower quantum number.
void define_species_data()
Container class for Quantum Numbers.
This can be used to make arrays out of anything.
void ReadXML(Workspace &ws, Agenda &v, const String &v_name, const String &f, const String &f_name, const Verbosity &verbosity)
Workspace methods and template functions for supergeneric XML IO.
void WriteXML(Workspace &ws, const String &file_format, const Agenda &v, const String &f, const Index &no_clobber, const String &v_name, const String &f_name, const String &no_clobber_name, const Verbosity &verbosity)
void define_species_map()
Define the species data map.
Index Isotopologue() const
Isotopologue species index.
void abs_linesReadFromHitran(ArrayOfLineRecord &abs_lines, const String &filename, const Numeric &fmin, const Numeric &fmax, const Verbosity &verbosity)
WORKSPACE METHOD: abs_linesReadFromHitran.
void timerStop(const Timer &, const Verbosity &)