Newer
Older
from numpy import float32
from collections import namedtuple
Var = namedtuple('Var', ['type', 'standard_name', 'name', 'description', 'units'])
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
database = dict(
box_temp=Var(
float32,
'air_temperature',
'box_temp',
'Auxillary Temperature',
'degC'),
box_pressure=Var(
float32,
'air_pressure',
'box_pressure',
'Pressure inside the data logger enclosure',
'hPa'),
paro_air_temp_period=Var(
float32,
'',
'paro_air_temp_period',
'',
'1'),
paro_pressure_period=Var(
float32,
'',
'paro_pressure_period',
'',
'1'),
paro_air_temp=Var(
float32,
'air_temperature',
'paro_air_temp',
'',
'degC'),
pressure=Var(
float32,
'air_pressure',
'pressure',
'Air pressure as measured from the PAROSCI pressure sensor',
'hPa'),
paro_cal_sig=Var(
float32,
'',
'paro_cal_sig',
'',
''),
box_rh=Var(
float32,
'relative_humidity',
'box_rh',
'Relative humidity inside the data logger enclosure',
'%'),
box_air_temp=Var(
float32,
'air_temperature',
'box_air_temp',
'Air temperature inside the data logger enclosure',
'degC'),
air_temp_2=Var(
float32,
'air_temperature',
'air_temp_2',
'Auxillary air temperature',
'degC'),
air_temp_3=Var(
float32,
'air_temperature',
'air_temp_3',
'Auxillary air temperature',
'degC'),
air_temp_4=Var(
float32,
'air_temperature',
'air_temp_4',
'Auxillary air temperature',
'degC'),
air_temp_5=Var(
float32,
'air_temperature',
'air_temp_5',
'Auxillary air temperature',
'degC'),
wind_speed=Var(
float32,
'wind_speed',
'wind_speed',
'Wind speed',
'm*s^-1'),
wind_dir=Var(
float32,
'wind_direction',
'wind_dir',
'Wind direction',
'degrees'),
rh_shield_freq=Var(
float32,
'',
'rh_shield_freq',
'',
'hz'),
rh=Var(
float32,
'relative_humidity',
'rh',
'Relative humidity',
'%'),
air_temp_6_3m=Var(
float32,
'air_temperature',
'air_temp_6_3m',
'Air temperature 6.3m from tower base',
'degC'),
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
float32,
'dewpoint_temperature',
'dewpoint',
'Calculated dewpoint temperature',
'degC'),
rtd_shield_freq=Var(
float32,
'',
'rtd_shied_freq',
'',
''),
air_temp=Var(
float32,
'air_temperature',
'air_temp',
'Air temperature',
'degC'),
solar_flux=Var(
float32,
'solar_flux',
'solar_flux',
'Solar flux',
'w*m^-2'),
precip=Var(
float32,
'',
'precip',
'Precipitation',
'mm'),
accum_precip=Var(
float32,
'accumulated_precipitation',
'accum_precip',
'Precipitation accumulated since 0Z',
'mm'),
altimeter=Var(
float32,
'',
'altimeter',
'',
'inHg')
)
met_vars = {'air_temp', 'rh', 'solar_flux', 'pressure', 'precip', 'accum_precip',
'wind_speed', 'wind_dir'}
engr_vars = set(database.keys()) - met_vars