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 
const Index GFIELD3_LAT_GRID
Global constant, Index of the latitude grid in GriddedField3.
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
const Index GFIELD4_FIELD_NAMES
Global constant, Index of the field names in GriddedField4.
const Numeric PLANCK_CONST
Global constant, the Planck constant [Js].
const Numeric VACUUM_PERMITTIVITY
Global constant, the vacuum permittivity [F m-1].
const String FREQUENCY_SUBTAG_0
const Numeric SPEED_OF_LIGHT
Global constant, speed of light in vaccum [m/s].
const Numeric BOLTZMAN_CONST
Global constant, the Boltzmann constant [J/K].
const Numeric ELECTRON_MASS
Global constant, the mass of an electron [kg].
const Index GFIELD4_AA_GRID
Global constant, Index of the azimuth angle grid in GriddedField4.
const Numeric NAT_LOG_2
Global constant, ln(2)
const Numeric ELECTRON_CHARGE
Global constant, the charge of an electron [As] N.B.
const Numeric GAS_CONSTANT
Global constant, universal gas constant.
const Index GFIELD3_LON_GRID
Global constant, Index of the longitude grid in GriddedField3.
const String WIND_MAINTAG
const String FREQUENCY_SUBTAG_1
const Numeric LANDE_GS
Lande factor gs.
const Numeric TORR2PA
Global constant, converts torr to Pa.
const Numeric EULER_NUMBER
Global constant, e (Euler&#39;s number)
const Index GFIELD4_LON_GRID
Global constant, Index of the longitude grid in GriddedField4.
const Numeric LOG10_EULER_NUMBER
Global constant, log10(Euler&#39;s number)
const Index GFIELD4_ZA_GRID
Global constant, Index of the zenith angle grid in GriddedField4.
const Index GFIELD4_IA_GRID
Global constant, Index of incidence angles in GriddedField4.
const Numeric EARTH_RADIUS
Global constant, the radius of the Earth [m].
const Index GFIELD1_F_GRID
Global constant, Index of the frequency grid in GriddedField1.
The implementation for String, the ARTS string class.
Definition: mystring.h:63
const Numeric COSMIC_BG_TEMP
Global constant, Planck temperature for cosmic background radiation [K].
const Index GFIELD4_P_GRID
Global constant, Index of the pressure grid in GriddedField4.
const String POINTING_CALCMODE_A
const Numeric SQRT_NAT_LOG_2
Global constant, sqrt(ln(2))
const Numeric HZ2CM
Global constant, converts Hz to cm-1.
const Index GFIELD4_F_GRID
Global constant, Index of the frequency grid in GriddedField4.
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:29
const String ABSSPECIES_MAINTAG
const String FREQUENCY_MAINTAG
const String POLYFIT_MAINTAG
const Numeric DEG2RAD
Global constant, conversion from degrees to radians.
const Numeric AVOGADROS_NUMB
Global constant, the Avogadro&#39;s number [molec/kg].
const Numeric BOHR_MAGNETON
Bohr Magneton.
const Numeric PI
Global constant, pi.
const String SINEFIT_MAINTAG
const Numeric NAT_LOG_TEN
Global constant, ln(10)
const String POINTING_SUBTAG_A
const String POINTING_MAINTAG
const String TEMPERATURE_MAINTAG
const Index GFIELD3_P_GRID
Global constant, Index of the pressure grid in GriddedField3.
const Numeric ATM2PA
Global constant, converts atm to Pa.
const Numeric TEMP_0_C
Global constant, Temperature in Celsius of 0 Kelvin.
const String POINTING_CALCMODE_B
const Numeric RAD2DEG
Global constant, conversion from radians to degrees.
This file contains the definition of String, the ARTS string class.
const Index GFIELD4_LAT_GRID
Global constant, Index of the latitude grid in GriddedField4.