const.const

const : Provides physical, mathematical, computational, isotope, and material constants.

Defines the following constants:
Mathematical

Pi, Pi2, Pi3, TwoPi, Sqrt2, pi, pi2, pi3, Twopi

Physical

Gravity, T0, P0, T25, sigma, R, R_air, R_H2O, Na, REarth

Isotope

R13VPDB, R18VSMOW, R2VSMOW

Computational

tiny, huge, eps

Material

mmol_co2, mmol_h2o, mmol_air, density_quartz, cheat_quartz, cheat_water, cheat_air, latentheat_vaporization

This module was written by Matthias Cuntz while at Department of Computational Hydrosystems, Helmholtz Centre for Environmental Research - UFZ, Leipzig, Germany, and continued while at Institut National de Recherche pour l’Agriculture, l’Alimentation et l’Environnement (INRAE), Nancy, France.

Examples

>>> print('{:.3f}'.format(Pi))
3.142
>>> print('{:.3f}'.format(Sqrt2))
1.414
>>> print('{:.3f}'.format(Gravity))
9.810
>>> print('{:.3f}'.format(T0))
273.150
>>> print('{:.3e}'.format(sigma))
5.670e-08
>>> print('{:.3f}'.format(R13VPDB))
0.011
>>> print('{:.3e}'.format(tiny))
2.225e-308
>>> print('{:.3f}'.format(REarth))
6371009.000
>>> print('{:.3f}'.format(mmol_h2o))
18.015
>>> print('{:.3f}'.format(mmol_air))
28.964
>>> print('{:.3f}'.format(density_quartz))
2.650
>>> print('{:.3f}'.format(cheat_quartz))
800.000
>>> print('{:.3f}'.format(cheat_water))
4180.000
>>> print('{:.3f}'.format(cheat_air))
1010.000
>>> print('{:.3f}'.format(latentheat_vaporization))
2450000.000

Copyright (c) 2012-2020 Matthias Cuntz - mc (at) macu (dot) de Released under the MIT License; see LICENSE file for details.

  • Written Jan 2012 by Matthias Cuntz (mc (at) macu (dot) de)

  • Ported to Python 3, Feb 2013, Matthias Cuntz

  • Added dielectric constant for water, Mar 2014, Arndt Piayda

  • Added heat capacities for air, water and quartz as well as density of quartz, Sep 2014, Arndt Piayda

  • Added Pi3=pi/3, R13VPDB, R18VSMOW, R2VSMOW, Mar 2015, Matthias Cuntz

  • Renamed heat capacities, molar masses, density of quartz, Mar 2015, Matthias Cuntz

  • Moved calculation of dielectric constant of water to own routine, Mar 2015, Matthias Cuntz

  • Added computational constants such as tiny=np.finfo(np.float).tiny, Nov 2016, Matthias Cuntz

  • Added gas constants for dry air and water, May 2017, RL

  • Using numpy docstring format, May 2020, Matthias Cuntz

  • Added lowercase version of pi constants, May 2020, Matthias Cuntz

Pi

Convert a string or number to a floating point number, if possible.

Pi2

Convert a string or number to a floating point number, if possible.

Pi3

Convert a string or number to a floating point number, if possible.

TwoPi

Convert a string or number to a floating point number, if possible.

pi

Convert a string or number to a floating point number, if possible.

pi2

Convert a string or number to a floating point number, if possible.

pi3

Convert a string or number to a floating point number, if possible.

Twopi

Convert a string or number to a floating point number, if possible.

Sqrt2

Convert a string or number to a floating point number, if possible.

Gravity

Convert a string or number to a floating point number, if possible.

T0

Convert a string or number to a floating point number, if possible.

P0

Convert a string or number to a floating point number, if possible.

T25

Convert a string or number to a floating point number, if possible.

sigma

Convert a string or number to a floating point number, if possible.

R

Convert a string or number to a floating point number, if possible.

R_air

Convert a string or number to a floating point number, if possible.

R_H2O

Convert a string or number to a floating point number, if possible.

Na

Convert a string or number to a floating point number, if possible.

REarth

Convert a string or number to a floating point number, if possible.

mmol_co2

Convert a string or number to a floating point number, if possible.

mmol_h2o

Convert a string or number to a floating point number, if possible.

mmol_air

Convert a string or number to a floating point number, if possible.

density_quartz

Convert a string or number to a floating point number, if possible.

cheat_quartz

Convert a string or number to a floating point number, if possible.

cheat_water

Convert a string or number to a floating point number, if possible.

cheat_air

Convert a string or number to a floating point number, if possible.

latentheat_vaporization

Convert a string or number to a floating point number, if possible.

R13VPDB

Convert a string or number to a floating point number, if possible.

R18VSMOW

Convert a string or number to a floating point number, if possible.

R2VSMOW

Convert a string or number to a floating point number, if possible.

tiny

huge

eps