##// END OF EJS Templates
Daniel Valdez -
r481:2ab0435b709b
parent child
Show More
@@ -1,326 +1,404
1 import os, sys
1 import os, sys
2
2
3 path = os.path.split(os.getcwd())[0]
3 path = os.path.split(os.getcwd())[0]
4 sys.path.append(path)
4 sys.path.append(path)
5
5
6 from controller import *
6 from controller import *
7
7
8 desc = "AMISR Experiment Test"
8 desc = "AMISR Experiment Test"
9 filename = "amisr.xml"
9 filename = "amisr.xml"
10
10
11 controllerObj = Project()
11 controllerObj = Project()
12
12
13 controllerObj.setup(id = '191', name='test01', description=desc)
13 controllerObj.setup(id = '191', name='test01', description=desc)
14
14
15 path = '/home/administrator/Documents/amisr'
15 path = '/home/administrator/Documents/amisr_bug'
16 path = '/media/administrator/New Volume/amisr'
16 path = '/media/administrator/New Volume/amisr'
17
17 #path = '/media/administrator/Toshiba/data'
18 figpath = '/home/administrator/Pictures/amisr'
18 figpath = '/home/administrator/Pictures/amisr'
19
19
20 figfile0 = 'amisr_rti_beam0.png'
20 figfile0 = 'amisr_rti_beam0.png'
21 figfile1 = 'amisr_rti_beam1.png'
21 figfile1 = 'amisr_rti_beam1.png'
22 figfile2 = 'amisr_rti_beam2.png'
22 figfile2 = 'amisr_rti_beam2.png'
23 figfile3 = 'amisr_rti_beam3.png'
23 figfile3 = 'amisr_rti_beam3.png'
24 figfile4 = 'amisr_rti_beam4.png'
24 figfile4 = 'amisr_rti_beam4.png'
25 figfile5 = 'amisr_rti_beam5.png'
25 figfile5 = 'amisr_rti_beam5.png'
26 figfile6 = 'amisr_rti_beam6.png'
26 figfile6 = 'amisr_rti_beam6.png'
27
27
28 title0 = 'RTI AMISR Beam 0'
28 title0 = 'RTI AMISR Beam 0'
29 title1 = 'RTI AMISR Beam 1'
29 title1 = 'RTI AMISR Beam 1'
30 title2 = 'RTI AMISR Beam 2'
30 title2 = 'RTI AMISR Beam 2'
31 title3 = 'RTI AMISR Beam 3'
31 title3 = 'RTI AMISR Beam 3'
32 title4 = 'RTI AMISR Beam 4'
32 title4 = 'RTI AMISR Beam 4'
33 title5 = 'RTI AMISR Beam 5'
33 title5 = 'RTI AMISR Beam 5'
34 title6 = 'RTI AMISR Beam 6'
34 title6 = 'RTI AMISR Beam 6'
35
35
36 profileStrSelBeam0 = '0,101'
36 profileStrSelBeam0 = '0,101'
37 profileStrSelBeam1 = '614,741'
37 profileStrSelBeam1 = '614,741'
38 profileStrSelBeam2 = '358,485'
38 profileStrSelBeam2 = '358,485'
39 profileStrSelBeam3 = '742,869'
39 profileStrSelBeam3 = '742,869'
40 profileStrSelBeam4 = '230,357'
40 profileStrSelBeam4 = '230,357'
41 profileStrSelBeam5 = '486,613'
41 profileStrSelBeam5 = '486,613'
42 profileStrSelBeam6 = '102,229'
42 profileStrSelBeam6 = '102,229'
43
43
44 nProfiles = '32'
45 nFFTPoints = '32'
46
47
44 readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR',
48 readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR',
45 path=path,
49 path=path,
46 startDate='2014/08/20',
50 startDate='2014/08/18',
47 endDate='2014/08/20',
51 endDate='2014/08/18',
48 startTime='00:00:00',
52 startTime='00:00:00',
49 endTime='23:59:59',
53 endTime='23:59:59',
50 walk=1)
54 walk=1)
51
55
52
56
53
57
54 # procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
58 # procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
55 # opObj11 = procUnitConfObjBeam0.addOperation(name='ProfileSelector', optype='other')
59 # opObj11 = procUnitConfObjBeam0.addOperation(name='ProfileSelector', optype='other')
56 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam0, format='intlist')
60 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam0, format='intlist')
57
61
58 # procUnitConfObjBeam1 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
62 # procUnitConfObjBeam1 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
59 # procUnitConfObjBeam2 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
63 # procUnitConfObjBeam2 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
60 # procUnitConfObjBeam3 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
64 # procUnitConfObjBeam3 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
61 # procUnitConfObjBeam4 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
65 # procUnitConfObjBeam4 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
62 # procUnitConfObjBeam5 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
66 # procUnitConfObjBeam5 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
63 # procUnitConfObjBeam6 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
67 # procUnitConfObjBeam6 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
64
68
65 procUnitAMISR = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
69 # procUnitAMISR = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
66 opObj11 = procUnitAMISR.addOperation(name='BeamSelector', optype='other')
70 # opObj11 = procUnitAMISR.addOperation(name='BeamSelector', optype='other')
71 # opObj11.addParameter(name='beam', value='1', format='int')
72 #
73 # procUnitConfObjBeam1 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam0.getId())
74 #
75 # opObj11 = procUnitConfObjBeam1.addOperation(name='CohInt', optype='other')
76 # opObj11.addParameter(name='n', value='128', format='int')
77 #
78 #
79 # procUnitConfObjSpectraBeam1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam1.getId())
80 # procUnitConfObjSpectraBeam1.addParameter(name='nFFTPoints', value='32', format='int')
81 # procUnitConfObjSpectraBeam1.addParameter(name='nProfiles', value='32', format='int')
82 #
83 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='getNoise')
84 # opObj11.addParameter(name='minHei', value='100', format='float')
85 # opObj11.addParameter(name='maxHei', value='450', format='float')
86 #
87 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='SpectraPlot', optype='other')
88 # opObj11.addParameter(name='id', value='100', format='int')
89 # opObj11.addParameter(name='wintitle', value='SpectraPlot', format='str')
90
91
92
93
94
95
96
97 # ############################# Beam0 #############################
98 procUnitAMISRBeam0 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
99
100 #opObj11 = procUnitAMISRBeam0.addOperation(name='PrintInfo', optype='other')
101
102
103 opObj11 = procUnitAMISRBeam0.addOperation(name='BeamSelector', optype='other')
67 opObj11.addParameter(name='beam', value='1', format='int')
104 opObj11.addParameter(name='beam', value='1', format='int')
68
105
69 procUnitConfObjBeam1 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISR.getId())
106 procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam0.getId())
70
107
71 opObj11 = procUnitConfObjBeam1.addOperation(name='CohInt', optype='other')
108 opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other')
72 opObj11.addParameter(name='n', value='128', format='int')
109 opObj11.addParameter(name='n', value='128', format='int')
73
110
74
111 procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId())
75 procUnitConfObjSpectraBeam1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam1.getId())
112 procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
76 procUnitConfObjSpectraBeam1.addParameter(name='nFFTPoints', value='32', format='int')
113 procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=nProfiles, format='int')
77 procUnitConfObjSpectraBeam1.addParameter(name='nProfiles', value='32', format='int')
78
114
79 opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='getNoise')
115 opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise')
80 opObj11.addParameter(name='minHei', value='100', format='float')
116 opObj11.addParameter(name='minHei', value='100', format='float')
81 opObj11.addParameter(name='maxHei', value='450', format='float')
117 opObj11.addParameter(name='maxHei', value='450', format='float')
82
118
83 opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='SpectraPlot', optype='other')
119 opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='SpectraPlot', optype='other')
84 opObj11.addParameter(name='id', value='100', format='int')
120 opObj11.addParameter(name='id', value='100', format='int')
85 opObj11.addParameter(name='wintitle', value='SpectraPlot', format='str')
121 opObj11.addParameter(name='wintitle', value='AMISR Beam 0', format='str')
86
87
88
89
122
90
123
91
124
92
125
93 # ############################# Beam0 #############################
126 # procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
94 # opObj11 = procUnitConfObjBeam0.addOperation(name='ProfileSelector', optype='other')
127 # opObj11 = procUnitConfObjBeam0.addOperation(name='ProfileSelector', optype='other')
95 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam0, format='intlist')
128 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam0, format='intlist')
96 #
129 #
97 # opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other')
130 # opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other')
98 # opObj11.addParameter(name='n', value='102', format='int')
131 # opObj11.addParameter(name='n', value='102', format='int')
99 #
132 #
100 # procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId())
133 # procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId())
101 # procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value='32', format='int')
134 # procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value='32', format='int')
102 # procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value='32', format='int')
135 # procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value='32', format='int')
103 #
136 #
104 # opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise')
137 # opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise')
105 # opObj11.addParameter(name='minHei', value='100', format='float')
138 # opObj11.addParameter(name='minHei', value='100', format='float')
106 # opObj11.addParameter(name='maxHei', value='450', format='float')
139 # opObj11.addParameter(name='maxHei', value='450', format='float')
107 #
140 #
108 # opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other')
141 # opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other')
109 # opObj11.addParameter(name='id', value='200', format='int')
142 # opObj11.addParameter(name='id', value='100', format='int')
110 # opObj11.addParameter(name='wintitle', value=title0, format='str')
143 # opObj11.addParameter(name='wintitle', value=title0, format='str')
111 # opObj11.addParameter(name='xmin', value='0', format='int')
144 # opObj11.addParameter(name='xmin', value='0', format='int')
112 # opObj11.addParameter(name='xmax', value='18', format='int')
145 # opObj11.addParameter(name='xmax', value='18', format='int')
113 # opObj11.addParameter(name='zmin', value='45', format='int')
146 # opObj11.addParameter(name='zmin', value='45', format='int')
114 # opObj11.addParameter(name='zmax', value='70', format='int')
147 # opObj11.addParameter(name='zmax', value='70', format='int')
115 # #opObj11.addParameter(name='timerange', value='7200', format='int')
148 # #opObj11.addParameter(name='timerange', value='7200', format='int')
116 # opObj11.addParameter(name='showprofile', value='0', format='int')
149 # opObj11.addParameter(name='showprofile', value='0', format='int')
117 # opObj11.addParameter(name='figpath', value=figpath, format='str')
150 # opObj11.addParameter(name='figpath', value=figpath, format='str')
118 # opObj11.addParameter(name='figfile', value=figfile0, format='str')
151 # opObj11.addParameter(name='figfile', value=figfile0, format='str')
119 #
152 #
120 #
153 #
121 #
154 #
122 #
155 #
123 #
156 #
124 # #
157 # #
158
125 # ############################# Beam1 #############################
159 # ############################# Beam1 #############################
126 # opObj11 = procUnitConfObjBeam1.addOperation(name='ProfileSelector', optype='other')
160 procUnitAMISRBeam1 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
127 # #opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam1, format='intlist')
161
128 # opObj11.addParameter(name='beam', value='1', format='int')
162 #opObj11 = procUnitAMISRBeam1.addOperation(name='PrintInfo', optype='other')
129 #
163
130 # opObj11 = procUnitConfObjBeam1.addOperation(name='CohInt', optype='other')
164
131 # opObj11.addParameter(name='n', value='128', format='int')
165 opObj11 = procUnitAMISRBeam1.addOperation(name='BeamSelector', optype='other')
132 #
166 opObj11.addParameter(name='beam', value='1', format='int')
133 # procUnitConfObjSpectraBeam1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam1.getId())
167
134 # procUnitConfObjSpectraBeam1.addParameter(name='nFFTPoints', value='32', format='int')
168 procUnitConfObjBeam1 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam1.getId())
135 # procUnitConfObjSpectraBeam1.addParameter(name='nProfiles', value='32', format='int')
169
136 #
170 opObj11 = procUnitConfObjBeam1.addOperation(name='CohInt', optype='other')
137 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='getNoise')
171 opObj11.addParameter(name='n', value='128', format='int')
138 # opObj11.addParameter(name='minHei', value='100', format='float')
172
139 # opObj11.addParameter(name='maxHei', value='450', format='float')
173 procUnitConfObjSpectraBeam1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam1.getId())
140 #
174 procUnitConfObjSpectraBeam1.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
141 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='SpectraPlot', optype='other')
175 procUnitConfObjSpectraBeam1.addParameter(name='nProfiles', value=nProfiles, format='int')
142 # opObj11.addParameter(name='id', value='100', format='int')
176
143 # opObj11.addParameter(name='wintitle', value='SpectraPlot', format='str')
177 opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='getNoise')
144 # # opObj11.addParameter(name='zmin', value='45', format='int')
178 opObj11.addParameter(name='minHei', value='100', format='float')
145 # # opObj11.addParameter(name='zmax', value='70', format='int')
179 opObj11.addParameter(name='maxHei', value='450', format='float')
146 # # opObj11.addParameter(name='save', value='1', format='bool')
180
147 # # opObj11.addParameter(name='figpath', value='/Users/administrator/Pictures/amisr', format='str')
181 opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='SpectraPlot', optype='other')
182 opObj11.addParameter(name='id', value='101', format='int')
183 opObj11.addParameter(name='wintitle', value='AMISR Beam 1', format='str')
184
148 #
185 #
149 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='RTIPlot', optype='other')
186 # opObj11 = procUnitConfObjSpectraBeam1.addOperation(name='RTIPlot', optype='other')
150 # opObj11.addParameter(name='id', value='201', format='int')
187 # opObj11.addParameter(name='id', value='201', format='int')
151 # opObj11.addParameter(name='wintitle', value=title1, format='str')
188 # opObj11.addParameter(name='wintitle', value=title1, format='str')
152 # #opObj11.addParameter(name='timerange', value='36000', format='int')
189 # #opObj11.addParameter(name='timerange', value='36000', format='int')
153 # opObj11.addParameter(name='xmin', value='0', format='int')
190 # opObj11.addParameter(name='xmin', value='0', format='int')
154 # opObj11.addParameter(name='xmax', value='18', format='int')
191 # opObj11.addParameter(name='xmax', value='18', format='int')
155 # opObj11.addParameter(name='zmin', value='45', format='int')
192 # opObj11.addParameter(name='zmin', value='45', format='int')
156 # opObj11.addParameter(name='zmax', value='70', format='int')
193 # opObj11.addParameter(name='zmax', value='70', format='int')
157 # opObj11.addParameter(name='showprofile', value='0', format='int')
194 # opObj11.addParameter(name='showprofile', value='0', format='int')
158 # opObj11.addParameter(name='figpath', value=figpath, format='str')
195 # opObj11.addParameter(name='figpath', value=figpath, format='str')
159 # opObj11.addParameter(name='figfile', value=figfile1, format='str')
196 # opObj11.addParameter(name='figfile', value=figfile1, format='str')
160 # #
197 # #
161 # #
198 # #
162 # #
199 # #
163 # #
200 # #
164 # #
201 # #
165 # ############################## Beam2 #############################
202 # ############################## Beam2 #############################
166 # opObj11 = procUnitConfObjBeam2.addOperation(name='ProfileSelector', optype='other')
203 procUnitAMISRBeam2 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
167 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam2, format='intlist')
204 opObj11 = procUnitAMISRBeam2.addOperation(name='BeamSelector', optype='other')
168 #
205 opObj11.addParameter(name='beam', value='2', format='int')
169 # opObj11 = procUnitConfObjBeam2.addOperation(name='CohInt', optype='other')
206
170 # opObj11.addParameter(name='n', value='128', format='int')
207 procUnitConfObjBeam2 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam2.getId())
171 #
208
172 # procUnitConfObjSpectraBeam2 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam2.getId())
209 opObj11 = procUnitConfObjBeam2.addOperation(name='CohInt', optype='other')
173 # procUnitConfObjSpectraBeam2.addParameter(name='nFFTPoints', value='32', format='int')
210 opObj11.addParameter(name='n', value='128', format='int')
174 # procUnitConfObjSpectraBeam2.addParameter(name='nProfiles', value='32', format='int')
211
175 #
212
176 # opObj11 = procUnitConfObjSpectraBeam2.addOperation(name='getNoise')
213 procUnitConfObjSpectraBeam2 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam2.getId())
177 # opObj11.addParameter(name='minHei', value='100', format='float')
214 procUnitConfObjSpectraBeam2.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
178 # opObj11.addParameter(name='maxHei', value='450', format='float')
215 procUnitConfObjSpectraBeam2.addParameter(name='nProfiles', value=nProfiles, format='int')
216
217 opObj11 = procUnitConfObjSpectraBeam2.addOperation(name='getNoise')
218 opObj11.addParameter(name='minHei', value='100', format='float')
219 opObj11.addParameter(name='maxHei', value='450', format='float')
220
221 opObj11 = procUnitConfObjSpectraBeam2.addOperation(name='SpectraPlot', optype='other')
222 opObj11.addParameter(name='id', value='102', format='int')
223 opObj11.addParameter(name='wintitle', value='AMISR Beam 2', format='str')
224
179 #
225 #
180 # opObj11 = procUnitConfObjSpectraBeam2.addOperation(name='RTIPlot', optype='other')
226 # opObj11 = procUnitConfObjSpectraBeam2.addOperation(name='RTIPlot', optype='other')
181 # opObj11.addParameter(name='id', value='202', format='int')
227 # opObj11.addParameter(name='id', value='202', format='int')
182 # opObj11.addParameter(name='wintitle', value=title2, format='str')
228 # opObj11.addParameter(name='wintitle', value=title2, format='str')
183 # #opObj11.addParameter(name='timerange', value='18000', format='int')
229 # #opObj11.addParameter(name='timerange', value='18000', format='int')
184 # opObj11.addParameter(name='xmin', value='0', format='int')
230 # opObj11.addParameter(name='xmin', value='0', format='int')
185 # opObj11.addParameter(name='xmax', value='18', format='int')
231 # opObj11.addParameter(name='xmax', value='18', format='int')
186 # opObj11.addParameter(name='zmin', value='45', format='int')
232 # opObj11.addParameter(name='zmin', value='45', format='int')
187 # opObj11.addParameter(name='zmax', value='70', format='int')
233 # opObj11.addParameter(name='zmax', value='70', format='int')
188 # opObj11.addParameter(name='showprofile', value='0', format='int')
234 # opObj11.addParameter(name='showprofile', value='0', format='int')
189 # opObj11.addParameter(name='figpath', value=figpath, format='str')
235 # opObj11.addParameter(name='figpath', value=figpath, format='str')
190 # opObj11.addParameter(name='figfile', value=figfile2, format='str')
236 # opObj11.addParameter(name='figfile', value=figfile2, format='str')
191 #
237 #
192 #
238 #
193 #
239 #
194 #
240 #
195 #
241 #
196 #
242 #
197 # ############################## Beam3 #############################
243 # ############################## Beam3 #############################
198 # opObj11 = procUnitConfObjBeam3.addOperation(name='ProfileSelector', optype='other')
244 procUnitAMISRBeam3 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
199 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam3, format='intlist')
245 opObj11 = procUnitAMISRBeam3.addOperation(name='BeamSelector', optype='other')
200 #
246 opObj11.addParameter(name='beam', value='3', format='int')
201 # opObj11 = procUnitConfObjBeam3.addOperation(name='CohInt', optype='other')
247
202 # opObj11.addParameter(name='n', value='128', format='int')
248 procUnitConfObjBeam3 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam3.getId())
203 #
249
204 # procUnitConfObjSpectraBeam3 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam3.getId())
250 opObj11 = procUnitConfObjBeam3.addOperation(name='CohInt', optype='other')
205 # procUnitConfObjSpectraBeam3.addParameter(name='nFFTPoints', value='32', format='int')
251 opObj11.addParameter(name='n', value='128', format='int')
206 # procUnitConfObjSpectraBeam3.addParameter(name='nProfiles', value='32', format='int')
252
207 #
253
208 # opObj11 = procUnitConfObjSpectraBeam3.addOperation(name='getNoise')
254 procUnitConfObjSpectraBeam3 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam3.getId())
209 # opObj11.addParameter(name='minHei', value='100', format='float')
255 procUnitConfObjSpectraBeam3.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
210 # opObj11.addParameter(name='maxHei', value='450', format='float')
256 procUnitConfObjSpectraBeam3.addParameter(name='nProfiles', value=nProfiles, format='int')
257
258 opObj11 = procUnitConfObjSpectraBeam3.addOperation(name='getNoise')
259 opObj11.addParameter(name='minHei', value='100', format='float')
260 opObj11.addParameter(name='maxHei', value='450', format='float')
261
262 opObj11 = procUnitConfObjSpectraBeam3.addOperation(name='SpectraPlot', optype='other')
263 opObj11.addParameter(name='id', value='103', format='int')
264 opObj11.addParameter(name='wintitle', value='AMISR Beam 3', format='str')
265
211 #
266 #
212 # opObj11 = procUnitConfObjSpectraBeam3.addOperation(name='RTIPlot', optype='other')
267 # opObj11 = procUnitConfObjSpectraBeam3.addOperation(name='RTIPlot', optype='other')
213 # opObj11.addParameter(name='id', value='203', format='int')
268 # opObj11.addParameter(name='id', value='203', format='int')
214 # opObj11.addParameter(name='wintitle', value=title3, format='str')
269 # opObj11.addParameter(name='wintitle', value=title3, format='str')
215 # #opObj11.addParameter(name='timerange', value='18000', format='int')
270 # #opObj11.addParameter(name='timerange', value='18000', format='int')
216 # opObj11.addParameter(name='xmin', value='0', format='int')
271 # opObj11.addParameter(name='xmin', value='0', format='int')
217 # opObj11.addParameter(name='xmax', value='18', format='int')
272 # opObj11.addParameter(name='xmax', value='18', format='int')
218 # opObj11.addParameter(name='zmin', value='45', format='int')
273 # opObj11.addParameter(name='zmin', value='45', format='int')
219 # opObj11.addParameter(name='zmax', value='70', format='int')
274 # opObj11.addParameter(name='zmax', value='70', format='int')
220 # opObj11.addParameter(name='showprofile', value='0', format='int')
275 # opObj11.addParameter(name='showprofile', value='0', format='int')
221 # opObj11.addParameter(name='figpath', value=figpath, format='str')
276 # opObj11.addParameter(name='figpath', value=figpath, format='str')
222 # opObj11.addParameter(name='figfile', value=figfile3, format='str')
277 # opObj11.addParameter(name='figfile', value=figfile3, format='str')
223 # # #
278 # # #
224 # # #
279 # # #
225 # # #
280 # # #
226 # # #
281 # # #
227 # # #
282 # # #
228 # # #
283 # # #
229 # ############################## Beam4 #############################
284 # ############################## Beam4 #############################
230 # opObj11 = procUnitConfObjBeam4.addOperation(name='ProfileSelector', optype='other')
285 procUnitAMISRBeam4 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
231 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam4, format='intlist')
286 opObj11 = procUnitAMISRBeam4.addOperation(name='BeamSelector', optype='other')
232 #
287 opObj11.addParameter(name='beam', value='4', format='int')
233 # opObj11 = procUnitConfObjBeam4.addOperation(name='CohInt', optype='other')
288
234 # opObj11.addParameter(name='n', value='128', format='int')
289 procUnitConfObjBeam4 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam4.getId())
235 #
290
236 # procUnitConfObjSpectraBeam4 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam4.getId())
291 opObj11 = procUnitConfObjBeam4.addOperation(name='CohInt', optype='other')
237 # procUnitConfObjSpectraBeam4.addParameter(name='nFFTPoints', value='32', format='int')
292 opObj11.addParameter(name='n', value='128', format='int')
238 # procUnitConfObjSpectraBeam4.addParameter(name='nProfiles', value='32', format='int')
293
239 #
294
240 # opObj11 = procUnitConfObjSpectraBeam4.addOperation(name='getNoise')
295 procUnitConfObjSpectraBeam4 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam4.getId())
241 # opObj11.addParameter(name='minHei', value='100', format='float')
296 procUnitConfObjSpectraBeam4.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
242 # opObj11.addParameter(name='maxHei', value='450', format='float')
297 procUnitConfObjSpectraBeam4.addParameter(name='nProfiles', value=nProfiles, format='int')
243 #
298
299 opObj11 = procUnitConfObjSpectraBeam4.addOperation(name='getNoise')
300 opObj11.addParameter(name='minHei', value='100', format='float')
301 opObj11.addParameter(name='maxHei', value='450', format='float')
302
303 opObj11 = procUnitConfObjSpectraBeam4.addOperation(name='SpectraPlot', optype='other')
304 opObj11.addParameter(name='id', value='104', format='int')
305 opObj11.addParameter(name='wintitle', value='AMISR Beam 4', format='str')
306
244 # opObj11 = procUnitConfObjSpectraBeam4.addOperation(name='RTIPlot', optype='other')
307 # opObj11 = procUnitConfObjSpectraBeam4.addOperation(name='RTIPlot', optype='other')
245 # opObj11.addParameter(name='id', value='204', format='int')
308 # opObj11.addParameter(name='id', value='204', format='int')
246 # opObj11.addParameter(name='wintitle', value=title4, format='str')
309 # opObj11.addParameter(name='wintitle', value=title4, format='str')
247 # #opObj11.addParameter(name='timerange', value='18000', format='int')
310 # #opObj11.addParameter(name='timerange', value='18000', format='int')
248 # opObj11.addParameter(name='xmin', value='0', format='int')
311 # opObj11.addParameter(name='xmin', value='0', format='int')
249 # opObj11.addParameter(name='xmax', value='18', format='int')
312 # opObj11.addParameter(name='xmax', value='18', format='int')
250 # opObj11.addParameter(name='zmin', value='45', format='int')
313 # opObj11.addParameter(name='zmin', value='45', format='int')
251 # opObj11.addParameter(name='zmax', value='70', format='int')
314 # opObj11.addParameter(name='zmax', value='70', format='int')
252 # opObj11.addParameter(name='showprofile', value='0', format='int')
315 # opObj11.addParameter(name='showprofile', value='0', format='int')
253 # opObj11.addParameter(name='figpath', value=figpath, format='str')
316 # opObj11.addParameter(name='figpath', value=figpath, format='str')
254 # opObj11.addParameter(name='figfile', value=figfile4, format='str')
317 # opObj11.addParameter(name='figfile', value=figfile4, format='str')
255 # # # #
318 # # # #
256 # # # #
319 # # # #
257 # # # #
320 # # # #
258 # # # #
321 # # # #
259 # # # #
322 # # # #
260 # ############################## Beam5 #############################
323 # ############################## Beam5 #############################
261 # opObj11 = procUnitConfObjBeam5.addOperation(name='ProfileSelector', optype='other')
324 procUnitAMISRBeam5 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
262 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam5, format='intlist')
325 opObj11 = procUnitAMISRBeam5.addOperation(name='BeamSelector', optype='other')
263 #
326 opObj11.addParameter(name='beam', value='5', format='int')
264 # opObj11 = procUnitConfObjBeam5.addOperation(name='CohInt', optype='other')
327
265 # opObj11.addParameter(name='n', value='128', format='int')
328 procUnitConfObjBeam5 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam5.getId())
266 #
329
267 # procUnitConfObjSpectraBeam5 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam5.getId())
330 opObj11 = procUnitConfObjBeam5.addOperation(name='CohInt', optype='other')
268 # procUnitConfObjSpectraBeam5.addParameter(name='nFFTPoints', value='32', format='int')
331 opObj11.addParameter(name='n', value='128', format='int')
269 # procUnitConfObjSpectraBeam5.addParameter(name='nProfiles', value='32', format='int')
332
270 #
333 procUnitConfObjSpectraBeam5 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam5.getId())
271 # opObj11 = procUnitConfObjSpectraBeam5.addOperation(name='getNoise')
334 procUnitConfObjSpectraBeam5.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
272 # opObj11.addParameter(name='minHei', value='100', format='float')
335 procUnitConfObjSpectraBeam5.addParameter(name='nProfiles', value=nProfiles, format='int')
273 # opObj11.addParameter(name='maxHei', value='450', format='float')
336
274 #
337 opObj11 = procUnitConfObjSpectraBeam5.addOperation(name='getNoise')
338 opObj11.addParameter(name='minHei', value='100', format='float')
339 opObj11.addParameter(name='maxHei', value='450', format='float')
340
341 opObj11 = procUnitConfObjSpectraBeam5.addOperation(name='SpectraPlot', optype='other')
342 opObj11.addParameter(name='id', value='105', format='int')
343 opObj11.addParameter(name='wintitle', value='AMISR Beam 5', format='str')
344
275 # opObj11 = procUnitConfObjSpectraBeam5.addOperation(name='RTIPlot', optype='other')
345 # opObj11 = procUnitConfObjSpectraBeam5.addOperation(name='RTIPlot', optype='other')
276 # opObj11.addParameter(name='id', value='205', format='int')
346 # opObj11.addParameter(name='id', value='205', format='int')
277 # opObj11.addParameter(name='wintitle', value=title5, format='str')
347 # opObj11.addParameter(name='wintitle', value=title5, format='str')
278 # #opObj11.addParameter(name='timerange', value='18000', format='int')
348 # #opObj11.addParameter(name='timerange', value='18000', format='int')
279 # opObj11.addParameter(name='xmin', value='0', format='int')
349 # opObj11.addParameter(name='xmin', value='0', format='int')
280 # opObj11.addParameter(name='xmax', value='18', format='int')
350 # opObj11.addParameter(name='xmax', value='18', format='int')
281 # opObj11.addParameter(name='zmin', value='45', format='int')
351 # opObj11.addParameter(name='zmin', value='45', format='int')
282 # opObj11.addParameter(name='zmax', value='70', format='int')
352 # opObj11.addParameter(name='zmax', value='70', format='int')
283 # opObj11.addParameter(name='showprofile', value='0', format='int')
353 # opObj11.addParameter(name='showprofile', value='0', format='int')
284 # opObj11.addParameter(name='figpath', value=figpath, format='str')
354 # opObj11.addParameter(name='figpath', value=figpath, format='str')
285 # opObj11.addParameter(name='figfile', value=figfile5, format='str')
355 # opObj11.addParameter(name='figfile', value=figfile5, format='str')
286 # # #
356 # # #
287 # # # #
357 # # # #
288 # # # #
358 # # # #
289 # # # #
359 # # # #
290 # # # #
360 # # # #
291 # ############################## Beam6 #############################
361 # ############################## Beam6 #############################
292 # opObj11 = procUnitConfObjBeam6.addOperation(name='ProfileSelector', optype='other')
362 procUnitAMISRBeam6 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
293 # opObj11.addParameter(name='profileRangeList', value=profileStrSelBeam6, format='intlist')
363 opObj11 = procUnitAMISRBeam6.addOperation(name='BeamSelector', optype='other')
294 #
364 opObj11.addParameter(name='beam', value='6', format='int')
295 # opObj11 = procUnitConfObjBeam6.addOperation(name='CohInt', optype='other')
365
296 # opObj11.addParameter(name='n', value='128', format='int')
366 procUnitConfObjBeam6 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam6.getId())
297 #
367
298 # procUnitConfObjSpectraBeam6 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam6.getId())
368 opObj11 = procUnitConfObjBeam6.addOperation(name='CohInt', optype='other')
299 # procUnitConfObjSpectraBeam6.addParameter(name='nFFTPoints', value='32', format='int')
369 opObj11.addParameter(name='n', value='128', format='int')
300 # procUnitConfObjSpectraBeam6.addParameter(name='nProfiles', value='32', format='int')
370
301 #
371
302 # opObj11 = procUnitConfObjSpectraBeam6.addOperation(name='getNoise')
372 procUnitConfObjSpectraBeam6 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam6.getId())
303 # opObj11.addParameter(name='minHei', value='100', format='float')
373 procUnitConfObjSpectraBeam6.addParameter(name='nFFTPoints', value=nFFTPoints, format='int')
304 # opObj11.addParameter(name='maxHei', value='450', format='float')
374 procUnitConfObjSpectraBeam6.addParameter(name='nProfiles', value=nProfiles, format='int')
375
376 opObj11 = procUnitConfObjSpectraBeam6.addOperation(name='getNoise')
377 opObj11.addParameter(name='minHei', value='100', format='float')
378 opObj11.addParameter(name='maxHei', value='450', format='float')
379
380 opObj11 = procUnitConfObjSpectraBeam6.addOperation(name='SpectraPlot', optype='other')
381 opObj11.addParameter(name='id', value='106', format='int')
382 opObj11.addParameter(name='wintitle', value='AMISR Beam 6', format='str')
305 #
383 #
306 # opObj11 = procUnitConfObjSpectraBeam6.addOperation(name='RTIPlot', optype='other')
384 # opObj11 = procUnitConfObjSpectraBeam6.addOperation(name='RTIPlot', optype='other')
307 # opObj11.addParameter(name='id', value='206', format='int')
385 # opObj11.addParameter(name='id', value='206', format='int')
308 # opObj11.addParameter(name='wintitle', value=title6, format='str')
386 # opObj11.addParameter(name='wintitle', value=title6, format='str')
309 # #opObj11.addParameter(name='timerange', value='18000', format='int')
387 # #opObj11.addParameter(name='timerange', value='18000', format='int')
310 # opObj11.addParameter(name='xmin', value='0', format='int')
388 # opObj11.addParameter(name='xmin', value='0', format='int')
311 # opObj11.addParameter(name='xmax', value='18', format='int')
389 # opObj11.addParameter(name='xmax', value='18', format='int')
312 # opObj11.addParameter(name='zmin', value='45', format='int')
390 # opObj11.addParameter(name='zmin', value='45', format='int')
313 # opObj11.addParameter(name='zmax', value='70', format='int')
391 # opObj11.addParameter(name='zmax', value='70', format='int')
314 # opObj11.addParameter(name='showprofile', value='0', format='int')
392 # opObj11.addParameter(name='showprofile', value='0', format='int')
315 # opObj11.addParameter(name='figpath', value=figpath, format='str')
393 # opObj11.addParameter(name='figpath', value=figpath, format='str')
316 # opObj11.addParameter(name='figfile', value=figfile6, format='str')
394 # opObj11.addParameter(name='figfile', value=figfile6, format='str')
317
395
318
396
319 print "Escribiendo el archivo XML"
397 print "Escribiendo el archivo XML"
320 controllerObj.writeXml(filename)
398 controllerObj.writeXml(filename)
321 print "Leyendo el archivo XML"
399 print "Leyendo el archivo XML"
322 controllerObj.readXml(filename)
400 controllerObj.readXml(filename)
323
401
324 controllerObj.createObjects()
402 controllerObj.createObjects()
325 controllerObj.connectObjects()
403 controllerObj.connectObjects()
326 controllerObj.run()
404 controllerObj.run()
General Comments 0
You need to be logged in to leave comments. Login now