ARTS  2.3.1285(git:92a29ea9-dirty)
constants.cc File Reference

This file contains global constants. More...

#include "constants.h"
#include "matpackI.h"
#include "mystring.h"

Go to the source code of this file.

Variables

const Numeric ATM2PA = 1.01325e5
 Global constant, converts atm to Pa. More...
 
const Numeric AVOGADROS_NUMB = Constant::NA
 Global constant, the Avogadro's number [molec/kg]. More...
 
const Numeric BOHR_MAGNETON = Constant::bohr_magneton
 Bohr Magneton. More...
 
const Numeric BOLTZMAN_CONST = Constant::k
 Global constant, the Boltzmann constant [J/K]. More...
 
const Numeric COSMIC_BG_TEMP = 2.735
 Global constant, Planck temperature for cosmic background radiation [K]. More...
 
const Numeric DEG2RAD = 0.017453292519943
 Global constant, conversion from degrees to radians. More...
 
const Numeric DENSITY_OF_ICE = 0.9167e3
 Global constant, Density of water ice at 0C [kg/m3]. More...
 
const Numeric DENSITY_OF_WATER = 1e3
 Global constant, Density of liquid water +4C [kg/m3]. More...
 
const Numeric EARTH_RADIUS = 6.3781e6
 Global constant, the radius of the Earth [m]. More...
 
const Numeric ELECTRON_CHARGE = -Constant::e
 Global constant, the charge of an electron [As] N.B. More...
 
const Numeric ELECTRON_MASS = Constant::m_e
 Global constant, the mass of an electron [kg]. More...
 
