-
Notifications
You must be signed in to change notification settings - Fork 0
/
atmos_gravity_waves.py
188 lines (168 loc) · 7 KB
/
atmos_gravity_waves.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
"""
A realm process specialization.
For further information goto http://wordpress.es-doc.org/cmip6-model-specializations.
"""
# --------------------------------------------------------------------
# INTERNAL (do not change)
# --------------------------------------------------------------------
from collections import OrderedDict
DETAILS = OrderedDict()
ENUMERATIONS = OrderedDict()
# --------------------------------------------------------------------
# DESCRIPTION: Short description of the specialization.
# --------------------------------------------------------------------
DESCRIPTION = 'Characteristics of the parameterised gravity waves in the atmosphere, ' \
'whether from orography or other sources'
# --------------------------------------------------------------------
# PROCESS: top level properties
# --------------------------------------------------------------------
DETAILS['toplevel'] = {
'description': "General attributes of the gravity wave parameterisation",
'properties': [
('sponge_layer', 'ENUM:sponge_layer_attributes', '1.1',
'Sponge layer in the upper levels in order to avoid gravity wave reflection at the top.'),
('background', 'ENUM:background_attributes', '1.1',
'Background wave distribution'),
('subgrid_scale_orography', 'ENUM:subgrid_scale_orography_attributes', '1.N',
'Subgrid scale orography effects taken into account.'),
]
}
# --------------------------------------------------------------------
# SUB-PROCESS: orographic_gravity_waves
# --------------------------------------------------------------------
DETAILS['orographic_gravity_waves'] = {
'description': 'Gravity waves generated due to the presence of orography',
'properties': [
('name', 'str', '0.1',
'Commonly used name for the orographic gravity wave scheme'),
('source_mechanisms', 'ENUM:orographic_gravity_wave_source_mechanisms', '1.N',
'Orographic gravity wave source mechanisms'),
('calculation_method', 'ENUM:orographic_gravity_wave_calculation_method', '1.N',
'Orographic gravity wave calculation method'),
('propagation_scheme', 'ENUM:orographic_gravity_wave_propagation_scheme', '1.1',
'Orographic gravity wave propogation scheme'),
('dissipation_scheme', 'ENUM:orographic_gravity_wave_dissipation_scheme', '1.1',
'Orographic gravity wave dissipation scheme'),
]
}
# --------------------------------------------------------------------
# SUB-PROCESS: non_orographic_gravity_waves
# --------------------------------------------------------------------
DETAILS['non_orographic_gravity_waves'] = {
'description': 'Gravity waves generated by non-orographic processes.',
'properties': [
('name', 'str', '0.1',
'Commonly used name for the non-orographic gravity wave scheme'),
('source_mechanisms', 'ENUM:non_orographic_gravity_wave_source_mechanisms', '1.N',
'Non-orographic gravity wave source mechanisms'),
('calculation_method', 'ENUM:non_orographic_gravity_wave_calculation_method', '1.N',
'Non-orographic gravity wave calculation method'),
('propagation_scheme', 'ENUM:non_orographic_gravity_wave_propagation_scheme', '1.1',
'Non-orographic gravity wave propogation scheme'),
('dissipation_scheme', 'ENUM:non_orographic_gravity_wave_dissipation_scheme', '1.1',
'Non-orographic gravity wave dissipation scheme'),
]
}
# --------------------------------------------------------------------
# PROCESS: ENUMERATIONS
# --------------------------------------------------------------------
ENUMERATIONS['sponge_layer_attributes'] = {
'description': 'Gravity waves sponge layer attributes',
'is_open': True,
'members': [
('Rayleigh friction', None),
('Diffusive sponge layer', None)
]
}
ENUMERATIONS['background_attributes'] = {
'description': 'Gravity waves background attributes',
'is_open': True,
'members': [
('continuous spectrum', None),
('discrete spectrum', None),
]
}
ENUMERATIONS['subgrid_scale_orography_attributes'] = {
'description': 'Gravity waves subgrid scale orography attributes',
'is_open': True,
'members': [
('effect on drag', None),
('effect on lifting', None),
('enhanced topography', 'To enhance the generation of long waves in the atmosphere'),
]
}
ENUMERATIONS['orographic_gravity_wave_source_mechanisms'] = {
'description': 'Physical mechanisms generating orographic gravity waves.',
'is_open': True,
'members': [
('linear mountain waves', None),
('hydraulic jump', None),
('envelope orography', None),
('low level flow blocking', None),
('statistical sub-grid scale variance', None),
]
}
ENUMERATIONS['orographic_gravity_wave_calculation_method'] = {
'description': 'Calculation method for orographic gravity waves.',
'is_open': True,
'members': [
('non-linear calculation', None),
('more than two cardinal directions', None),
]
}
ENUMERATIONS['orographic_gravity_wave_propagation_scheme'] = {
'description': 'Type of propagation scheme for orgraphic gravity waves',
'is_open': True,
'members': [
('linear theory', None),
('non-linear theory', None),
('includes boundary layer ducting', None),
]
}
ENUMERATIONS['orographic_gravity_wave_dissipation_scheme'] = {
'description': 'Type of dissipation scheme for orographic gravity waves.',
'is_open': True,
'members': [
('total wave', None),
('single wave', None),
('spectral', None),
('linear', None),
('wave saturation vs Richardson number', None),
]
}
ENUMERATIONS['non_orographic_gravity_wave_source_mechanisms'] = {
'description': 'Physical mechanisms generating non-orographic gravity waves',
'is_open': True,
'members': [
('convection', None),
('precipitation', None),
('background spectrum', None),
]
}
ENUMERATIONS['non_orographic_gravity_wave_calculation_method'] = {
'description': 'Calculation method for non-orographic gravity waves',
'is_open': False,
'members': [
('spatially dependent', None),
('temporally dependent', None),
]
}
ENUMERATIONS['non_orographic_gravity_wave_propagation_scheme'] = {
'description': 'Type of propagation scheme for non-orographic gravity waves.',
'is_open': True,
'members': [
('linear theory', None),
('non-linear theory', None),
]
}
ENUMERATIONS['non_orographic_gravity_wave_dissipation_scheme'] = {
'description': 'Type of dissipation scheme for non-orographic gravity waves.',
'is_open': True,
'members': [
('total wave', None),
('single wave', None),
('spectral', None),
('linear', None),
('wave saturation vs Richardson number', None),
]
}