ARTS  2.0.49
constants.cc
Go to the documentation of this file.
1 
2 /* Copyright (C) 2000-2008
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 
60 extern const Numeric EARTH_RADIUS = 6.378e6;
61 
70 extern const Numeric RAD2DEG = 57.29577951308232;
71 
80 extern const Numeric DEG2RAD = 0.01745329251994;
81 
86 extern const Numeric PLANCK_CONST = 6.626180e-34;
87 
92 extern const Numeric SPEED_OF_LIGHT = 2.99792458e8;
93 
98 extern const Numeric BOLTZMAN_CONST = 1.380662e-23;
99 
104 extern const Numeric AVOGADROS_NUMB = 6.0220450e26;
105 
110 extern const Numeric ATOMIC_MASS_UNIT = 1.6606E-27;
111 
116 extern const Numeric COSMIC_BG_TEMP = 2.735;
117 
122 extern const Numeric SUN_TEMP = 6000.0;
123 
128 // reference: http://thesapps.com/Doug/exp/
129 extern const Numeric EULER_NUMBER = 2.7182818284590452;
130 
135 extern const Numeric LOG10_EULER_NUMBER = 0.43429448190325176;
136 
141 extern const Numeric NAT_LOG_TEN = 2.3025850929940459;
142 
147 extern const Numeric NAT_LOG_2 = 0.69314718055994;
148 
153 extern const Numeric SQRT_NAT_LOG_2 = 0.832554611;
154 
159 extern const Numeric PI = 3.14159265358979;
160 
168 extern const Numeric ATM2PA = 1.01325e5;
169 
177 extern const Numeric TORR2PA = 133.3227;
178 
184 extern const Numeric TEMP_0_C = 273.15;
185 
191 extern const Numeric PRES_STAND = 101300.25;
192 
198 extern const Numeric LOSCHMIDT_CONST = 2.686763E25;
199 
205 extern const Numeric EARTH_GRAV_CONST = 3.98601E14;
206 
214 extern const Numeric HZ2CM = 0.01 / SPEED_OF_LIGHT;
215 
221 extern const Index GFIELD1_F_GRID = 0;
222 
228 extern const Index GFIELD3_P_GRID = 0;
229 
235 extern const Index GFIELD3_LAT_GRID = 1;
236 
242 extern const Index GFIELD3_LON_GRID = 2;
243 
249 extern const Index GFIELD4_FIELD_NAMES = 0;
250 
256 extern const Index GFIELD4_IA_GRID = 0;
257 
263 extern const Index GFIELD4_P_GRID = 1;
264 
270 extern const Index GFIELD4_F_GRID = 1;
271 
277 extern const Index GFIELD4_LAT_GRID = 2;
278 
284 extern const Index GFIELD4_ZA_GRID = 2;
285 
291 extern const Index GFIELD4_LON_GRID = 3;
292 
298 extern const Index GFIELD4_AA_GRID = 3;
299 
300 
301 /*===========================================================================
302  === Definition of retrieval quantity tag strings
303  ===========================================================================*/
304 
305 extern const String ABSSPECIES_MAINTAG = "Absorption species";
306 
307 extern const String FREQUENCY_MAINTAG = "Frequency";
308 extern const String FREQUENCY_SUBTAG_A = "Shift + Stretch";
309 extern const String FREQUENCY_CALCMODE_A= "Interpolate iyb";
310 
311 extern const String POINTING_MAINTAG = "Sensor pointing";
312 extern const String POINTING_SUBTAG_A = "Zenith angle off-set";
313 extern const String POINTING_CALCMODE_A = "Recalculate iyb";
314 extern const String POINTING_CALCMODE_B = "Interpolate iyb";
315 
316 extern const String POLYFIT_MAINTAG = "Polynomial baseline fit";
317 
318 extern const String TEMPERATURE_MAINTAG = "Atmospheric temperatures";
319 
POINTING_SUBTAG_A
const String POINTING_SUBTAG_A
EARTH_GRAV_CONST
const Numeric EARTH_GRAV_CONST
Global constant, Earth gravitational constant [m^3/s^2].
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.
PRES_STAND
const Numeric PRES_STAND
Global constant, Standard pressure in Pa.
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)
matpackI.h
FREQUENCY_MAINTAG
const String FREQUENCY_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:62
ATOMIC_MASS_UNIT
const Numeric ATOMIC_MASS_UNIT
Atomic mass unit, 12th of a C^12_6 atom.
SPEED_OF_LIGHT
const Numeric SPEED_OF_LIGHT
Global constant, spped 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.
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
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.
FREQUENCY_CALCMODE_A
const String FREQUENCY_CALCMODE_A
ATM2PA
const Numeric ATM2PA
Global constant, converts atm to Pa.
POINTING_MAINTAG
const String POINTING_MAINTAG
SUN_TEMP
const Numeric SUN_TEMP
Global constant, Planck temperature for solar radiation [K].
TEMP_0_C
const Numeric TEMP_0_C
Global constant, Temperature in Celsius of 0 Kelvin.
FREQUENCY_SUBTAG_A
const String FREQUENCY_SUBTAG_A
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
LOSCHMIDT_CONST
const Numeric LOSCHMIDT_CONST
Global constant, Loschmidt constant [m^-3].
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
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
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.