#include "arts.h"
#include "matpackI.h"
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" |
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.
Definition in file constants.cc.
const String ABSSPECIES_MAINTAG = "Absorption species" |
Global constant, converts atm to Pa.
Multiply your value in atm by this constant to get the value in Pa.
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.
const Numeric AVOGADROS_NUMB = 6.0220450e26 |
const Numeric BOLTZMAN_CONST = 1.380662e-23 |
Global constant, the Boltzmann constant [J/K].
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].
Referenced by MatrixCBR().
Global constant, conversion from degrees to radians.
Multiply your value in degrees by this constant to get the value in radians.
Referenced by AngIntegrate_trapezoid(), AngIntegrate_trapezoid_fixedstep(), AngIntegrate_trapezoid_fixedstep_opt(), AngIntegrate_trapezoid_fixedstep_opt2(), AngIntegrate_trapezoid_opt(), AngIntegrate_trapezoid_opti(), AngIntegrate_trapezoid_original(), cart2poslos(), fastem(), fresnel(), geometrical_ppc(), geompath_r_at_za(), interp_scat_angle_temperature(), interpolate_scat_angle(), magfield_nk(), main(), mcPathTraceIPA(), pha_mat_labCalc(), plevel_crossing_2d(), plevel_slope_3d(), poslos2cart(), r_geoidWGS84(), raytrace_2d_linear_euler(), raytrace_3d_linear_euler(), refr_gradients_2d(), refr_gradients_3d(), refraction_ppc(), sph2cart(), ybatchMetProfiles(), za_geom2other_point(), and ZaSatOccultation().
const Numeric EARTH_GRAV_CONST = 3.98601E14 |
Global constant, Earth gravitational constant [m^3/s^2].
Referenced by ZaSatOccultation().
const Numeric EARTH_RADIUS = 6.378e6 |
Global constant, the radius of the Earth [m].
Referenced by magfield_nk(), and r_geoidSpherical().
const Numeric EULER_NUMBER = 2.7182818284590452 |
Global constant, e (Euler's number).
const Index GFIELD1_F_GRID = 0 |
Global constant, Index of the frequency grid in GField1.
Referenced by mixer_matrix(), sensor_responseBackend(), sensor_responseMixer(), and spectrometer_matrix().
const Index GFIELD3_LAT_GRID = 1 |
const Index GFIELD3_LON_GRID = 2 |
const Index GFIELD3_P_GRID = 0 |
const Index GFIELD4_AA_GRID = 3 |
Global constant, Index of the azimuth angle grid in GField4.
Referenced by antenna1d_matrix(), and sensor_responseAntenna().
const Index GFIELD4_F_GRID = 1 |
Global constant, Index of the frequency grid in GField4.
Referenced by antenna1d_matrix(), and sensor_responseAntenna().
const Index GFIELD4_FIELD_NAMES = 0 |
Global constant, Index of the field names in GField4.
Referenced by abs_lookupSetupBatch(), antenna1d_matrix(), atm_fields_compactAddConstant(), atm_fields_compactFromMatrix(), AtmFieldsFromCompact(), and sensor_responseAntenna().
const Index GFIELD4_IA_GRID = 0 |
const Index GFIELD4_LAT_GRID = 2 |
Global constant, Index of the latitude grid in GField4.
Referenced by atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().
const Index GFIELD4_LON_GRID = 3 |
Global constant, Index of the longitude grid in GField4.
Referenced by atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().
const Index GFIELD4_P_GRID = 1 |
Global constant, Index of the pressure grid in GField4.
Referenced by abs_lookupSetupBatch(), atm_fields_compactFromMatrix(), and AtmFieldsFromCompact().
const Index GFIELD4_ZA_GRID = 2 |
Global constant, Index of the zenith angle grid in GField4.
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.
Referenced by chi_cousin().
Define the global joker objekt.
This is used by Matpack to specify joker ranges.
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).
const Numeric LOSCHMIDT_CONST = 2.686763E25 |
Global constant, Loschmidt constant [m^-3].
const Numeric NAT_LOG_TEN = 2.3025850929940459 |
Global constant, ln(10).
Global constant, pi.
Referenced by AngIntegrate_trapezoid(), AngIntegrate_trapezoid_fixedstep(), AngIntegrate_trapezoid_original(), cloud_ppath_update1D_planeparallel(), interp_scat_angle_temperature(), interpolate_scat_angle(), lineshape_CO2_lorentz(), lineshape_doppler(), lineshape_lorentz(), lineshape_rosenkranz_voigt_drayson(), lineshape_rosenkranz_voigt_kuntz6(), lineshape_voigt_drayson(), lineshape_voigt_kuntz3(), lineshape_voigt_kuntz4(), lineshape_voigt_kuntz6(), magfield_nk(), MPM93_N2_continuum(), MPM93_O2_continuum(), pha_mat_labCalc(), phase_functionCalc(), pmomCalc(), PWR93O2AbsModel(), Standard_O2_continuum(), test_AngIntegrate_trapezoid_opti(), test_x(), test_x_fixedstep(), test_xy(), test_xy_fixedstep(), test_xy_fixedstep_opt(), test_xy_fixedstep_opt2(), test_xy_opt(), and ybatchMetProfilesClear().
const Numeric PLANCK_CONST = 6.626180e-34 |
Global constant, the Planck constant [Js].
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.
Global constant, conversion from radians to degrees.
Multiply your value in radians by this constant to get the value in degrees.
Referenced by cart2poslos(), cart2sph(), doit_i_fieldUpdateSeq1D(), doit_i_fieldUpdateSeq3D(), geompath_za_at_r(), interp_scat_angle_temperature(), interpolate_scat_angle(), pha_mat_labCalc(), plevel_angletilt(), plevel_crossing_2d(), plevel_crossing_3d(), raytrace_1d_linear_euler(), raytrace_2d_linear_euler(), raytrace_3d_linear_euler(), Sample_los(), VectorZtanToZaRefr1D(), ybatchMetProfiles(), za_geom2other_point(), and ZaSatOccultation().
const Numeric SPEED_OF_LIGHT = 2.99792458e8 |
Global constant, spped of light in vaccum [m/s].
Referenced by CKD_222_foreign_h2o(), CKD_222_self_h2o(), CKD_241_co2(), CKD_242_foreign_h2o(), CKD_242_self_h2o(), CKD_mt_100_foreign_h2o(), CKD_mt_100_self_h2o(), CKD_mt_CIAfun_n2(), CKD_mt_CIAfun_o2(), CKD_mt_CIArot_n2(), CKD_mt_co2(), CKD_mt_v0v0_o2(), CKD_mt_v1v0_o2(), invplanck(), invrayjean(), MCGeneral(), MCIPA(), MPM93_N2_continuum(), MPM93_O2_continuum(), planck(), planck2(), LineRecord::ReadFromHitran2004Stream(), LineRecord::ReadFromHitranStream(), LineRecord::ReadFromMytran2Stream(), ScatteringMonteCarlo(), Standard_O2_continuum(), wavenumber_to_joule(), and xsec_species().
const Numeric SQRT_NAT_LOG_2 = 0.832554611 |
Global constant, sqrt(ln(2)).
Global constant, Planck temperature for solar radiation [K].
Global constant, Temperature in Celsius of 0 Kelvin.
Referenced by complex_nWaterLiebe93().
const String TEMPERATURE_MAINTAG = "Atmospheric temperatures" |
Global constant, converts torr to Pa.
Multiply your value in torr by this constant to get the value in Pa.
Referenced by LineRecord::ReadFromMytran2Stream().