forked from vonw/dmvtocdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ohwhio.py
651 lines (644 loc) · 96.5 KB
/
ohwhio.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 8 14:36:23 2018
@author: Von P. Walden, Washington State University
"""
def getDMVformat(filename):
from collections import OrderedDict
extension = filename.split('.')[-1]
if((extension=='RNC') | (extension=='rnc')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('spareTemp3',OrderedDict([])),
('spareTemp4',OrderedDict([])),
('spareTemp5',OrderedDict([])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('spareTemp13',OrderedDict([])),
('spareTemp14',OrderedDict([])),
('spareTemp15',OrderedDict([])),
('spareTemp16',OrderedDict([])),
('spareTemp17',OrderedDict([])),
('spareTemp18',OrderedDict([])),
('spareTemp19',OrderedDict([])),
('spareTemp20',OrderedDict([])),
('spareTemp21',OrderedDict([])),
('spareTemp22',OrderedDict([])),
('calibrationAmbientTemp',OrderedDict([('longname','Ambient temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationCBBtemp',OrderedDict([('longname','Cold blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationHBBtemp',OrderedDict([('longname','Hot blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibratedSceneID',OrderedDict([('longname','Type of scene that has been calibrated (ASCII character as float)'),('units', 'count'),('precision', '1E-0')])),
('ABBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBtempOffset',OrderedDict([('longname','Corrective offset for final ambient blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtempOffset',OrderedDict([('longname','Corrective offset for final hot blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcavityFactor',OrderedDict([('longname', 'Blackbody cavity geometry factor'),('units', 'count'),('precision', '1E-3')])),
('sceneMirPosEncoderMaxDrift',OrderedDict([('longname','Maximum departure from ideal of the mirror position over the course of all contributing views. Typically two hot, two ambient, and one scene view are examined.'),('units', 'count'),('precision', '1E-1')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')])),
('FFOVhalfAngle',OrderedDict([('longname','Field of view half angle used in finite FOV correction'),('units', 'radians'),('precision', '1E-3')])),
('numberOfTerms',OrderedDict([('longname','Number of terms used in finite field of view correction'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('originalLaserWavenumber',OrderedDict([('longname','Original laser wavenumber assumed for this instrument'),('units', 'cm-1'),('precision', '1E-3')])),
('outputLaserWavenumber',OrderedDict([('longname','Laser wavenumber used in definition of output wavenumber scale'),('units', 'cm-1'),('precision', '1E-3')])),
('originalInterferogramSize',OrderedDict([('longname','Size of buffer holding initial spectrum'),('units', '32-bit words'),('precision', '1E0')])),
('expandedInterferogramSize',OrderedDict([('longname','Size of buffer holding expanded spectrum before interpolation'),('units', '32-bit words'),('precision', '1E0')]))])
wavenumberScales = {'mean_rad': 'wnum1'}
elif((extension=='RFC') | (extension=='rfc')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('spareTemp3',OrderedDict([])),
('spareTemp4',OrderedDict([])),
('spareTemp5',OrderedDict([])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('spareTemp13',OrderedDict([])),
('spareTemp14',OrderedDict([])),
('spareTemp15',OrderedDict([])),
('spareTemp16',OrderedDict([])),
('spareTemp17',OrderedDict([])),
('spareTemp18',OrderedDict([])),
('spareTemp19',OrderedDict([])),
('spareTemp20',OrderedDict([])),
('spareTemp21',OrderedDict([])),
('spareTemp22',OrderedDict([])),
('calibrationAmbientTemp',OrderedDict([('longname','Ambient temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationCBBtemp',OrderedDict([('longname','Cold blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationHBBtemp',OrderedDict([('longname','Hot blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibratedSceneID',OrderedDict([('longname','Type of scene that has been calibrated (ASCII character as float)'),('units', 'count'),('precision', '1E-0')])),
('ABBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBtempOffset',OrderedDict([('longname','Corrective offset for final ambient blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtempOffset',OrderedDict([('longname','Corrective offset for final hot blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcavityFactor',OrderedDict([('longname', 'Blackbody cavity geometry factor'),('units', 'count'),('precision', '1E-3')])),
('sceneMirPosEncoderMaxDrift',OrderedDict([('longname','Maximum departure from ideal of the mirror position over the course of all contributing views. Typically two hot, two ambient, and one scene view are examined.'),('units', 'count'),('precision', '1E-1')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')])),
('FFOVhalfAngle',OrderedDict([('longname','Field of view half angle used in finite FOV correction'),('units', 'radians'),('precision', '1E-3')])),
('numberOfTerms',OrderedDict([('longname','Number of terms used in finite field of view correction'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('originalLaserWavenumber',OrderedDict([('longname','Original laser wavenumber assumed for this instrument'),('units', 'cm-1'),('precision', '1E-3')])),
('outputLaserWavenumber',OrderedDict([('longname','Laser wavenumber used in definition of output wavenumber scale'),('units', 'cm-1'),('precision', '1E-3')])),
('originalInterferogramSize',OrderedDict([('longname','Size of buffer holding initial spectrum'),('units', '32-bit words'),('precision', '1E0')])),
('expandedInterferogramSize',OrderedDict([('longname','Size of buffer holding expanded spectrum before interpolation'),('units', '32-bit words'),('precision', '1E0')]))])
typ = filename.split('.')[0][-2:-1]
wavenumberScales = {'Radiance': 'wnum1'}
elif((extension=='RLC') | (extension=='rlc')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('spareTemp3',OrderedDict([])),
('spareTemp4',OrderedDict([])),
('spareTemp5',OrderedDict([])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('spareTemp13',OrderedDict([])),
('spareTemp14',OrderedDict([])),
('spareTemp15',OrderedDict([])),
('spareTemp16',OrderedDict([])),
('spareTemp17',OrderedDict([])),
('spareTemp18',OrderedDict([])),
('spareTemp19',OrderedDict([])),
('spareTemp20',OrderedDict([])),
('spareTemp21',OrderedDict([])),
('spareTemp22',OrderedDict([])),
('calibrationAmbientTemp',OrderedDict([('longname','Ambient temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationCBBtemp',OrderedDict([('longname','Cold blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationHBBtemp',OrderedDict([('longname','Hot blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibratedSceneID',OrderedDict([('longname','Type of scene that has been calibrated (ASCII character as float)'),('units', 'count'),('precision', '1E-0')])),
('ABBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBtempOffset',OrderedDict([('longname','Corrective offset for final ambient blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtempOffset',OrderedDict([('longname','Corrective offset for final hot blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcavityFactor',OrderedDict([('longname', 'Blackbody cavity geometry factor'),('units', 'count'),('precision', '1E-3')])),
('sceneMirPosEncoderMaxDrift',OrderedDict([('longname','Maximum departure from ideal of the mirror position over the course of all contributing views. Typically two hot, two ambient, and one scene view are examined.'),('units', 'count'),('precision', '1E-1')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')])),
('FFOVhalfAngle',OrderedDict([('longname','Field of view half angle used in finite FOV correction'),('units', 'radians'),('precision', '1E-3')])),
('numberOfTerms',OrderedDict([('longname','Number of terms used in finite field of view correction'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('originalLaserWavenumber',OrderedDict([('longname','Original laser wavenumber assumed for this instrument'),('units', 'cm-1'),('precision', '1E-3')])),
('outputLaserWavenumber',OrderedDict([('longname','Laser wavenumber used in definition of output wavenumber scale'),('units', 'cm-1'),('precision', '1E-3')])),
('originalInterferogramSize',OrderedDict([('longname','Size of buffer holding initial spectrum'),('units', '32-bit words'),('precision', '1E0')])),
('expandedInterferogramSize',OrderedDict([('longname','Size of buffer holding expanded spectrum before interpolation'),('units', '32-bit words'),('precision', '1E0')]))])
typ = filename.split('.')[0][-2:-1]
if (typ == 'B'):
wavenumberScales = {'atmosphericRadiance': 'wnum1'}
elif (typ == 'F'):
wavenumberScales = {'atmosphericRadiance': 'wnum1'}
else:
wavenumberScales = {'averageRadiance': 'wnum1'}
elif((extension=='CXS') | (extension=='cxs')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('spareTemp3',OrderedDict([])),
('maxPitch',OrderedDict([('longname','Maximum pitch of the interferometer during scan. Pitch axis is perpendicular to the axis of mirror rotation. Zero value indicates level.'),('units', 'degrees'),('precision', '1E0')])),
('maxRoll',OrderedDict([('longname','Maximum roll of the interferometer during scan. Roll axis is coincident to the axis of mirror rotation. Zero value indicates level.'),('units', 'degrees'),('precision', '1E0')])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')]))])
wavenumberScales = {'Ch1BackwardScanRealPartCounts': 'wnum1',
'Ch1BackwardScanImagPartCounts': 'wnum1',
'Ch1ForwardScanRealPartCounts': 'wnum1',
'Ch1ForwardScanImagPartCounts': 'wnum1',
'Ch2BackwardScanRealPartCounts': 'wnum1',
'Ch2BackwardScanImagPartCounts': 'wnum1',
'Ch2ForwardScanRealPartCounts': 'wnum1',
'Ch2ForwardScanImagPartCounts': 'wnum1'}
elif((extension=='CXV') | (extension=='cxv')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('spareTemp3',OrderedDict([])),
('maxPitch',OrderedDict([('longname','Maximum pitch of the interferometer during scan. Pitch axis is perpendicular to the axis of mirror rotation. Zero value indicates level.'),('units', 'degrees'),('precision', '1E0')])),
('maxRoll',OrderedDict([('longname','Maximum roll of the interferometer during scan. Roll axis is coincident to the axis of mirror rotation. Zero value indicates level.'),('units', 'degrees'),('precision', '1E0')])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')]))])
wavenumberScales = {'RealPartCounts': 'wnum1',
'ImagPartCounts': 'wnum1'}
elif((extension=='SUM') | (extension=='sum')):
variables = OrderedDict([
('Time',OrderedDict([('longname','Time at center of AERI sky observation period'),('precision', '1E-4')])),
('AERIunitNumber',OrderedDict([('longname', 'AERI instrument unit serial number'), ('units', 'count'),('precision', '1E0')])),
('instrumentUnitNumber',OrderedDict([('longname','Character string containing instrument name'),('units', 'count'),('precision', '1e0')])),
('dateYYMMDD',OrderedDict([('longname', 'Observation date'),('units', 'year.month.day'),('precision', '1E0')])),
('timeHHMMSS',OrderedDict([('longname','Time at center of AERI sky observation period'),('units', 'hour.minute.second'),('precision', '1E0')])),
('Latitude',OrderedDict([('longname', 'Observation latitude'),('units', 'degrees_north'),('precision', '1E-2')])),
('Longitude',OrderedDict([('longname', 'Observation longitude'),('units', 'degrees_east'),('precision', '1E-2')])),
('Altitude',OrderedDict([('longname', 'Observation Altitude'),('units', 'feet'),('precision', '1E0')])),
('systemReleaseNumber',OrderedDict([('longname','Version number of Operational Software'),('units', 'count'),('precision', '1E-3')])),
('sceneViewDuration',OrderedDict([('longname', 'Duration of scene view'),('precision', '1E0')])),
('coadditionsCount',OrderedDict([('longname','Number of complete (forward+backward) interferogram scans in sample average'),('units', 'count'),('precision', '1E0')])),
('sceneMirrorPosition',OrderedDict([('longname','Instrument scene mirror position identifier'),('units', 'count'),('precision', '1E0')])),
('sceneMirPosCount',OrderedDict([('longname', 'Number of views in a sequence'),('units', 'count'),('precision', '1E-0')])),
('sceneMirPosEncoder',OrderedDict([('longname', 'Scene mirror position encoder value'),('units', 'count'),('precision', '1E0')])),
('JulianDay',OrderedDict([('longname','Julian Day including day and fraction of day'),('precision', '1E-5')])),
('ABBtopTemp',OrderedDict([('longname','Ambient blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBapexTemp',OrderedDict([('longname','Ambient blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('ABBbottomTemp',OrderedDict([('longname', 'Ambient blackbody temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtopTemp',OrderedDict([('longname', 'Hot blackbody temperature - rim top'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBapexTemp',OrderedDict([('longname', 'Hot blackbody temperature - apex'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBbottomTemp',OrderedDict([('longname','Hot blackbody temperature - rim bottom'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed2500ohmResistor',OrderedDict([('longname','Resistive temperature of 2500 Ohm fixed resistor - banana plug mounted'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed97KohmResistor',OrderedDict([('longname','Resistive temperature of 97 Kohm fixed resistor located in SCE-P4 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('outsideAirTemp',OrderedDict([('longname','Ambient air temperature at hatch opening'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearInterferometerTemp',OrderedDict([('longname','Ambient air temperature near the interferometer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('interferometerSecondPortTemp',OrderedDict([('longname','AERI interferometer temperature at second port'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBsupportStructureTemp',OrderedDict([('longname','Temperature of the AERI blackbody support structure'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('airNearBBsTemp',OrderedDict([('longname','Ambient air temperature near blackbodies'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('mirrorMotorTemp',OrderedDict([('longname', 'Scene mirror motor case temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirrorTemp',OrderedDict([('longname','Scene mirror temperature as measured at the center of the back of the mirror'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('fixed12KohmResistor',OrderedDict([('longname','Resistive temperature of 12 Kohm fixed resistor located in SCE-P3 shell'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller1temp',OrderedDict([('longname','Blackbody controller Unit 1 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcontroller2temp',OrderedDict([('longname','Blackbody controller Unit 2 power supply temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCompressorTemp',OrderedDict([('longname','Stirling cooler compressor temperature measured at compressor heatsink'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerExpanderTemp',OrderedDict([('longname','Stirling cycle cooler expander temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerPowerSupplyTemp',OrderedDict([('longname','Stirling cooler power supply temperature measured at power supply frame'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rackAmbientTemp',OrderedDict([('longname','Electronics rack ambient temperature measured at inside top of rack'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('computerTemp',OrderedDict([('longname','AERI ingest computer temperature measured at back panel of computer'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('motorDriverTemp',OrderedDict([('longname','Scene mirror motor driver heat sink temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('SCEtemp',OrderedDict([('longname','Signal conditioning electronics inside air temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('coolerCurrent',OrderedDict([('longname', 'Stirling cycle cooler current'),('units', 'amperes'),('precision', '1E-3')])),
('detectorTemp',OrderedDict([('longname','Detector temperature sensed via diode near detector'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('rainSensorIntensity',OrderedDict([('longname','Rain sensor analog output: the rain sensor is located inside the hatch near the sky aperture and is used to flag the critical condition of rain falling on the AERI sky aperture. If rain is detected, the AERI scene mirror will be safed to the down looking p'),('units', 'millimeters/hour'),('precision', '1E0')])),
('interferometerWindowTemp',OrderedDict([('longname','Interferometer window temperature measured on the outside of the aluminum window flange'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirUnheatedTemp',OrderedDict([('longname','Interferometer front end fan airflow unheated temperature: used with heated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirHeatedTemp',OrderedDict([('longname','Interferometer front end fan airflow heated temperature: used with unheated temperature as measure of airflow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp1',OrderedDict([])),
('atmosphericRelativeHumidity',OrderedDict([('longname','Relative humidity measured near Blackbodies. Use with Air Temperature Near BBs only.'),('units', '%'),('precision', '1E-1')])),
('interferometerEnclosureRelativeHumidity',OrderedDict([('longname','Relative Humidity measured in the Interferometer Enclosure'),('units', '%'),('precision', '1E-1')])),
('atmosphericPressure',OrderedDict([('longname','Observation atmospheric pressure in AERI electronics'),('units', 'millibars'),('precision', '1E-1')])),
('maxSampleStdDev',OrderedDict([('longname','Maximum Standard Deviation in Thermistor Channels 0..7'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('spareTemp2',OrderedDict([])),
('sceneMirrorAngle',OrderedDict([('longname','Scene mirror view angle in non-negative degrees, measured clockwise looking into interferometer window.'),('units', 'degrees'),('precision', '1E-2')])),
('sceneMirrorMotorStep',OrderedDict([('longname','Motor step value given to motor controller to achieve proper mirror positioning'),('units', 'count'),('precision', '1E0')])),
('opticsCompartmentRelativeHumidity',OrderedDict([('longname','Relative humidity measured in the optics compartment atop the interferometer.'),('units','%'),('precision','1E0')])),
('maxPitch',OrderedDict([('longname','Maximum pitch of the interferometer during scan. Pitch axis is perpendicular to the axis of mirror rotation. Zero value indicates level.'),('units','degrees'),('precision','1E0')])),
('maxRoll',OrderedDict([('longname','Maximum roll of the interferometer during scan. Roll axis is coincident with the axis of mirror rotation. Zero value indicates level.'),('units','degrees'),('precision','1E0')])),
('hatchOpen',OrderedDict([('longname','Hatch status indicator, boolean with negative error conditions: 1:Open 0:Closed -1:Fault -2:Outside Valid Range -3:Neither Open Nor Closed'),('units', 'count'),('precision', '1E0')])),
('spareTemp6',OrderedDict([])),
('spareTemp7',OrderedDict([])),
('spareTemp8',OrderedDict([])),
('spareTemp9',OrderedDict([])),
('spareTemp10',OrderedDict([])),
('spareTemp11',OrderedDict([])),
('spareTemp12',OrderedDict([])),
('ABBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between ABB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBmaxTempDiff',OrderedDict([('longname','Maximum Temperature Difference Between HBB Thermistors'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('frontEndFanAirTempDiff',OrderedDict([('longname','Difference between frontEndFanAirHeatedTemp and frontEndFanAirUnheatedTemp; indicative of front end air flow.'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('sceneMirPosEncoderDrift',OrderedDict([('longname','Difference between actual and ideal motor encoder values for current view; indicative of quality of the mirror positioning.'),('units', 'count'),('precision', '1E0')])),
('spareTemp13',OrderedDict([])),
('spareTemp14',OrderedDict([])),
('calibrationAmbientTemp',OrderedDict([('longname','Ambient temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationCBBtemp',OrderedDict([('longname','Cold blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibrationHBBtemp',OrderedDict([('longname','Hot blackbody temperature used in calibration'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('calibratedSceneID',OrderedDict([('longname','Type of scene that has been calibrated (ASCII character as float)'),('units', 'count'),('precision', '1E-0')])),
('ABBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating ambient blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBtopTempWeight',OrderedDict([('longname','Weight factor for top used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBapexTempWeight',OrderedDict([('longname','Weight factor for apex used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('HBBbottomTempWeight',OrderedDict([('longname','Weight factor for bottom used in calculating hot blackbody temperature average'),('units', '%/100'),('precision', '1E-3')])),
('ABBtempOffset',OrderedDict([('longname','Corrective offset for final ambient blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtempOffset',OrderedDict([('longname','Corrective offset for final hot blackbody average temperature'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('BBcavityFactor',OrderedDict([('longname', 'Blackbody cavity geometry factor'),('units', 'count'),('precision', '1E-3')])),
('sceneMirPosEncoderMaxDrift',OrderedDict([('longname','Maximum departure from ideal of the mirror position over the course of all contributing views. Typically two hot, two ambient, and one scene view are examined.'),('units', 'count'),('precision', '1E-1')])),
('missingDataFlag',OrderedDict([('longname','Logical flag indicating that a data record is missing (true/false)'),('units', 'count'),('precision', '1E0')])),
('FFOVhalfAngle',OrderedDict([('longname','Field of view half angle used in finite FOV correction'),('units', 'radians'),('precision', '1E-3')])),
('numberOfTerms',OrderedDict([('longname','Number of terms used in finite field of view correction'),('units', 'count'),('precision', '1E0')])),
('channelNumber',OrderedDict([('longname', 'Instrument data channel number'),('units', 'count'),('precision', '1E0')])),
('originalLaserWavenumber',OrderedDict([('longname','Original laser wavenumber assumed for this instrument'),('units', 'cm-1'),('precision', '1E-3')])),
('outputLaserWavenumber',OrderedDict([('longname','Laser wavenumber used in definition of output wavenumber scale'),('units', 'cm-1'),('precision', '1E-3')])),
('originalInterferogramSize',OrderedDict([('longname','Size of buffer holding initial spectrum'),('units', '32-bit words'),('precision', '1E0')])),
('expandedInterferogramSize',OrderedDict([('longname','Size of buffer holding expanded spectrum before interpolation'),('units', '32-bit words'),('precision', '1E0')])),
('surfaceLayerRadiance675_680',OrderedDict([('longname','Longwave radiance average (675-680 cm-1) Surface Air'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-4')])),
('elevatedLayerRadiance700_705',OrderedDict([('longname','Longwave radiance average (700_705 cm-1) Elevated Air'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-4')])),
('longwaveWindowRadiance985_990',OrderedDict([('longname','Longwave window radiance average (985_990 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-4')])),
('surfaceLayerRadiance2295_2300',OrderedDict([('longname','Shortwave radiance average (2295_2300 cm-1) Surface Air'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-6')])),
('elevatedLayerRadiance2282_2287',OrderedDict([('longname','Shortwave radiance average (2282_2287 cm-1) Elevated Air'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-6')])),
('shortwaveWindowRadiance2510_2515',OrderedDict([('longname','Shortwave window radiance average (2510_2515 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-6')])),
('surfaceLayerAirTemp675_680',OrderedDict([('longname','Longwave surface air brightness temperature from radiance average (675_680 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('elevatedLayerAirTemp700_705',OrderedDict([('longname','Longwave elevated air brightness temperature from radiance average (700_705 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('longwaveWindowAirTemp985_990',OrderedDict([('longname','Longwave window brightness temperature from radiance average (985_990 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('surfaceLayerAirTemp2295_2300',OrderedDict([('longname','Shortwave surface air brightness temperature from radiance average (2295_2300 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('elevatedLayerAirTemp2282_2287',OrderedDict([('longname','Shortwave elevated air brightness temperature from radiance average (2282_2287 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('shortwaveWindowAirTemp2510_2515',OrderedDict([('longname','Shortwave window brightness temperature from radiance average (2510_2515 cm-1)'),('units', 'degrees_Kelvin'),('precision', '1E-4')])),
('skyViewStdDevRadiance675_680',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (675_680 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('skyViewStdDevRadiance700_705',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (700_705 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('skyViewStdDevRadiance985_990',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (985_990 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('skyViewStdDevRadiance2295_2300',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (2295_2300 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('skyViewStdDevRadiance2282_2287',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (2282_2287 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('skyViewStdDevRadiance2510_2515',OrderedDict([('longname','Radiance standard deviation during sky view averaged over (2510_2515 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance675_680',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (675_680 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance700_705',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (700_705 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance985_990',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (985_990 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance2295_2300',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (2295_2300 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance2282_2287',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (2282_2287 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('HBBviewStdDevRadiance2510_2515',OrderedDict([('longname','Radiance standard deviation during hot blackbody view averaged over (2510_2515 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance675_680',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (675_680 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance700_705',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (700_705 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance985_990',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (985_990 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance2295_2300',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (2295_2300 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance2282_2287',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (2282_2287 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('ABBviewStdDevRadiance2510_2515',OrderedDict([('longname','Radiance standard deviation during ambient blackbody view averaged over (2510_2515 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-7')])),
('twoMinuteNoiseEstimateFactor',OrderedDict([('longname','Factor used to convert single-scan noise to two-minute equivalent'),('units', 'count'),('precision', '1E-5')])),
('HBBstable',OrderedDict([('longname','Logical flag indicating whether HBB temperature is stable (true) or not stable (false). Determined using HBBtempDrift and HBBtempDriftLimit.'),('units', 'count'),('precision', '1E0')])),
('SWskyNENacceptable',OrderedDict([('longname','Logical flag indicating whether shortwave channel noise equivalent radiance is acceptable in sky view (true/false). Determined using SWskyNEN and SWskyNENlimit.'),('units', 'count'),('precision', '1E0')])),
('LWskyNENacceptable',OrderedDict([('longname','Logical flag indicating whether longwave channel noise equivalent radiance is acceptable in sky view (true/false). Determined using LWskyNEN and LWskyNENlimit.'),('units', 'count'),('precision', '1E0')])),
('dataAvailable',OrderedDict([('longname','Logical flag indicating whether any data is available at current time (true/false)'),('units', 'count'),('precision', '1E0')])),
('HBBtempDrift',OrderedDict([('longname','The maximum excursion of hot-blackbody temperature over 5 consecutive scenes, centered on the sky view'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('HBBtempDriftLimit',OrderedDict([('longname','Limit applied to HBBtempDrift in determination of HBBstable flag'),('units', 'degrees_Kelvin'),('precision', '1E-3')])),
('LWskyNEN',OrderedDict([('longname','The noise equivalent radiance observed in the longwave channel during a sky view at 1000 cm-1'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-4')])),
('LWskyNENlimit',OrderedDict([('longname','Limit applied to LWskyNEN in determination of LWskyNENacceptable'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-4')])),
('SWskyNEN',OrderedDict([('longname','The noise equivalent radiance observed in the shortwave channel during a sky view at 2500 cm-1'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-6')])),
('SWskyNENlimit',OrderedDict([('longname','Limit applied to SWskyNEN in determination of SWskyNENacceptable'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-6')])),
('LW_HBB_NEN',OrderedDict([('longname','Noise-equivalent Radiance in Hot Blackbody at 1000 cm-1'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-4')])),
('SW_HBB_NEN',OrderedDict([('longname','Noise-equivalent Radiance in Hot Blackbody at 2500 cm-1'),('units', 'mw/(m2 sr cm-1)'),('precision', '1E-6')])),
('SWresponsivity',OrderedDict([('longname','Characteristic value representing overall shortwave channel responsivity'),('units', 'Counts/[mw/(m2 sr cm-1)]'),('precision', '1E-5')])),
('LWresponsivity',OrderedDict([('longname','Characteristic value representing overall longwave channel responsivity'),('units', 'Counts/[mw/(m2 sr cm-1)]'),('precision', '1E-5')])),
('skyViewImaginaryRadiance675_680',OrderedDict([('longname','Imaginary radiance during sky view averaged over (675_680 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-2')])),
('skyViewImaginaryRadiance700_705',OrderedDict([('longname','Imaginary radiance during sky view averaged over (700_705 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-2')])),
('skyViewImaginaryRadiance985_990',OrderedDict([('longname','Imaginary radiance during sky view averaged over (985_990 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-2')])),
('skyViewImaginaryRadiance2295_2300',OrderedDict([('longname','Imaginary radiance during sky view averaged over (2295_2300 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-3')])),
('skyViewImaginaryRadiance2282_2287',OrderedDict([('longname','Imaginary radiance during sky view averaged over (2282_2287 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-3')])),
('skyViewImaginaryRadiance2510_2515',OrderedDict([('longname','Imaginary radiance during sky view averaged over (2510_2515 cm-1)'),('units', 'mW/(m2 sr cm-1)'),('precision', '1E-3')]))])
wavenumberScales = OrderedDict({'ResponsivitySpectralAveragesCh1': 'wnum1',
'ResponsivitySpectralAveragesCh2': 'wnum2',
'SkyVariabilityAveragesCh1': 'wnum3',
'SkyVariabilityAveragesCh2': 'wnum4',
'SkyRadianceSpectralAveragesCh1': 'wnum11',
'SkyRadianceSpectralAveragesCh2': 'wnum12',
'SkyNENch1': 'wnum1',
'SkyNENch2': 'wnum2',
'HBB2minNENestimateNo1ch1': 'wnum1',
'HBB2minNENestimateNo1ch2': 'wnum2',
'HBB2minNENestimateNo2ch1': 'wnum1',
'HBB2minNENestimateNo2ch2': 'wnum2',
'SkyBrightnessTempSpectralAveragesCh1': 'wnum11',
'SkyBrightnessTempSpectralAveragesCh2': 'wnum12'})
return variables, wavenumberScales