-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
73 lines (66 loc) · 1.32 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""Constants for the TSM. The TypedDicts allow for updating upon module init"""
from typing import (
TypedDict,
)
class Temperature(TypedDict):
stefan_boltzmann: float
cp_air: float
emissivity_water: float
gravity: float
a0: float
a1: float
a2: float
a3: float
a4: float
a5: float
a6: float
pb: float
cps: float
h2: float
alphas: float
richardson_option: bool
dt: float
class Meteorological(TypedDict):
air_temp_c: float
q_solar: float
sed_temp_c: float
eair_mb: float
pressure_mb: float
cloudiness: float
wind_speed: float
wind_a: float
wind_b: float
wind_c: float
wind_kh_kw: float
DEFAULT_METEOROLOGICAL = Meteorological(
air_temp_c=20.0,
q_solar=400.0,
sed_temp_c=5.0,
eair_mb=1.0,
pressure_mb=1013.0,
cloudiness=0.1,
wind_speed=3.0,
wind_a=0.3,
wind_b=1.5,
wind_c=3.0,
wind_kh_kw=1.0,
)
DEFAULT_TEMPERATURE = Temperature(
stefan_boltzmann=5.67e-8,
cp_air=1005.0,
emissivity_water=0.97,
gravity=-9.806,
a0=6984.505294,
a1=-188.903931,
a2=2.133357675,
a3=-1.288580973E-2,
a4=4.393587233E-5,
a5=-8.023923082E-8,
a6=6.136820929E-11,
pb=1600.0,
cps=1673.0,
h2=0.1,
alphas=0.0432,
richardson_option=True,
dt=1,
)