##// END OF EJS Templates
Kudeki's experiment modified by M. Urco
Miguel Valdez -
r531:39faf4fd48e1
parent child
Show More
@@ -1,145 +1,148
1 1 import os, sys
2 2 #import timeit
3 3 import datetime
4 4
5 5 path = os.path.split(os.getcwd())[0]
6 6 sys.path.append(path)
7 7
8 8 from controller import *
9 9
10 10 desc = "150 km Jicamarca January 2015"
11 11 filename = "150km_jicamarca.xml"
12 12
13 13 controllerObj = Project()
14 14
15 15 controllerObj.setup(id = '191', name='test01', description=desc)
16 16
17 path = '/home/operaciones/150km_jicamarca_january/RAW_EXP/2015_ISR'
17 path = '/Volumes/DATA/RAW_EXP/2015_ISR'
18 18
19 19 figpath = '/home/operaciones/Pictures/150km_jicamarca_january'
20 20
21 21 readUnitConfObj = controllerObj.addReadUnit(datatype='VoltageReader',
22 22 path=path,
23 23 startDate='2015/01/13',
24 24 endDate='2015/01/30',
25 startTime='08:55:00',
25 startTime='15:00:00',
26 26 endTime='23:59:59',
27 online=1,
27 online=0,
28 28 delay=10,
29 29 walk=1,
30 30 getblock=1)
31 31
32 32 opObj11 = readUnitConfObj.addOperation(name='printNumberOfBlock')
33 33
34 34 procUnitConfObj0 = controllerObj.addProcUnit(datatype='VoltageProc', inputId=readUnitConfObj.getId())
35 35
36 36 # opObj11 = procUnitConfObj0.addOperation(name='ProfileSelector', optype='other')
37 37 # opObj11.addParameter(name='profileRangeList', value='0,20', format='intlist')
38 38
39 39
40 40 opObj11 = procUnitConfObj0.addOperation(name='ProfileSelector', optype='other')
41 41 # profileIndex = '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'
42 42 # opObj11.addParameter(name='profileList', value=profileIndex, format='intlist')
43 43 opObj11.addParameter(name='profileRangeList', value='0,20', format='intlist')
44 44 opObj11.addParameter(name='byblock', value='1', format='bool')
45 45
46 46 # opObj11 = procUnitConfObjISR.addOperation(name='ProfileConcat', optype='other')
47 47 # opObj11.addParameter(name='m', value='5', format='int')
48 48
49 49 opObj11 = procUnitConfObj0.addOperation(name='Reshaper', optype='other') #Esta Operacion opera sobre bloques y reemplaza el ProfileConcat que opera sobre perfiles
50 50 opObj11.addParameter(name='shape', value='8,84,140', format='intlist') # shape = (nchannels, nprofiles, nhieghts)
51 51
52 52
53 53 opObj11 = procUnitConfObj0.addOperation(name='ProfileSelector', optype='other')
54 54 # profileIndex = '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'
55 55 # opObj11.addParameter(name='profileList', value=profileIndex, format='intlist')
56 56 opObj11.addParameter(name='profileRangeList', value='1,80', format='intlist')
57 57 opObj11.addParameter(name='byblock', value='1', format='bool')
58 58
59 59
60 60 # opObj11 = procUnitConfObj0.addOperation(name='filterByHeights')
61 61 # opObj11.addParameter(name='window', value='1', format='int')
62 62 # opObj11.addParameter(name='axis', value='2', format='int')
63 63
64 64 cod7barker="1,1,1,-1,-1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,1,-1,1,-1,-1,-1,1,1,-1,1"
65 65 # 1,1,1,-1,-1,1,-1
66 66 #-1,-1,-1,1,1,-1,1
67 67 opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
68 68 opObj11.addParameter(name='code', value=cod7barker, format='floatlist')
69 69 opObj11.addParameter(name='nCode', value='4', format='int')
70 70 opObj11.addParameter(name='nBaud', value='7', format='int')
71 71 opObj11.addParameter(name='mode', value='3', format='int')
72 72 opObj11.addParameter(name='times', value='20', format='int')
73 73 opObj11.addParameter(name='osamp', value='1', format='int')
74 74
75
75 opObj11 = procUnitConfObj0.addOperation(name='deFlip')
76 opObj11.addParameter(name='channelList', value='1,3,5,7', format='intlist')
77
76 78 # cod7barker="1,1,1,-1,-1,1,-1"
77 79 # opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
78 80 # opObj11.addParameter(name='code', value=cod7barker, format='intlist')
79 81 # opObj11.addParameter(name='nCode', value='1', format='int')
80 82 # opObj11.addParameter(name='nBaud', value='7', format='int')
81 83
82 84 # opObj11 = procUnitConfObj0.addOperation(name='Scope', optype='other')
83 85 # opObj11.addParameter(name='id', value='10', format='int')
84 86 # opObj11.addParameter(name='wintitle', value='Voltage', format='str')
85 87
86 88
87 89
88 90 # opObj11.addParameter(name='zmin', value='40', format='int')
89 91 # opObj11.addParameter(name='zmax', value='90', format='int')
90 92
91 93
92 94
93 95 #opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
94 96
95 97 procUnitConfObj1 = controllerObj.addProcUnit(datatype='SpectraProc', inputId=procUnitConfObj0.getId())
96 98 procUnitConfObj1.addParameter(name='nFFTPoints', value='80', format='int')
97 99 procUnitConfObj1.addParameter(name='nProfiles', value='80', format='int')
98 #
100 procUnitConfObj1.addParameter(name='pairsList', value='(0,1),(2,3),(4,5),(6,7)', format='pairsList')
101
99 102 opObj11 = procUnitConfObj1.addOperation(name='IncohInt', optype='other')
100 103 opObj11.addParameter(name='timeInterval', value='10', format='float')
101 104 #
102 105 opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='other')
103 106 opObj11.addParameter(name='id', value='2004', format='int')
104 107 opObj11.addParameter(name='wintitle', value='150km_Jicamarca_ShortPulse', format='str')
105 108 #opObj11.addParameter(name='channelList', value='0,1,2,3,45', format='intlist')
106 109 #opObj11.addParameter(name='zmin', value='15', format='int')
107 110 # opObj11.addParameter(name='zmax', value='45', format='int')
108 opObj11.addParameter(name='figpath', value=figpath, format='str')
109 opObj11.addParameter(name='exp_code', value='13', format='int')
111 # opObj11.addParameter(name='figpath', value=figpath, format='str')
112 # opObj11.addParameter(name='exp_code', value='13', format='int')
110 113
111 114
112 115 opObj11 = procUnitConfObj1.addOperation(name='CrossSpectraPlot', optype='other')
113 116 opObj11.addParameter(name='id', value='2005', format='int')
114 117 opObj11.addParameter(name='wintitle', value='CrossSpectraPlot_ShortPulse', format='str')
115 opObj11.addParameter(name='figpath', value=figpath, format='str')
116 opObj11.addParameter(name='exp_code', value='13', format='int')
118 # opObj11.addParameter(name='figpath', value=figpath, format='str')
119 # opObj11.addParameter(name='exp_code', value='13', format='int')
117 120
118 121
119 122
120 123 opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='other')
121 124 opObj11.addParameter(name='id', value='3005', format='int')
122 125 opObj11.addParameter(name='wintitle', value='150km_Jicamarca_ShortPulse', format='str')
123 126 # opObj11.addParameter(name='xmin', value='20.5', format='float')
124 127 # opObj11.addParameter(name='xmax', value='24', format='float')
125 128 # opObj11.addParameter(name='zmin', value='15', format='int')
126 129 # opObj11.addParameter(name='zmax', value='45', format='int')
127 130 #opObj11.addParameter(name='channelList', value='0,1,2,3', format='intlist')
128 131 #opObj11.addParameter(name='channelList', value='0,1,2,3,4,5,6,7', format='intlist')
129 132 opObj11.addParameter(name='showprofile', value='0', format='int')
130 opObj11.addParameter(name='figpath', value=figpath, format='str')
131 opObj11.addParameter(name='exp_code', value='13', format='int')
133 # opObj11.addParameter(name='figpath', value=figpath, format='str')
134 # opObj11.addParameter(name='exp_code', value='13', format='int')
132 135
133 136
134 137
135 138 print "Escribiendo el archivo XML"
136 139 controllerObj.writeXml(filename)
137 140 print "Leyendo el archivo XML"
138 141 controllerObj.readXml(filename)
139 142
140 143 controllerObj.createObjects()
141 144 controllerObj.connectObjects()
142 145
143 146 #timeit.timeit('controllerObj.run()', number=2)
144 147
145 148 controllerObj.run() No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now