ARTS  2.4.0(git:4fb77825)
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"
extern

◆ ATM2PA

const Numeric ATM2PA = 1.01325e5
extern

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().

◆ AVOGADROS_NUMB

const Numeric AVOGADROS_NUMB = Constant::NA
extern

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
extern

Bohr Magneton.

Author
Richard Larsson
Date
2012-09-26

Referenced by PrintPhysicalConstants().

◆ BOLTZMAN_CONST

◆ CATALOGPARAMETER_MAINTAG

const String CATALOGPARAMETER_MAINTAG = "Catalog parameter"
extern

◆ COSMIC_BG_TEMP

const Numeric COSMIC_BG_TEMP = 2.735
extern

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

Author
Patrick Eriksson
Date
08.04.2000

◆ DEG2RAD

const Numeric DEG2RAD = 0.017453292519943
extern

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(), Conversion::deg2rad(), dotprod_with_los(), and sorted_index_of_ppath_field().

◆ DENSITY_OF_ICE

const Numeric DENSITY_OF_ICE = 0.9167e3
extern

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
extern

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
extern
Initial value:
=
std::sqrt(Constant::doppler_broadening_const_squared)

Referenced by PrintPhysicalConstants().

◆ EARTH_RADIUS

const Numeric EARTH_RADIUS = 6.3781e6
extern

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

Author
Patrick Eriksson
Date
08.04.2000

◆ ELECTRON_CHARGE

const Numeric ELECTRON_CHARGE = -Constant::e
extern

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
extern

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"
extern

◆ EULER_NUMBER

const Numeric EULER_NUMBER = 2.7182818284590452
extern

