constants.cc File Reference

This file contains global constants. More...

#include "arts.h"
#include "matpackI.h"

Include dependency graph for constants.cc:

Go to the source code of this file.

Variables

const Numeric EARTH_RADIUS = 6.378e6
 Global constant, the radius of the Earth [m].
const Numeric RAD2DEG = 57.29577951308232
 Global constant, conversion from radians to degrees.
const Numeric DEG2RAD = 0.01745329251994
 Global constant, conversion from degrees to radians.
const Numeric PLANCK_CONST = 6.626180e-34
 Global constant, the Planck constant [Js].
const Numeric SPEED_OF_LIGHT = 2.99792458e8
 Global constant, spped of light in vaccum [m/s].
const Numeric BOLTZMAN_CONST = 1.380662e-23
 Global constant, the Boltzmann constant [J/K].
const Numeric AVOGADROS_NUMB = 6.0220450e26
 Global constant, the Avogadro's number [molec/kg].
const Numeric ATOMIC_MASS_UNIT = 1.6606E-27
 Atomic mass unit, 12th of a C^12_6 atom.
const Numeric COSMIC_BG_TEMP = 2.735
 Global constant, Planck temperature for cosmic background radiation [K].
const Numeric SUN_TEMP = 6000.0
 Global constant, Planck temperature for solar radiation [K].
