hitran2refr
Richard J. Mathar, J. Opt. A: Pure Appl. Opt. 9 (2007) 470
|
Macros | |
#define | ATOMS_OFFSET 100 |
#define | MHZ2WN(h) (1.e4*(h)/VACUUMC) |
#define | EV2WN(e) ((e)/HC) |
#define | WN2HARTREE(w) (HC*(w)/HARTREE) |
#define | WN2MICRON(w) (1.e4/(w)) |
#define | MICRON2WN(m) (1.e4/(m)) |
#define | WN2OMEGA(w) (2.*M_PI*100.*VACUUMC*(w)) |
#define | WN2HZ(w) (100.*VACUUMC*(w)) |
#define | MICRON2OMEGA(m) (2.*M_PI*1.e6*VACUUMC/(m)) |
#define | DMICRON2DOMEGA(m, o) ((m)*(o)*(o)/(2.*M_PI*VACUUMC)) |
Functions | |
template<class TYPE > | |
istream & | getval (istream &is, TYPE &buf, int width) |
void | tag2molec (const int jpltag, int &molec, int &isot) |
#define ATOMS_OFFSET 100 |
#define DMICRON2DOMEGA | ( | m, | |
o | |||
) | ((m)*(o)*(o)/(2.*M_PI*VACUUMC)) |
convert differential in micron to differential of angular frequency. ,
.
#define EV2WN | ( | e | ) | ((e)/HC) |
convert eV to wavenumber
#define MHZ2WN | ( | h | ) | (1.e4*(h)/VACUUMC) |
convert Megahertz to wavenumber
#define MICRON2OMEGA | ( | m | ) | (2.*M_PI*1.e6*VACUUMC/(m)) |
convert micron to angular frequency
#define MICRON2WN | ( | m | ) | (1.e4/(m)) |
convert micron to wavenumber
#define WN2HZ | ( | w | ) | (100.*VACUUMC*(w)) |
Convert spectroscopic wavenumber [1/cm] to frequency [Hz]
#define WN2MICRON | ( | w | ) | (1.e4/(w)) |
convert wavenumber to micron
#define WN2OMEGA | ( | w | ) | (2.*M_PI*100.*VACUUMC*(w)) |
convert wavenumber to angular frequency
istream& getval | ( | istream & | is, |
TYPE & | buf, | ||
int | width | ||
) |
Obtain a formatted value from a HITRAN line (input stream). Read a formatted value of the indicated type from the input stream, but only to a maximum number of bytes
[in,out] | is | the input file stream. On exit this is re-positioned to a point width further than the position it had before calling the function. |
[out] | buf | the position to write the values read into |
[in] | width | maximum number of bytes to consider for input. This is the decisive difference to the standard way of reading streams which would swallow everything up to the next blank. This here is a reader made to deal with Fortran-formatted, not necessarily blank-delimited lines of input. |
void tag2molec | ( | const int | jpltag, |
int & | molec, | ||
int & | isot | ||
) |
Convert JPL molecular tags to HITRAN molecular numbers.
[in] | jpltag | one of the 5-digit JPL molecular ID's |
[out] | molec | the HITRAN molecular number |
[out] | isot | the HITRAN isotope number |