const Numeric EULER_NUMBER = 2.7182818284590452
 Global constant, e (Euler's number) More...
 
const Numeric GAS_CONSTANT = Constant::R
 Global constant, universal gas constant. More...
 
const Numeric LANDE_GS = 2.0023193043622
 Global constant, Lande factor gs. More...
 
const Numeric LOG10_EULER_NUMBER = 0.43429448190325176
 Global constant, log10(Euler's number) More...
 
const Numeric NAT_LOG_TEN = 2.3025850929940459
 Global constant, ln(10) More...
 
const Numeric NAT_LOG_2 = 0.69314718055994
 Global constant, ln(2) More...
 
const Numeric PI = Constant::pi
 Global constant, pi. More...
 
const Numeric PLANCK_CONST = Constant::h
 Global constant, the Planck constant [Js]. More...
 
const Numeric RAD2DEG = 57.295779513082323
 Global constant, conversion from radians to degrees. More...
 
const Numeric SPEED_OF_LIGHT = Constant::c
 Global constant, speed of light in vaccum [m/s]. More...
 
const Numeric HZ2CM = 0.01 / SPEED_OF_LIGHT
 Global constant, converts Hz to cm-1. More...
 
const Numeric SQRT_NAT_LOG_2 = 0.832554611
 Global constant, sqrt(ln(2)) More...
 
const Numeric TEMP_0_C = 273.15
 Global constant, Temperature in Celsius of 0 Kelvin. More...
 
const Numeric TORR2PA = 133.3227
 Global constant, converts torr to Pa. More...
 
const Numeric VACUUM_PERMITTIVITY = Constant::vacuum_permittivity
 Global constant, the vacuum permittivity [F m-1]. More...
 
const Numeric DOPPLER_CONST
 
const Index GFIELD1_F_GRID = 0
 Global constant, Index of the frequency grid in GriddedField1. More...
 
const Index GFIELD3_P_GRID = 0
 Global constant, Index of the pressure grid in GriddedField3. More...
 
const Index GFIELD3_LAT_GRID = 1
 Global constant, Index of the latitude grid in GriddedField3. More...
 
const Index GFIELD3_LON_GRID = 2
 Global constant, Index of the longitude grid in GriddedField3. More...
 
const Index GFIELD4_FIELD_NAMES = 0
 Global constant, Index of the field names in GriddedField4. More...
 
const Index GFIELD4_IA_GRID = 0
 Global constant, Index of incidence angles in GriddedField4. More...
 
const Index GFIELD4_P_GRID = 1
 Global constant, Index of the pressure grid in GriddedField4. More...
 
const Index GFIELD4_F_GRID = 1
 Global constant, Index of the frequency grid in GriddedField4. More...
 
const Index GFIELD4_LAT_GRID = 2
 Global constant, Index of the latitude grid in GriddedField4. More...
 
const Index GFIELD4_ZA_GRID = 2
 Global constant, Index of the zenith angle grid in GriddedField4. More...
 
const Index GFIELD4_LON_GRID = 3
 Global constant, Index of the longitude grid in GriddedField4. More...
 
const Index GFIELD4_AA_GRID = 3
 Global constant, Index of the azimuth angle grid in GriddedField4. More...
 
const Numeric LAT_LON_MIN = 20
 Global constant, minimum distance of cloudbox to lat/lon_grid edges. More...
 
const String ABSSPECIES_MAINTAG = "Absorption species"
 
const String SCATSPECIES_MAINTAG = "Scattering species"
 
const String PARTICULATES_MAINTAG = "Particulate species"
 
const String ELECTRONS_MAINTAG = "Electron species"
 
const String FREQUENCY_MAINTAG = "Frequency"
 
const String FREQUENCY_SUBTAG_0 = "Shift"
 
const String FREQUENCY_SUBTAG_1 = "Stretch"
 
const String POINTING_MAINTAG = "Sensor pointing"
 
const String POINTING_SUBTAG_A = "Zenith angle off-set"
 
const String POINTING_CALCMODE_A = "Recalculate iyb"
 
const String POINTING_CALCMODE_B = "Interpolate iyb"
 
const String POLYFIT_MAINTAG = "Polynomial baseline fit"
 
const String SINEFIT_MAINTAG = "Sinusoidal baseline fit"
 
const String TEMPERATURE_MAINTAG = "Atmospheric temperatures"
 
const String NLTE_MAINTAG = "NLTE temperatures"
 
const String WIND_MAINTAG = "Wind"
 
const String MAGFIELD_MAINTAG = "Magnetic field"
 
const String FLUX_MAINTAG = "Beam flux"
 
const String SURFACE_MAINTAG = "Surface"
 
const String PROPMAT_SUBSUBTAG = "From propagation matrix"
 
const String CATALOGPARAMETER_MAINTAG = "Catalog parameter"
 
const String LINESTRENGTH_MODE = "Line Strength"
 
const String LINECENTER_MODE = "Line Center"
 
const String SELFBROADENING_MODE = "PB Self Gamma"
 
const String FOREIGNBROADENING_MODE = "PB Foreign Gamma"
 
const String WATERBROADENING_MODE = "PB Water Gamma"
 
const String SELFBROADENINGEXPONENT_MODE = "PB Self Exponent"
 
const String FOREIGNBROADENINGEXPONENT_MODE = "PB Foreign Exponent"
 
const String WATERBROADENINGEXPONENT_MODE = "PB Water Exponent"
 
const String SELFPRESSURESHIFT_MODE = "PB Self Pressure Shift"
 
const String FOREIGNPRESSURESHIFT_MODE = "PB Foreign Pressure Shift"
 
const String WATERPRESSURESHIFT_MODE = "PB Water Pressure Shift"
 
const String LINEMIXINGY0_MODE = "LM Y Zeroth"
 
const String LINEMIXINGG0_MODE = "LM G Zeroth"
 
const String LINEMIXINGDF0_MODE = "LM DF Zeroth"
 
const String LINEMIXINGY1_MODE = "LM Y First"
 
const String LINEMIXINGG1_MODE = "LM G First"
 
const String LINEMIXINGDF1_MODE = "LM DF First"
 
const String LINEMIXINGYEXPONENT_MODE = "LM Y Exponent"
 
const String LINEMIXINGGEXPONENT_MODE = "LM G Exponent"
 
const String LINEMIXINGDFEXPONENT_MODE = "LM DF Exponent"
 

Detailed Description

This file contains global constants.

You can use them anywhere by declaring them as in the following example:

extern const Numeric PI;

See for example the National Institute of Standards and Technology (NIST) home page for the values of specific constants.

Author
Patrick Eriksson
Date
2000-09-14

Definition in file constants.cc.

Variable Documentation

◆ ABSSPECIES_MAINTAG

const String ABSSPECIES_MAINTAG = "Absorption species"

◆ ATM2PA

const Numeric ATM2PA = 1.01325e5

Global constant, converts atm to Pa.

Multiply your value in atm by this constant to get the value in Pa.

Author
Stefan Buehler
Date
2000-06-17

Referenced by Conversion::atm2pa(), and Conversion::freq2wavelen().

◆ AVOGADROS_NUMB

const Numeric AVOGADROS_NUMB = Constant::NA

Global constant, the Avogadro's number [molec/kg].

Author
Patrick Eriksson
Date
08.04.2000

Referenced by PrintPhysicalConstants().

◆ BOHR_MAGNETON

const Numeric BOHR_MAGNETON = Constant::bohr_magneton

Bohr Magneton.

Author
Richard Larsson
Date
2012-09-26

Referenced by PrintPhysicalConstants().

◆ BOLTZMAN_CONST

◆ CATALOGPARAMETER_MAINTAG

const String CATALOGPARAMETER_MAINTAG = "Catalog parameter"

◆ COSMIC_BG_TEMP

const Numeric COSMIC_BG_TEMP = 2.735

Global constant, Planck temperature for cosmic background radiation [K].

Author
Patrick Eriksson
Date
08.04.2000

◆ DEG2RAD

const Numeric DEG2RAD = 0.017453292519943

Global constant, conversion from degrees to radians.

Multiply your value in degrees by this constant to get the value in radians.

Author
Patrick Eriksson
Date
08.04.2000

Referenced by defocusing_general(), defocusing_sat2sat(), dotprod_with_los(), lon_crossing_3d(), raytrace_1d_linear_basic(), sorted_index_of_ppath_field(), and za_geom2other_point().

◆ DENSITY_OF_ICE

const Numeric DENSITY_OF_ICE = 0.9167e3

Global constant, Density of water ice at 0C [kg/m3].

source: http://en.wikipedia.org/wiki/Ice

Author
Jana Mendrok
Date
2014-10-15

◆ DENSITY_OF_WATER

const Numeric DENSITY_OF_WATER = 1e3

Global constant, Density of liquid water +4C [kg/m3].

source: http://en.wikipedia.org/wiki/Water

Author
Jana Mendrok
Date
2014-10-15

◆ DOPPLER_CONST

const Numeric DOPPLER_CONST
Initial value:
=
std::sqrt(Constant::doppler_broadening_const_squared)
Numeric sqrt(const Rational r)
Square root.
Definition: rational.h:620

Referenced by PrintPhysicalConstants(), and test_lineshape().

◆ EARTH_RADIUS

const Numeric EARTH_RADIUS = 6.3781e6

Global constant, the radius of the Earth [m].

Author
Patrick Eriksson
Date
08.04.2000

◆ ELECTRON_CHARGE

const Numeric ELECTRON_CHARGE = -Constant::e

Global constant, the charge of an electron [As] N.B.

this is a negative number.

Author
Patrick Eriksson
Date
2012-04-04

Referenced by PrintPhysicalConstants().

◆ ELECTRON_MASS

const Numeric ELECTRON_MASS = Constant::m_e

Global constant, the mass of an electron [kg].

Author
Patrick Eriksson
Date
2012-04-04

Referenced by PrintPhysicalConstants().

◆ ELECTRONS_MAINTAG

const String ELECTRONS_MAINTAG = "Electron species"

◆ EULER_NUMBER

const Numeric EULER_NUMBER = 2.7182818284590452

Global constant, e (Euler's number)

Author
Thomas Kuhn
Date
08.11.2001

◆ FLUX_MAINTAG

const String FLUX_MAINTAG = "Beam flux"

◆ FOREIGNBROADENING_MODE

const String FOREIGNBROADENING_MODE = "PB Foreign Gamma"

◆ FOREIGNBROADENINGEXPONENT_MODE

const String FOREIGNBROADENINGEXPONENT_MODE = "PB Foreign Exponent"

◆ FOREIGNPRESSURESHIFT_MODE

const String FOREIGNPRESSURESHIFT_MODE = "PB Foreign Pressure Shift"

◆ FREQUENCY_MAINTAG

const String FREQUENCY_MAINTAG = "Frequency"

◆ FREQUENCY_SUBTAG_0

const String FREQUENCY_SUBTAG_0 = "Shift"

◆ FREQUENCY_SUBTAG_1

const String FREQUENCY_SUBTAG_1 = "Stretch"

◆ GAS_CONSTANT

const Numeric GAS_CONSTANT = Constant::R

Global constant, universal gas constant.

Author
Patrick Eriksson
Date
2012-03-19

Referenced by PrintPhysicalConstants().

◆ GFIELD1_F_GRID

const Index GFIELD1_F_GRID = 0

Global constant, Index of the frequency grid in GriddedField1.

Author
Patrick Eriksson
Date
2008-07-02

◆ GFIELD3_LAT_GRID

const Index GFIELD3_LAT_GRID = 1

Global constant, Index of the latitude grid in GriddedField3.

Author
Oliver Lemke
Date
2008-06-24

◆ GFIELD3_LON_GRID

const Index GFIELD3_LON_GRID = 2

Global constant, Index of the longitude grid in GriddedField3.

Author
Oliver Lemke
Date
2008-06-24

◆ GFIELD3_P_GRID

const Index GFIELD3_P_GRID = 0

Global constant, Index of the pressure grid in GriddedField3.

Author
Oliver Lemke
Date
2008-06-24

◆ GFIELD4_AA_GRID

const Index GFIELD4_AA_GRID = 3

Global constant, Index of the azimuth angle grid in GriddedField4.

Author
Patrick Eriksson
Date
2008-07-01

◆ GFIELD4_F_GRID

const Index GFIELD4_F_GRID = 1

Global constant, Index of the frequency grid in GriddedField4.

Author
Patrick Eriksson
Date
2008-07-01

◆ GFIELD4_FIELD_NAMES

const Index GFIELD4_FIELD_NAMES = 0

Global constant, Index of the field names in GriddedField4.

Author
Oliver Lemke
Date
2008-06-25

◆ GFIELD4_IA_GRID

const Index GFIELD4_IA_GRID = 0

Global constant, Index of incidence angles in GriddedField4.

Author
Patrick Eriksson
Date
2008-09-20

◆ GFIELD4_LAT_GRID

const Index GFIELD4_LAT_GRID = 2

Global constant, Index of the latitude grid in GriddedField4.

Author
Oliver Lemke
Date
2008-06-25

◆ GFIELD4_LON_GRID

const Index GFIELD4_LON_GRID = 3

Global constant, Index of the longitude grid in GriddedField4.

Author
Oliver Lemke
Date
2008-06-25

◆ GFIELD4_P_GRID

const Index GFIELD4_P_GRID = 1

Global constant, Index of the pressure grid in GriddedField4.

Author
Oliver Lemke
Date
2008-06-25

◆ GFIELD4_ZA_GRID

const Index GFIELD4_ZA_GRID = 2

Global constant, Index of the zenith angle grid in GriddedField4.

Author
Patrick Eriksson
Date
2008-07-01

◆ HZ2CM

const Numeric HZ2CM = 0.01 / SPEED_OF_LIGHT

Global constant, converts Hz to cm-1.

Multiply your value in Hz by this constant to get the value in cm-1.

Author
Patrick Eriksson
Date
2003-09-07

Referenced by chi_cousin().

◆ LANDE_GS

const Numeric LANDE_GS = 2.0023193043622

Global constant, Lande factor gs.

source: http://en.wikipedia.org/wiki/G-factor_%28physics%29#Measured_g-factor_values

Author
Richard Larsson
Date
2012-09-26

◆ LAT_LON_MIN

const Numeric LAT_LON_MIN = 20

Global constant, minimum distance of cloudbox to lat/lon_grid edges.

Author
Patrick Eriksson, Jana Mendrok
Date
2016-09-08

◆ LINECENTER_MODE

const String LINECENTER_MODE = "Line Center"

◆ LINEMIXINGDF0_MODE

const String LINEMIXINGDF0_MODE = "LM DF Zeroth"

◆ LINEMIXINGDF1_MODE

const String LINEMIXINGDF1_MODE = "LM DF First"

◆ LINEMIXINGDFEXPONENT_MODE

const String LINEMIXINGDFEXPONENT_MODE = "LM DF Exponent"

◆ LINEMIXINGG0_MODE

const String LINEMIXINGG0_MODE = "LM G Zeroth"

◆ LINEMIXINGG1_MODE

const String LINEMIXINGG1_MODE = "LM G First"

◆ LINEMIXINGGEXPONENT_MODE

const String LINEMIXINGGEXPONENT_MODE = "LM G Exponent"

◆ LINEMIXINGY0_MODE

const String LINEMIXINGY0_MODE = "LM Y Zeroth"

◆ LINEMIXINGY1_MODE

const String LINEMIXINGY1_MODE = "LM Y First"

◆ LINEMIXINGYEXPONENT_MODE

const String LINEMIXINGYEXPONENT_MODE = "LM Y Exponent"

◆ LINESTRENGTH_MODE

const String LINESTRENGTH_MODE = "Line Strength"

◆ LOG10_EULER_NUMBER

const Numeric LOG10_EULER_NUMBER = 0.43429448190325176

Global constant, log10(Euler's number)

Author
Thomas Kuhn
Date
08.11.2001

◆ MAGFIELD_MAINTAG

const String MAGFIELD_MAINTAG = "Magnetic field"

◆ NAT_LOG_2

const Numeric NAT_LOG_2 = 0.69314718055994

Global constant, ln(2)

Author
Patrick Eriksson
Date
08.04.2000

◆ NAT_LOG_TEN

const Numeric NAT_LOG_TEN = 2.3025850929940459

Global constant, ln(10)

Author
Thomas Kuhn
Date
08.11.2001

◆ NLTE_MAINTAG

const String NLTE_MAINTAG = "NLTE temperatures"

◆ PARTICULATES_MAINTAG

const String PARTICULATES_MAINTAG = "Particulate species"

◆ PI

◆ PLANCK_CONST

◆ POINTING_CALCMODE_A

const String POINTING_CALCMODE_A = "Recalculate iyb"

◆ POINTING_CALCMODE_B

const String POINTING_CALCMODE_B = "Interpolate iyb"

◆ POINTING_MAINTAG

const String POINTING_MAINTAG = "Sensor pointing"

◆ POINTING_SUBTAG_A

const String POINTING_SUBTAG_A = "Zenith angle off-set"

◆ POLYFIT_MAINTAG

const String POLYFIT_MAINTAG = "Polynomial baseline fit"

◆ PROPMAT_SUBSUBTAG

const String PROPMAT_SUBSUBTAG = "From propagation matrix"

◆ RAD2DEG

const Numeric RAD2DEG = 57.295779513082323

Global constant, conversion from radians to degrees.

Multiply your value in radians by this constant to get the value in degrees.

Author
Patrick Eriksson
Date
08.04.2000

Referenced by cart2sph(), lon_crossing_3d(), Sample_los(), Sample_los_uniform(), and za_geom2other_point().

◆ SCATSPECIES_MAINTAG

const String SCATSPECIES_MAINTAG = "Scattering species"

◆ SELFBROADENING_MODE

const String SELFBROADENING_MODE = "PB Self Gamma"

◆ SELFBROADENINGEXPONENT_MODE

const String SELFBROADENINGEXPONENT_MODE = "PB Self Exponent"

◆ SELFPRESSURESHIFT_MODE

const String SELFPRESSURESHIFT_MODE = "PB Self Pressure Shift"

◆ SINEFIT_MAINTAG

const String SINEFIT_MAINTAG = "Sinusoidal baseline fit"

◆ SPEED_OF_LIGHT

const Numeric SPEED_OF_LIGHT = Constant::c

Global constant, speed of light in vaccum [m/s].

Author
Patrick Eriksson
Date
08.04.2000

◆ SQRT_NAT_LOG_2

const Numeric SQRT_NAT_LOG_2 = 0.832554611

Global constant, sqrt(ln(2))

Author
Axel von Engeln
Date
25.09.2000

◆ SURFACE_MAINTAG

const String SURFACE_MAINTAG = "Surface"

◆ TEMP_0_C

const Numeric TEMP_0_C = 273.15

Global constant, Temperature in Celsius of 0 Kelvin.

Author
Axel von Engeln
Date
2000-12-19

◆ TEMPERATURE_MAINTAG

const String TEMPERATURE_MAINTAG = "Atmospheric temperatures"

◆ TORR2PA

const Numeric TORR2PA = 133.3227

Global constant, converts torr to Pa.

Multiply your value in torr by this constant to get the value in Pa.

Author
Axel von Engeln
Date
2000-10-31

◆ VACUUM_PERMITTIVITY

const Numeric VACUUM_PERMITTIVITY = Constant::vacuum_permittivity

Global constant, the vacuum permittivity [F m-1].

The constant is also know the permittivity of free space or electric constant.

Author
Patrick Eriksson
Date
2012-04-04

Referenced by PrintPhysicalConstants().

◆ WATERBROADENING_MODE

const String WATERBROADENING_MODE = "PB Water Gamma"

◆ WATERBROADENINGEXPONENT_MODE

const String WATERBROADENINGEXPONENT_MODE = "PB Water Exponent"

◆ WATERPRESSURESHIFT_MODE

const String WATERPRESSURESHIFT_MODE = "PB Water Pressure Shift"

◆ WIND_MAINTAG

const String WIND_MAINTAG = "Wind"