const Numeric EULER_NUMBER = 2.7182818284590452
 Global constant, e (Euler's number).
const Numeric LOG10_EULER_NUMBER = 0.43429448190325176
 Global constant, log10(Euler's number).
const Numeric NAT_LOG_TEN = 2.3025850929940459
 Global constant, ln(10).
const Numeric NAT_LOG_2 = 0.69314718055994
 Global constant, ln(2).
const Numeric SQRT_NAT_LOG_2 = 0.832554611
 Global constant, sqrt(ln(2)).
const Numeric PI = 3.14159265358979
 Global constant, pi.
const Numeric ATM2PA = 1.01325e5
 Global constant, converts atm to Pa.
const Numeric TORR2PA = 133.3227
 Global constant, converts torr to Pa.
const Numeric TEMP_0_C = 273.15
 Global constant, Temperature in Celsius of 0 Kelvin.
const Numeric PRES_STAND = 101300.25
 Global constant, Standard pressure in Pa.
const Numeric LOSCHMIDT_CONST = 2.686763E25
 Global constant, Loschmidt constant [m^-3].
const Numeric EARTH_GRAV_CONST = 3.98601E14
 Global constant, Earth gravitational constant [m^3/s^2].
const Numeric HZ2CM = 0.01 / SPEED_OF_LIGHT
 Global constant, converts Hz to cm-1.
const Index GFIELD1_F_GRID = 0
 Global constant, Index of the frequency grid in GField1.
const Index GFIELD3_P_GRID = 0
 Global constant, Index of the pressure grid in GField3.
const Index GFIELD3_LAT_GRID = 1
 Global constant, Index of the latitude grid in GField3.
const Index GFIELD3_LON_GRID = 2
 Global constant, Index of the longitude grid in GField3.
const Index GFIELD4_FIELD_NAMES = 0
 Global constant, Index of the field names in GField4.
const Index GFIELD4_IA_GRID = 0
 Global constant, Index of incidence angles in GField4.
const Index GFIELD4_P_GRID = 1
 Global constant, Index of the pressure grid in GField4.
const Index GFIELD4_F_GRID = 1
 Global constant, Index of the frequency grid in GField4.
const Index GFIELD4_LAT_GRID = 2
 Global constant, Index of the latitude grid in GField4.
const Index GFIELD4_ZA_GRID = 2
 Global constant, Index of the zenith angle grid in GField4.
const Index GFIELD4_LON_GRID = 3
 Global constant, Index of the longitude grid in GField4.
const Index GFIELD4_AA_GRID = 3
 Global constant, Index of the azimuth angle grid in GField4.
Joker joker
 Define the global joker objekt.
const String ABSSPECIES_MAINTAG = "Absorption species"
const String POINTING_MAINTAG = "Sensor pointing"
const String POLYFIT_MAINTAG = "Polynomial baseline fit"
const String TEMPERATURE_MAINTAG = "Atmospheric temperatures"


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

const String ABSSPECIES_MAINTAG = "Absorption species"

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 LineRecord::ReadFromHitran2004Stream(), and LineRecord::ReadFromHitranStream().

const Numeric ATOMIC_MASS_UNIT = 1.6606E-27

Atomic mass unit, 12th of a C^12_6 atom.

Author:
Oliver Lemke
Date:
27.09.2000

const Numeric AVOGADROS_NUMB = 6.0220450e26

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

Author:
Patrick Eriksson
Date:
08.04.2000

Referenced by xsec_species().

const Numeric BOLTZMAN_CONST = 1.380662e-23

Global constant, the Boltzmann constant [J/K].

Author:
Patrick Eriksson
Date:
08.04.2000

Referenced by invplanck(), invrayjean(), lineshape_norm_VVH(), MCGeneral(), MCIPA(), number_density(), planck(), planck2(), ScatteringMonteCarlo(), xsec_continuum_tag(), and xsec_species().

const Numeric COSMIC_BG_TEMP = 2.735

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

Author:
Patrick Eriksson
Date:
08.04.2000

Referenced by MatrixCBR().

const Numeric DEG2RAD = 0.01745329251994

const Numeric EARTH_GRAV_CONST = 3.98601E14

Global constant, Earth gravitational constant [m^3/s^2].

Author:
Carlos Jimenez
Date:
2001-04-20

Referenced by ZaSatOccultation().

const Numeric EARTH_RADIUS = 6.378e6

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

Author:
Patrick Eriksson
Date:
08.04.2000

Referenced by magfield_nk(), and r_geoidSpherical().

const Numeric EULER_NUMBER = 2.7182818284590452

Global constant, e (Euler's number).

Author:
Thomas Kuhn
Date:
08.11.2001

const Index GFIELD1_F_GRID = 0

Global constant, Index of the frequency grid in GField1.

Author:
Patrick Eriksson
Date:
2008-07-02

Referenced by mixer_matrix(), sensor_responseBackend(), sensor_responseMixer(), and spectrometer_matrix().

Global constant, Index of the latitude grid in GField3.

Author:
Oliver Lemke
Date:
2008-06-24

Global constant, Index of the longitude grid in GField3.

Author:
Oliver Lemke
Date:
2008-06-24

const Index GFIELD3_P_GRID = 0

Global constant, Index of the pressure grid in GField3.

Author:
Oliver Lemke
Date:
2008-06-24

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

Author:
Patrick Eriksson
Date:
2008-07-01

Referenced by antenna1d_matrix(), and sensor_responseAntenna().

const Index GFIELD4_F_GRID = 1

Global constant, Index of the frequency grid in GField4.

Author:
Patrick Eriksson
Date:
2008-07-01

Referenced by antenna1d_matrix(), and sensor_responseAntenna().

Global constant, Index of the field names in GField4.

Author:
Oliver Lemke
Date:
2008-06-25

Referenced by abs_lookupSetupBatch(), antenna1d_matrix(), atm_fields_compactAddConstant(), atm_fields_compactFromMatrix(), AtmFieldsFromCompact(), and sensor_responseAntenna().

Global constant, Index of incidence angles in GField4.

Author:
Patrick Eriksson
Date:
2008-09-20

Global constant, Index of the latitude grid in GField4.

Author:
Oliver Lemke
Date:
2008-06-25

Referenced by atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().

Global constant, Index of the longitude grid in GField4.

Author:
Oliver Lemke
Date:
2008-06-25

Referenced by atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().

const Index GFIELD4_P_GRID = 1

Global constant, Index of the pressure grid in GField4.

Author:
Oliver Lemke
Date:
2008-06-25

Referenced by abs_lookupSetupBatch(), atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().

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

Author:
Patrick Eriksson
Date:
2008-07-01

Referenced by antenna1d_matrix(), and sensor_responseAntenna().

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

Define the global joker objekt.

This is used by Matpack to specify joker ranges.

Author:
Stefan Buehler
Date:
2001-09-10

Definition at line 304 of file constants.cc.

Referenced by abs_coefCalcSaveMemory(), abs_fieldCalc(), abs_h2oSet(), abs_lookupCreate(), abs_lookupSetup(), abs_lookupSetupBatch(), abs_lookupSetupWide(), abs_lookupTestAccuracy(), abs_n2Set(), abs_scalar_gasFromAbsCoef(), abs_vecAddGas(), abs_vecAddPart(), abs_vecTransform(), abs_xsec_per_speciesAddConts(), abs_xsec_per_speciesAddLines(), AbsInputFromAtmFields(), GasAbsLookup::Adapt(), antenna1d_matrix(), apply_y_unit_single(), atm_fields_compactAddConstant(), atm_fields_compactFromMatrix(), AtmFieldsCalc(), AtmFieldsFromCompact(), AtmFieldsRefinePgrid(), calc_lookup_error(), clear_rt_vars_at_gp(), cloud_atm_vars_by_gp(), cloud_fieldsCalc(), cloud_ppath_update1D_planeparallel(), cloud_ppath_update3D(), cloud_RT_no_background(), cloud_RT_surface(), Cloudbox_ppath_rteCalc(), cloudbox_ppath_start_stepping(), Cloudbox_ppathCalc(), CloudboxGetIncoming(), CloudboxGetIncoming1DAtm(), cloudy_rt_vars_at_gp(), doit_i_fieldSetClearsky(), doit_i_fieldUpdateSeq3D(), doit_scat_fieldCalc(), doit_scat_fieldCalcLimb(), DoitCloudboxFieldPut(), DoitScatteringDataPrepare(), dtauc_ssalbCalc(), ext_matAddGas(), ext_matAddPart(), ext_matTransform(), Extract(), GasAbsLookup::Extract(), findZ11max(), get_radiative_background(), get_refr_index_1d(), get_refr_index_2d(), get_refr_index_3d(), include_cumtrans_in_diy_dq(), include_trans_in_diy_dq(), interp(), interp_atmfield_by_itw(), interp_atmsurface_by_itw(), interp_cloud_coeff1D(), interp_gfield3(), interp_scat_angle_temperature(), interpolate_scat_angle(), interpolate_scat_angleDOIT(), interpTArray(), iwp_cloud_opt_pathCalc(), iy_calc(), iy_interp_cloudbox_field(), jacobian_from_path_to_rgrids(), jacobianCalcAbsSpecies(), jacobianCalcPointing(), jacobianCalcTemperature(), Matrix1ColFromVector(), Matrix1RowFromVector(), Matrix2ColFromVectors(), Matrix2RowFromVectors(), Matrix3ColFromVectors(), Matrix3RowFromVectors(), matrix_exp(), mc_IWP_cloud_opt_pathCalc(), MCGeneral(), MCIPA(), mcPathTrace(), mcPathTraceGeneral(), mcPathTraceIPA(), opt_depth_calc(), opt_prop_sptFromData(), opt_prop_sptFromMonoData(), opt_propExtract(), pha_mat_singleExtract(), pha_mat_sptFromData(), pha_mat_sptFromDataDOITOpt(), pha_mat_sptFromMonoData(), pha_matTransform(), pmomCalc(), pnd_fieldCalc(), ppath_append(), ppath_calc(), ppath_copy(), ppath_start_stepping(), ppath_stepGeometric(), ppath_stepRefractionEuler(), refr_indexFieldAndGradients(), rte_pos_and_losFromTangentPressure(), rte_posAddGeoidWGS84(), rte_posAddRgeoid(), rte_posShift(), rte_std(), RteCalc(), rtecalc_check_input(), RteCalcMC(), scat_data_monoCalc(), scat_data_rawCheck(), ScatteringMonteCarlo(), Select(), sensor_posAddGeoidWGS84(), sensor_posAddRgeoid(), sensor_responseAntenna(), surface_calc(), surfaceFlatRefractiveIndex(), surfaceFlatVaryingEmissivity(), TArrayCalc(), Tensor3FillWithVector(), test01(), test04(), test06(), test40(), VectorExtractFromMatrix(), VectorZtanToZaRefr1D(), xsec_continuum_tag(), ybatchCalc_implementation(), ybatchMetProfiles(), ybatchMetProfilesClear(), z_at_lat_2d(), z_at_latlon(), and za_gridOpt().

const Numeric LOG10_EULER_NUMBER = 0.43429448190325176

Global constant, log10(Euler's number).

Author:
Thomas Kuhn
Date:
08.11.2001

const Numeric LOSCHMIDT_CONST = 2.686763E25

Global constant, Loschmidt constant [m^-3].

Author:
Axel von Engeln
Date:
2000-12-19

const Numeric NAT_LOG_2 = 0.69314718055994

Global constant, ln(2).

Author:
Patrick Eriksson
Date:
08.04.2000

const Numeric NAT_LOG_TEN = 2.3025850929940459

Global constant, ln(10).

Author:
Thomas Kuhn
Date:
08.11.2001

const Numeric PI = 3.14159265358979

const Numeric PLANCK_CONST = 6.626180e-34

Global constant, the Planck constant [Js].

Author:
Patrick Eriksson
Date:
08.04.2000

Referenced by invplanck(), lineshape_norm_VVH(), planck(), planck2(), wavenumber_to_joule(), and xsec_species().

const String POINTING_MAINTAG = "Sensor pointing"

const String POLYFIT_MAINTAG = "Polynomial baseline fit"

const Numeric PRES_STAND = 101300.25

Global constant, Standard pressure in Pa.

Author:
Axel von Engeln
Date:
2000-12-19

const Numeric RAD2DEG = 57.29577951308232

const Numeric SPEED_OF_LIGHT = 2.99792458e8

const Numeric SQRT_NAT_LOG_2 = 0.832554611

Global constant, sqrt(ln(2)).

Author:
Axel von Engeln
Date:
25.09.2000

const Numeric SUN_TEMP = 6000.0

Global constant, Planck temperature for solar radiation [K].

Author:
Patrick Eriksson
Date:
08.04.2000

const Numeric TEMP_0_C = 273.15

Global constant, Temperature in Celsius of 0 Kelvin.

Author:
Axel von Engeln
Date:
2000-12-19

Referenced by complex_nWaterLiebe93().

const String TEMPERATURE_MAINTAG = "Atmospheric temperatures"

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

Referenced by LineRecord::ReadFromMytran2Stream().


Generated on Mon Mar 23 14:06:33 2009 for ARTS by  doxygen 1.5.6