Project

General

Profile

tropoO3ResultsCSA.py

Maarten Sneep, 10/30/2019 04:52 PM

Download (2.09 KB)

 
1
#!/usr/bin/python
2

    
3
import numpy as np
4

    
5
class TropoO3ResultsCSA(object):
6
    """The result values of the tropospheric Ozone product"""
7
    DataType = 'f4'  # 'float32'
8
    
9
    def __init__(self, latmin, latdelta, latdeltacoarse, latmax, longmin, longdelta, longdeltacoarse, longmax):
10
        self._latCenters = np.arange(latmin + 0.5 * latdelta, latmax, latdelta).astype(self.DataType) 
11
        self._lonCenters = np.arange(longmin + 0.5 * longdelta, longmax, longdelta).astype(self.DataType)
12
        self._stratO3Reference = None
13
        self._stratO3Reference_std = None
14
        self._stratO3Reference_count = None
15
        self._stratO3Reference_flag = None
16
        self._stratO3 = None
17
        self._stratO3_std = None
18
        self._stratO3_count = None
19
        self._tropoO3 = None
20
        self._tropoO3_std = None
21
        self._tropoO3_count = None
22
        self._tropoO3_qavalue=None
23
        self._tropoO3_mixingratio = None
24
        self._tropoO3_mixingratio_std = None
25
        self._totalO3 = None
26
        self._totalO3_std = None
27
        self._totalO3_count = None 
28
        self._centraldays = None
29
        self._centralStart = None
30
        self._centralEnd = None
31
#         self._cloud_fraction = None
32
#         self._cloud_fraction_std = None
33
#         self._cloud_height = None
34
#         self._cloud_height_std = None
35
#         self._cloud_albedo = None
36
#         self._cloud_albedo_std = None
37
        self._surface_albedo = None
38
        self._surface_height = None
39
        self._surface_flag = None
40
        #CSA
41
        self._latCentersCoarse = np.arange(latmin + 0.5 * latdeltacoarse, latmax, latdeltacoarse).astype(self.DataType) 
42
        self._lonCentersCoarse = np.arange(longmin + 0.5 * longdeltacoarse, longmax, longdeltacoarse).astype(self.DataType)
43
        self._upper_tropoO3_flag = None
44
        self._upper_tropoO3_count = None
45
        self._upper_tropoO3_skip = None        
46
        self._upper_tropoO3_mixingratio = None
47
        self._upper_tropoO3_mixingratio_std = None
48
        self._cloud_press_min = None
49
        self._cloud_press_max = None
50
#         self._cloud_press_mean=None
51
        self._iterations = None