forked from mdekauwe/big_leaf_vs_two_leaf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
46 lines (46 loc) · 1.27 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
A series of everyday constants, well.
"""
MOL_2_MMOL = 1000.0
M_2_MM = 1E03
MOL_WATER_2_G_WATER = 18.02
MMOL_2_MOL = 1E-03
G_TO_KG = 1E-03
J_TO_MJ = 1.0E-6
SEC_2_HLFHR = 1800.
DEG_2_KELVIN = 273.15
PA_2_KPA = 0.001
RGAS = 8.314
GSVGSC = 1.57 # Ratio of Gsw:Gsc
H2OLV0 = 2.501E6 # latent heat H2O (J kg-1)
H2OMW = 18E-3 # mol mass H20 (kg mol-1)
CP = 1010.0 # specific heat of dry air (j kg-1 k-1)
AIR_MASS = 29.0E-3 # mol mass air (kg mol-1)
KPA_2_PA = 1000.
GSC_2_GSW = 1.57 # Ratio of Gsw:Gsc
GSW_2_GSC = 1.0 / GSC_2_GSW
GBH_2_GBW = 1.075
GBC_2_GBH = 1.32
GBH_2_GBC = 1.0 / GBC_2_GBH
SIGMA = 5.6704E-08 # Stefan-Boltzmann constant, (w m-2 k-4)
CP = 1010.0 # specific heat of dry air (j kg-1 k-1)
UMOL_2_JOL = 4.57 # conversion from J to umol quanta
SW_2_PAR = 2.3
PAR_2_SW = 1.0 / SW_2_PAR
DHEAT = 21.5E-6 # molecular diffusivity for heat (m2 s-1)
RSPECIFC_DRY_AIR = 287.058 # Jkg-1 K-1
KG_TO_G = 1000.0
MOL_TO_MMOL = 1000.0
G_TO_MOL_H20 = 1.0 / 18.0
HPA_TO_KPA = 0.1
PA_TO_KPA = 0.001
KPA_TO_PA = 1000.0
SEC_TO_HR = 3600.0
SEC_TO_HLFHR = 1800.0
UMOL_TO_MOL = 0.000001
MOL_C_TO_GRAMS_C = 12.
SEC_TO_DAY = 86400.
SUNLIT = 0
SHADED = 1
UMOLPERJ = 4.57 # Conversion from J to umol quanta
MJ_TO_J = 1E6