ARTS  2.2.66
constants.cc
Go to the documentation of this file.
1 
2 /* Copyright (C) 2000-2012
3  Stefan Buehler <sbuehler@ltu.se>
4  Patrick Eriksson <patrick.eriksson@chalmers.se>
5 
6  This program is free software; you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by the
8  Free Software Foundation; either version 2, or (at your option) any
9  later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19  USA. */
20 
21 
22 
24 // File description
26 
44 // External declarations
47 
48 #include "mystring.h"
49 #include "matpackI.h"
50 
51 
53 // The constants
55 
56 
62 extern const Numeric ATM2PA = 1.01325e5;
63 
64 
69 extern const Numeric AVOGADROS_NUMB = 6.0220450e26;
70 
75 extern const Numeric BOHR_MAGNETON = 9.27400968e-24;
76 
81 extern const Numeric BOLTZMAN_CONST = 1.380662e-23;
82 
83 
88 extern const Numeric COSMIC_BG_TEMP = 2.735;
89 
90 
99 extern const Numeric DEG2RAD = 0.017453292519943;
100 
101 
106 extern const Numeric EARTH_RADIUS = 6.3781e6;
107 
108 
115 extern const Numeric ELECTRON_CHARGE = -1.602176565e-19;
116 
117 
122 extern const Numeric ELECTRON_MASS = 9.10938291e-31;
123 
124 
129 // reference: http://thesapps.com/Doug/exp/
130 extern const Numeric EULER_NUMBER = 2.7182818284590452;
131 
132 
137 extern const Numeric GAS_CONSTANT = 8.3144621;
138 
139 
144 // Wikipedia source: http://en.wikipedia.org/wiki/G-factor_%28physics%29#Measured_g-factor_values
145 extern const Numeric LANDE_GS = 2.0023193043622;
146 
151 extern const Numeric LOG10_EULER_NUMBER = 0.43429448190325176;
152 
153 
158 extern const Numeric NAT_LOG_TEN = 2.3025850929940459;
159 
160 
165 extern const Numeric NAT_LOG_2 = 0.69314718055994;
166 
167 
172 extern const Numeric PI = 3.141592653589793;
173 
174 
179 extern const Numeric PLANCK_CONST = 6.626180e-34;
180 
181 
190 extern const Numeric RAD2DEG = 57.295779513082323;
191 
192 
197 extern const Numeric SPEED_OF_LIGHT = 2.99792458e8;
198 
199 
207 extern const Numeric HZ2CM = 0.01 / SPEED_OF_LIGHT;
208 
209 
214 extern const Numeric SQRT_NAT_LOG_2 = 0.832554611;
215 
216 
222 extern const Numeric TEMP_0_C = 273.15;
223 
224 
232 extern const Numeric TORR2PA = 133.3227;
233 
234 
242 extern const Numeric VACUUM_PERMITTIVITY = 8.854187817620e-12;
243 
244 
245 
246 
247 
248 
249 
250 
251 
252 
253 
254 
260 extern const Index GFIELD1_F_GRID = 0;
261 
267 extern const Index GFIELD3_P_GRID = 0;
268 
274 extern const Index GFIELD3_LAT_GRID = 1;
275 
281 extern const Index GFIELD3_LON_GRID = 2;
282 
288 extern const Index GFIELD4_FIELD_NAMES = 0;
289 
295 extern const Index GFIELD4_IA_GRID = 0;
296 
302 extern const Index GFIELD4_P_GRID = 1;
303 
309 extern const Index GFIELD4_F_GRID = 1;
310 
316 extern const Index GFIELD4_LAT_GRID = 2;
317 
323 extern const Index GFIELD4_ZA_GRID = 2;
324 
330 extern const Index GFIELD4_LON_GRID = 3;
331 
337 extern const Index GFIELD4_AA_GRID = 3;
338 
339 
340 /*===========================================================================
341  === Definition of retrieval quantity tag strings
342  ===========================================================================*/
343 
344 extern const String ABSSPECIES_MAINTAG = "Absorption species";
345 
346 extern const String FREQUENCY_MAINTAG = "Frequency";
347 extern const String FREQUENCY_SUBTAG_0 = "Shift";
348 extern const String FREQUENCY_SUBTAG_1 = "Stretch";
349 
350 extern const String POINTING_MAINTAG = "Sensor pointing";
351 extern const String POINTING_SUBTAG_A = "Zenith angle off-set";
352 extern const String POINTING_CALCMODE_A = "Recalculate iyb";
353 extern const String POINTING_CALCMODE_B = "Interpolate iyb";
354 
355 extern const String POLYFIT_MAINTAG = "Polynomial baseline fit";
356 extern const String SINEFIT_MAINTAG = "Sinusoidal baseline fit";
357 
358 extern const String TEMPERATURE_MAINTAG = "Atmospheric temperatures";
359 
360 extern const String WIND_MAINTAG = "Wind";
361 
POINTING_SUBTAG_A
const String POINTING_SUBTAG_A
WIND_MAINTAG
const String WIND_MAINTAG
AVOGADROS_NUMB
const Numeric AVOGADROS_NUMB
Global constant, the Avogadro's number [molec/kg].
GFIELD4_IA_GRID
const Index GFIELD4_IA_GRID
Global constant, Index of incidence angles in GriddedField4.
EARTH_RADIUS
const Numeric EARTH_RADIUS
Global constant, the radius of the Earth [m].
RAD2DEG
const Numeric RAD2DEG
Global constant, conversion from radians to degrees.
PLANCK_CONST
const Numeric PLANCK_CONST
Global constant, the Planck constant [Js].
POINTING_CALCMODE_B
const String POINTING_CALCMODE_B
COSMIC_BG_TEMP
const Numeric COSMIC_BG_TEMP
Global constant, Planck temperature for cosmic background radiation [K].
GFIELD3_LAT_GRID
const Index GFIELD3_LAT_GRID
Global constant, Index of the latitude grid in GriddedField3.
GFIELD4_LAT_GRID
const Index GFIELD4_LAT_GRID
Global constant, Index of the latitude grid in GriddedField4.
DEG2RAD
const Numeric DEG2RAD
Global constant, conversion from degrees to radians.
GFIELD4_FIELD_NAMES
const Index GFIELD4_FIELD_NAMES
Global constant, Index of the field names in GriddedField4.
NAT_LOG_2
const Numeric NAT_LOG_2
Global constant, ln(2)
VACUUM_PERMITTIVITY
const Numeric VACUUM_PERMITTIVITY
Global constant, the vacuum permittivity [F m-1].
matpackI.h
FREQUENCY_MAINTAG
const String FREQUENCY_MAINTAG
SINEFIT_MAINTAG
const String SINEFIT_MAINTAG
TORR2PA
const Numeric TORR2PA
Global constant, converts torr to Pa.
my_basic_string
The implementation for String, the ARTS string class.
Definition: mystring.h:64
SPEED_OF_LIGHT
const Numeric SPEED_OF_LIGHT
Global constant, speed of light in vaccum [m/s].
GFIELD4_ZA_GRID
const Index GFIELD4_ZA_GRID
Global constant, Index of the zenith angle grid in GriddedField4.
GFIELD3_P_GRID
const Index GFIELD3_P_GRID
Global constant, Index of the pressure grid in GriddedField3.
GFIELD1_F_GRID
const Index GFIELD1_F_GRID
Global constant, Index of the frequency grid in GriddedField1.
LANDE_GS
const Numeric LANDE_GS
Lande factor gs.
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:29
EULER_NUMBER
const Numeric EULER_NUMBER
Global constant, e (Euler's number)
GFIELD4_LON_GRID
const Index GFIELD4_LON_GRID
Global constant, Index of the longitude grid in GriddedField4.
ATM2PA
const Numeric ATM2PA
Global constant, converts atm to Pa.
POINTING_MAINTAG
const String POINTING_MAINTAG
TEMP_0_C
const Numeric TEMP_0_C
Global constant, Temperature in Celsius of 0 Kelvin.
FREQUENCY_SUBTAG_1
const String FREQUENCY_SUBTAG_1
FREQUENCY_SUBTAG_0
const String FREQUENCY_SUBTAG_0
GFIELD4_P_GRID
const Index GFIELD4_P_GRID
Global constant, Index of the pressure grid in GriddedField4.
LOG10_EULER_NUMBER
const Numeric LOG10_EULER_NUMBER
Global constant, log10(Euler's number)
POINTING_CALCMODE_A
const String POINTING_CALCMODE_A
ABSSPECIES_MAINTAG
const String ABSSPECIES_MAINTAG
GFIELD3_LON_GRID
const Index GFIELD3_LON_GRID
Global constant, Index of the longitude grid in GriddedField3.
HZ2CM
const Numeric HZ2CM
Global constant, converts Hz to cm-1.
POLYFIT_MAINTAG
const String POLYFIT_MAINTAG
ELECTRON_MASS
const Numeric ELECTRON_MASS
Global constant, the mass of an electron [kg].
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
GAS_CONSTANT
const Numeric GAS_CONSTANT
Global constant, universal gas constant.
ELECTRON_CHARGE
const Numeric ELECTRON_CHARGE
Global constant, the charge of an electron [As] N.B.
NAT_LOG_TEN
const Numeric NAT_LOG_TEN
Global constant, ln(10)
SQRT_NAT_LOG_2
const Numeric SQRT_NAT_LOG_2
Global constant, sqrt(ln(2))
TEMPERATURE_MAINTAG
const String TEMPERATURE_MAINTAG
BOHR_MAGNETON
const Numeric BOHR_MAGNETON
Bohr Magneton.
mystring.h
This file contains the definition of String, the ARTS string class.
PI
const Numeric PI
Global constant, pi.
BOLTZMAN_CONST
const Numeric BOLTZMAN_CONST
Global constant, the Boltzmann constant [J/K].
GFIELD4_F_GRID
const Index GFIELD4_F_GRID
Global constant, Index of the frequency grid in GriddedField4.
GFIELD4_AA_GRID
const Index GFIELD4_AA_GRID
Global constant, Index of the azimuth angle grid in GriddedField4.