##// END OF EJS Templates
test para JASMET usando JARS
Daniel Valdez -
r406:2d146a11812f
parent child
Show More
@@ -1,110 +1,110
1 1 import os, sys
2 2
3 3 path = os.path.split(os.getcwd())[0]
4 4 sys.path.append(path)
5 5
6 6 from controller import *
7 7
8 8 desc = "Meteor Experiment Test"
9 9 filename = "meteor20130812.xml"
10 10
11 11 controllerObj = Project()
12 12 controllerObj.setup(id = '191', name='meteor_test01', description=desc)
13 13
14 14 # path = '/home/dsuarez/.gvfs/datos on 10.10.20.2/High_Power_Meteor'
15 15 #
16 16 # path = '/Volumes/FREE_DISK/meteor_data'
17 17 #
18 18 # path = '/Users/dsuarez/Movies/meteor'
19 19
20 20 path = '/home/dsuarez/.gvfs/data on 10.10.20.6/RAW_EXP'
21 21 path = '/home/dsuarez/.gvfs/data on 10.10.20.13/DataJasmet'
22 22
23 23
24 24 readUnitConfObj = controllerObj.addReadUnit(datatype='Voltage',
25 25 path=path,
26 26 startDate='2013/08/01',
27 27 endDate='2013/08/30',
28 28 startTime='00:00:00',
29 29 endTime='23:59:59',
30 30 online=1,
31 31 delay=2,
32 32 walk=1)
33 33
34 34 opObj11 = readUnitConfObj.addOperation(name='printNumberOfBlock')
35 35
36 36 procUnitConfObj0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
37 37
38 38 # opObj11 = procUnitConfObj0.addOperation(name='ProfileSelector', optype='other')
39 39 # opObj11.addParameter(name='profileList',
40 40 # value='1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, \
41 41 # 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, \
42 42 # 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, \
43 43 # 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, \
44 44 # 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, \
45 45 # 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, \
46 46 # 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, \
47 47 # 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, \
48 48 # 191, 193, 195, 197, 199', format='intlist')
49 49
50 50 # opObj11 = procUnitConfObj0.addOperation(name='filterByHeights')
51 51 # opObj11.addParameter(name='window', value='3', format='int')
52 52
53 53 opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
54 54 # opObj11.addParameter(name='code', value='1,1,1,0,1,1,0,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,0,1', format='floatlist')
55 55 # opObj11.addParameter(name='nCode', value='2', format='int')
56 56 # opObj11.addParameter(name='nBaud', value='16', format='int')
57 57
58 58 opObj11 = procUnitConfObj0.addOperation(name='CohInt', optype='other')
59 59 opObj11.addParameter(name='n', value='2', format='int')
60 60
61 61
62 62
63 63
64 64 procUnitConfObj1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj0.getId())
65 65 procUnitConfObj1.addParameter(name='nProfiles', value='400', format='int')
66 66 procUnitConfObj1.addParameter(name='nFFTPoints', value='50', format='int')
67 67
68 68
69 69 opObj11 = procUnitConfObj1.addOperation(name='IncohInt', optype='other')
70 70 opObj11.addParameter(name='n', value='4', format='int')
71 71
72 72
73 73
74 74 opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='other')
75 75 opObj11.addParameter(name='id', value='1000', format='int')
76 76 opObj11.addParameter(name='wintitle', value='JASMET-JARS', format='str')
77 77 opObj11.addParameter(name='timerange', value='300', format='int')
78 opObj11.addParameter(name='zmin', value='15', format='float')
79 opObj11.addParameter(name='zmax', value='40', format='float')
80 opObj11.addParameter(name='xmin', value='18', format='float')
78 # opObj11.addParameter(name='zmin', value='15', format='float')
79 # opObj11.addParameter(name='zmax', value='40', format='float')
80 # opObj11.addParameter(name='xmin', value='18', format='float')
81 81 # opObj11.addParameter(name='xmax', value='', format='float')
82 # opObj11.addParameter(name='show', value='0', format='bool')
83 # opObj11.addParameter(name='save', value='1', format='int')
84 # opObj11.addParameter(name='figpath', value='/home/dsuarez/Pictures/meteor_jasmet_offline', format='str')
82
83 opObj11.addParameter(name='save', value='1', format='int')
84 opObj11.addParameter(name='figpath', value='/home/dsuarez/Pictures/meteor_jasmet_offline', format='str')
85 85 # opObj11.addParameter(name='ftp', value='1', format='int')
86 86 # opObj11.addParameter(name='wr_period', value='60', format='int')
87 87 # opObj11.addParameter(name='exp_code', value='10', format='int')
88 88
89 89
90 90 opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='other')
91 91 opObj11.addParameter(name='id', value='1001', format='int')
92 92 opObj11.addParameter(name='wintitle', value='JASMET-JARS', format='str')
93 opObj11.addParameter(name='zmin', value='15', format='float')
94 opObj11.addParameter(name='zmax', value='40', format='float')
95 # opObj11.addParameter(name='show', value='0', format='bool')
96 # opObj11.addParameter(name='save', value='1', format='int')
97 # opObj11.addParameter(name='figpath', value='/home/dsuarez/Pictures/meteor_jasmet_offline', format='str')
98 # opObj11.addParameter(name='ftp', value='1', format='int')
99 # opObj11.addParameter(name='wr_period', value='60', format='int')
100 # opObj11.addParameter(name='exp_code', value='10', format='int')
93 # opObj11.addParameter(name='zmin', value='5', format='float')
94 # opObj11.addParameter(name='zmax', value='10', format='float')
95
96 opObj11.addParameter(name='save', value='1', format='int')
97 opObj11.addParameter(name='figpath', value='/home/dsuarez/Pictures/meteor_jasmet_offline', format='str')
98 #opObj11.addParameter(name='ftp', value='1', format='int')
99 #opObj11.addParameter(name='wr_period', value='60', format='int')
100 #opObj11.addParameter(name='exp_code', value='10', format='int')
101 101
102 102
103 103 print "Escribiendo el archivo XML"
104 104 controllerObj.writeXml(filename)
105 105 print "Leyendo el archivo XML"
106 106 controllerObj.readXml(filename)
107 107
108 108 controllerObj.createObjects()
109 109 controllerObj.connectObjects()
110 110 controllerObj.run()
General Comments 0
You need to be logged in to leave comments. Login now