Global constant, e (Euler's number)

Author
Thomas Kuhn
Date
08.11.2001

◆ FLUX_MAINTAG

const String FLUX_MAINTAG = "Beam flux"
extern

◆ FOREIGNBROADENING_MODE

const String FOREIGNBROADENING_MODE = "PB Foreign Gamma"
extern

◆ FOREIGNBROADENINGEXPONENT_MODE

const String FOREIGNBROADENINGEXPONENT_MODE = "PB Foreign Exponent"
extern

◆ FOREIGNPRESSURESHIFT_MODE

const String FOREIGNPRESSURESHIFT_MODE = "PB Foreign Pressure Shift"
extern

◆ FREQUENCY_MAINTAG

const String FREQUENCY_MAINTAG = "Frequency"
extern

◆ FREQUENCY_SUBTAG_0

const String FREQUENCY_SUBTAG_0 = "Shift"
extern

◆ FREQUENCY_SUBTAG_1

const String FREQUENCY_SUBTAG_1 = "Stretch"
extern

◆ GAS_CONSTANT

const Numeric GAS_CONSTANT = Constant::R
extern

Global constant, universal gas constant.

Author
Patrick Eriksson
Date
2012-03-19

Referenced by PrintPhysicalConstants().

◆ GFIELD1_F_GRID

const Index GFIELD1_F_GRID = 0
extern

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
extern

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
extern

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
extern

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
extern

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
extern

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
extern

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
extern

Global constant, Index of incidence angles in GriddedField4.

Author
Patrick Eriksson
Date
2008-09-20

◆ GFIELD4_LAT_GRID

const Index GFIELD4_LAT_GRID = 2
extern

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
extern

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
extern

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
extern

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
extern

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

◆ LANDE_GS

const Numeric LANDE_GS = 2.0023193043622
extern

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
extern

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"
extern

◆ LINEMIXINGDF0_MODE

const String LINEMIXINGDF0_MODE = "LM DF Zeroth"
extern

◆ LINEMIXINGDF1_MODE

const String LINEMIXINGDF1_MODE = "LM DF First"
extern

◆ LINEMIXINGDFEXPONENT_MODE

const String LINEMIXINGDFEXPONENT_MODE = "LM DF Exponent"
extern

◆ LINEMIXINGG0_MODE

const String LINEMIXINGG0_MODE = "LM G Zeroth"
extern

◆ LINEMIXINGG1_MODE

const String LINEMIXINGG1_MODE = "LM G First"
extern

◆ LINEMIXINGGEXPONENT_MODE

const String LINEMIXINGGEXPONENT_MODE = "LM G Exponent"
extern

◆ LINEMIXINGY0_MODE

const String LINEMIXINGY0_MODE = "LM Y Zeroth"
extern

◆ LINEMIXINGY1_MODE

const String LINEMIXINGY1_MODE = "LM Y First"
extern

◆ LINEMIXINGYEXPONENT_MODE

const String LINEMIXINGYEXPONENT_MODE = "LM Y Exponent"
extern

◆ LINESTRENGTH_MODE

const String LINESTRENGTH_MODE = "Line Strength"
extern

◆ LOG10_EULER_NUMBER

const Numeric LOG10_EULER_NUMBER = 0.43429448190325176
extern

Global constant, log10(Euler's number)

Author
Thomas Kuhn
Date
08.11.2001

◆ MAGFIELD_MAINTAG

const String MAGFIELD_MAINTAG = "Magnetic field"
extern

◆ NAT_LOG_2

const Numeric NAT_LOG_2 = 0.69314718055994
extern

Global constant, ln(2)

Author
Patrick Eriksson
Date
08.04.2000

◆ NAT_LOG_TEN

const Numeric NAT_LOG_TEN = 2.3025850929940459
extern

Global constant, ln(10)

Author
Thomas Kuhn
Date
08.11.2001

◆ NLTE_MAINTAG

const String NLTE_MAINTAG = "NLTE temperatures"
extern

◆ PARTICULATES_MAINTAG

const String PARTICULATES_MAINTAG = "Particulate species"
extern

◆ PI

const Numeric PI = Constant::pi
extern

Global constant, pi.

Author
Patrick Eriksson
Date
08.04.2000

Referenced by calcSingleScatteringDataProperties(), integrate_phamat_theta0_phi_alpha6(), and ze_cfac().

◆ PLANCK_CONST

const Numeric PLANCK_CONST = Constant::h
extern

Global constant, the Planck constant [Js].

Author
Patrick Eriksson
Date
08.04.2000

Referenced by createBij(), dabsorption_nlte_rate_dF0(), dabsorption_nlte_rate_dT(), dstimulated_relative_emission_dT(), PrintPhysicalConstants(), and setCji().

◆ POINTING_CALCMODE_A

const String POINTING_CALCMODE_A = "Recalculate iyb"
extern

◆ POINTING_CALCMODE_B

const String POINTING_CALCMODE_B = "Interpolate iyb"
extern

◆ POINTING_MAINTAG

const String POINTING_MAINTAG = "Sensor pointing"
extern

◆ POINTING_SUBTAG_A

const String POINTING_SUBTAG_A = "Zenith angle off-set"
extern

◆ POLYFIT_MAINTAG

const String POLYFIT_MAINTAG = "Polynomial baseline fit"
extern

◆ PROPMAT_SUBSUBTAG

const String PROPMAT_SUBSUBTAG = "From propagation matrix"
extern

◆ RAD2DEG

const Numeric RAD2DEG = 57.295779513082323
extern

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 Conversion::rad2deg(), Sample_los(), and Sample_los_uniform().

◆ SCATSPECIES_MAINTAG

const String SCATSPECIES_MAINTAG = "Scattering species"
extern

◆ SELFBROADENING_MODE

const String SELFBROADENING_MODE = "PB Self Gamma"
extern

◆ SELFBROADENINGEXPONENT_MODE

const String SELFBROADENINGEXPONENT_MODE = "PB Self Exponent"
extern

◆ SELFPRESSURESHIFT_MODE

const String SELFPRESSURESHIFT_MODE = "PB Self Pressure Shift"
extern

◆ SINEFIT_MAINTAG

const String SINEFIT_MAINTAG = "Sinusoidal baseline fit"
extern

◆ SPEED_OF_LIGHT

const Numeric SPEED_OF_LIGHT = Constant::c
extern

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
extern

Global constant, sqrt(ln(2))

Author
Axel von Engeln
Date
25.09.2000

◆ SURFACE_MAINTAG

const String SURFACE_MAINTAG = "Surface"
extern

◆ TEMP_0_C

const Numeric TEMP_0_C = 273.15
extern

Global constant, Temperature in Celsius of 0 Kelvin.

Author
Axel von Engeln
Date
2000-12-19

◆ TEMPERATURE_MAINTAG

const String TEMPERATURE_MAINTAG = "Atmospheric temperatures"
extern

◆ TORR2PA

const Numeric TORR2PA = 133.3227
extern

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

Referenced by Conversion::torr2pa().

◆ VACUUM_PERMITTIVITY

const Numeric VACUUM_PERMITTIVITY = Constant::vacuum_permittivity
extern

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"
extern

◆ WATERBROADENINGEXPONENT_MODE

const String WATERBROADENINGEXPONENT_MODE = "PB Water Exponent"
extern

◆ WATERPRESSURESHIFT_MODE

const String WATERPRESSURESHIFT_MODE = "PB Water Pressure Shift"
extern

◆ WIND_MAINTAG

const String WIND_MAINTAG = "Wind"
extern
sqrt
Numeric sqrt(const Rational r)
Square root.
Definition: rational.h:620