@@ -1,11 +1,11 | |||||
1 | import os, sys |
|
1 | import os, sys | |
2 |
|
|
2 | import numpy | |
3 | import datetime |
|
|||
4 |
|
||||
5 | path = os.path.split(os.getcwd())[0] |
|
3 | path = os.path.split(os.getcwd())[0] | |
|
4 | path = os.path.split(path)[0] | |||
|
5 | ||||
6 | sys.path.append(path) |
|
6 | sys.path.append(path) | |
7 |
|
7 | |||
8 |
from controller import |
|
8 | from schainpy.controller import Project | |
9 |
|
9 | |||
10 | desc = "150 km Jicamarca January 2015" |
|
10 | desc = "150 km Jicamarca January 2015" | |
11 | filename = "150km_jicamarca.xml" |
|
11 | filename = "150km_jicamarca.xml" | |
@@ -14,19 +14,21 controllerObj = Project() | |||||
14 |
|
14 | |||
15 | controllerObj.setup(id = '191', name='test01', description=desc) |
|
15 | controllerObj.setup(id = '191', name='test01', description=desc) | |
16 |
|
16 | |||
17 | path = '/home/operaciones/150km_jicamarca_january/RAW_EXP/2015_ISR' |
|
17 | #path = '/home/operaciones/150km_jicamarca_january/RAW_EXP/2015_ISR' | |
18 |
|
|
18 | path = '/media/DATOS/2015_ISR' | |
19 | #path = '/media/New Volume2/DATA/RAW_EXP/2015_ISR' |
|
19 | #path = '/media/New Volume2/DATA/RAW_EXP/2015_ISR' | |
20 |
|
20 | |||
21 | figpath = '/home/operaciones/Pictures/150km_jicamarca_january' |
|
21 | figpath = '/home/operaciones/Pictures/150km_jicamarca_january' | |
22 |
|
22 | |||
|
23 | remotefolder = "/home/wmaster/graficos" | |||
|
24 | ||||
23 | readUnitConfObj = controllerObj.addReadUnit(datatype='VoltageReader', |
|
25 | readUnitConfObj = controllerObj.addReadUnit(datatype='VoltageReader', | |
24 | path=path, |
|
26 | path=path, | |
25 | startDate='2015/01/13', |
|
27 | startDate='2015/01/13', | |
26 | endDate='2015/01/30', |
|
28 | endDate='2015/01/30', | |
27 | startTime='07:55:00', |
|
29 | startTime='07:55:00', | |
28 | endTime='23:59:59', |
|
30 | endTime='23:59:59', | |
29 |
online= |
|
31 | online=0, | |
30 | delay=10, |
|
32 | delay=10, | |
31 | walk=1) |
|
33 | walk=1) | |
32 |
|
34 | |||
@@ -119,8 +121,13 opObj11.addParameter(name='zmin', value='20', format='int') | |||||
119 | opObj11.addParameter(name='zmax', value='80', format='int') |
|
121 | opObj11.addParameter(name='zmax', value='80', format='int') | |
120 | opObj11.addParameter(name='figpath', value=figpath, format='str') |
|
122 | opObj11.addParameter(name='figpath', value=figpath, format='str') | |
121 | opObj11.addParameter(name='exp_code', value='13', format='int') |
|
123 | opObj11.addParameter(name='exp_code', value='13', format='int') | |
122 | opObj11.addParameter(name='figpath', value=figpath, format='str') |
|
|||
123 | opObj11.addParameter(name='wr_period', value='2', format='int') |
|
124 | opObj11.addParameter(name='wr_period', value='2', format='int') | |
|
125 | opObj11.addParameter(name='save', value='1', format='int') | |||
|
126 | opObj11.addParameter(name='figpath', value=figpath) | |||
|
127 | opObj11.addParameter(name='ftp', value='1', format='int') | |||
|
128 | ||||
|
129 | ||||
|
130 | ||||
124 |
|
131 | |||
125 |
|
132 | |||
126 | opObj11 = procUnitConfObj1.addOperation(name='CoherenceMap', optype='other') |
|
133 | opObj11 = procUnitConfObj1.addOperation(name='CoherenceMap', optype='other') | |
@@ -130,8 +137,17 opObj11.addParameter(name='phase_cmap', value='jet', format='str') | |||||
130 |
|
137 | |||
131 | opObj11.addParameter(name='xmin', value='0', format='int') |
|
138 | opObj11.addParameter(name='xmin', value='0', format='int') | |
132 | opObj11.addParameter(name='xmax', value='24', format='int') |
|
139 | opObj11.addParameter(name='xmax', value='24', format='int') | |
133 |
opObj11.addParameter(name=' |
|
140 | opObj11.addParameter(name='exp_code', value='13', format='int') | |
134 | opObj11.addParameter(name='wr_period', value='2', format='int') |
|
141 | opObj11.addParameter(name='wr_period', value='2', format='int') | |
|
142 | opObj11.addParameter(name='save', value='1', format='int') | |||
|
143 | opObj11.addParameter(name='figpath', value=figpath) | |||
|
144 | opObj11.addParameter(name='ftp', value='1', format='int') | |||
|
145 | ||||
|
146 | ||||
|
147 | ||||
|
148 | ||||
|
149 | ||||
|
150 | ||||
135 |
|
151 | |||
136 | # opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='other') |
|
152 | # opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='other') | |
137 | # opObj11.addParameter(name='id', value='3002', format='int') |
|
153 | # opObj11.addParameter(name='id', value='3002', format='int') | |
@@ -146,6 +162,16 opObj11.addParameter(name='wr_period', value='2', format='int') | |||||
146 | # opObj11.addParameter(name='figpath', value=figpath, format='str') |
|
162 | # opObj11.addParameter(name='figpath', value=figpath, format='str') | |
147 | # opObj11.addParameter(name='exp_code', value='13', format='int') |
|
163 | # opObj11.addParameter(name='exp_code', value='13', format='int') | |
148 |
|
164 | |||
|
165 | procUnitConfObj2 = controllerObj.addProcUnit(name='SendToServer') | |||
|
166 | procUnitConfObj2.addParameter(name='server', value='jro-app.igp.gob.pe', format='str') | |||
|
167 | procUnitConfObj2.addParameter(name='username', value='wmaster', format='str') | |||
|
168 | procUnitConfObj2.addParameter(name='password', value='mst2010vhf', format='str') | |||
|
169 | procUnitConfObj2.addParameter(name='localfolder', value=figpath, format='str') | |||
|
170 | procUnitConfObj2.addParameter(name='remotefolder', value=remotefolder, format='str') | |||
|
171 | procUnitConfObj2.addParameter(name='ext', value='.png', format='str') | |||
|
172 | procUnitConfObj2.addParameter(name='period', value=60, format='int') | |||
|
173 | procUnitConfObj2.addParameter(name='protocol', value='ftp', format='str') | |||
|
174 | ||||
149 | print "Escribiendo el archivo XML" |
|
175 | print "Escribiendo el archivo XML" | |
150 | controllerObj.writeXml(filename) |
|
176 | controllerObj.writeXml(filename) | |
151 | print "Leyendo el archivo XML" |
|
177 | print "Leyendo el archivo XML" |
General Comments 0
You need to be logged in to leave comments.
Login now