ARTS  2.2.66
linerecord.h File Reference

LineRecord class for managing line catalog data. More...

#include <stdexcept>
#include <cmath>
#include "messages.h"
#include "mystring.h"
#include "array.h"
#include "matpackI.h"
#include "quantum.h"
Include dependency graph for linerecord.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LineRecord
 Spectral line catalog data. More...
 

Typedefs

typedef Array< LineRecordArrayOfLineRecord
 Holds a list of spectral line data. More...
 
typedef Array< Array< LineRecord > > ArrayOfArrayOfLineRecord
 Holds a lists of spectral line data for each tag group. More...
 

Enumerations

enum  LineMatchingCriteria { LINE_MATCH_FIRST, LINE_MATCH_UNIQUE, LINE_MATCH_ALL }
 

Functions

ostream & operator<< (ostream &os, const LineRecord &lr)
 Output operator for LineRecord. More...
 
bool find_matching_lines (ArrayOfIndex &matches, const ArrayOfLineRecord &abs_lines, const Index species, const Index isotopologue, const QuantumNumberRecord qr, const LineMatchingCriteria match_criteria=LINE_MATCH_ALL)
 Find lines matching the given criteria. More...
 

Detailed Description

LineRecord class for managing line catalog data.

Author
Stefan Buehler, Axel von Engeln

Definition in file linerecord.h.

Typedef Documentation

◆ ArrayOfArrayOfLineRecord

Holds a lists of spectral line data for each tag group.

Dimensions: (tag_groups.nelem()) (number of lines for this tag)

Author
Stefan Buehler

Definition at line 1097 of file linerecord.h.

◆ ArrayOfLineRecord

Holds a list of spectral line data.

Author
Stefan Buehler

Definition at line 1092 of file linerecord.h.

Enumeration Type Documentation

◆ LineMatchingCriteria

Enumerator
LINE_MATCH_FIRST 
LINE_MATCH_UNIQUE 
LINE_MATCH_ALL 

Definition at line 1104 of file linerecord.h.

Function Documentation

◆ find_matching_lines()

bool find_matching_lines ( ArrayOfIndex matches,
const ArrayOfLineRecord abs_lines,
const Index  species,
const Index  isotopologue,
const QuantumNumberRecord  qr,
const LineMatchingCriteria  match_criteria = LINE_MATCH_ALL 
)

Find lines matching the given criteria.

Parameters
[out]matchesMatching indexes in abs_lines
[in]speciesSpecies index (-1 matches all)
[in]isotopologueIsotopologue index (-1 matches all)
[in]qrQuantumNumberRecord
[in]match_criteriaOne of LINE_MATCH_FIRST, LINE_MATCH_UNIQUE, LINE_MATCH_ALL
Returns
true if the match_criteria was satisfied

Definition at line 2631 of file linerecord.cc.

References LineRecord::Isotopologue(), LINE_MATCH_FIRST, LINE_MATCH_UNIQUE, QuantumNumberRecord::Lower(), Array< base >::nelem(), LineRecord::QuantumNumbers(), LineRecord::Species(), and QuantumNumberRecord::Upper().

Referenced by line_mixing_dataMatch(), and main().

◆ operator<<()