##// END OF EJS Templates
scritps for amisr users
Daniel Valdez -
r484:95e114016f1c
parent child
Show More
@@ -0,0 +1,74
1 import os, sys
2
3 path = os.path.split(os.getcwd())[0]
4 sys.path.append(path)
5
6 from controller import *
7
8 desc = "AMISR Experiment"
9
10 filename = "amisr_reader.xml"
11
12 controllerObj = Project()
13
14 controllerObj.setup(id = '191', name='test01', description=desc)
15
16 path = '$HOME/Documents/amisr'
17
18 figpath = '$HOME/Pictures/amisr'
19
20 readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR',
21 path=path,
22 startDate='2014/08/18',
23 endDate='2014/08/18',
24 startTime='00:00:00',
25 endTime='23:59:59',
26 walk=1)
27
28 #AMISR Processing Unit
29 procUnitAMISRBeam0 = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
30
31 #Beam Selector
32 opObj11 = procUnitAMISRBeam0.addOperation(name='BeamSelector', optype='other')
33 opObj11.addParameter(name='beam', value='0', format='int')
34
35 #Voltage Processing Unit
36 procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitAMISRBeam0.getId())
37 #Coherent Integration
38 opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other')
39 opObj11.addParameter(name='n', value='128', format='int')
40 #Spectra Unit Processing, getting spectras with nProfiles y nFFTPoints
41 procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId())
42 procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value=32, format='int')
43 procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=32, format='int')
44 #Noise Estimation
45 opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise')
46 opObj11.addParameter(name='minHei', value='100', format='float')
47 opObj11.addParameter(name='maxHei', value='450', format='float')
48 #SpectraPlot
49 opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='SpectraPlot', optype='other')
50 opObj11.addParameter(name='id', value='100', format='int')
51 opObj11.addParameter(name='wintitle', value='AMISR Beam 0', format='str')
52 #RTIPlot
53 opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other')
54 opObj11.addParameter(name='id', value='200', format='int')
55 opObj11.addParameter(name='wintitle', value=title1, format='str')
56 #Setting RTI time using xmin,xmax
57 opObj11.addParameter(name='xmin', value='0', format='int')
58 opObj11.addParameter(name='xmax', value='18', format='int')
59 #Setting dB range with zmin, zmax
60 opObj11.addParameter(name='zmin', value='45', format='int')
61 opObj11.addParameter(name='zmax', value='70', format='int')
62 opObj11.addParameter(name='showprofile', value='0', format='int')
63 opObj11.addParameter(name='figpath', value=figpath, format='str')
64 opObj11.addParameter(name='figfile', value=figfile1, format='str')
65
66
67 print "Escribiendo el archivo XML"
68 controllerObj.writeXml(filename)
69 print "Leyendo el archivo XML"
70 controllerObj.readXml(filename)
71
72 controllerObj.createObjects()
73 controllerObj.connectObjects()
74 controllerObj.run()
@@ -0,0 +1,39
1 import os, sys
2
3 path = os.path.split(os.getcwd())[0]
4 sys.path.append(path)
5
6 from controller import *
7
8 desc = "AMISR Experiment"
9
10 filename = "amisr_reader.xml"
11
12 controllerObj = Project()
13
14 controllerObj.setup(id = '191', name='test01', description=desc)
15
16 path = '$HOME/Documents/amisr'
17
18 figpath = '$HOME/Pictures/amisr'
19
20 readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR',
21 path=path,
22 startDate='2014/08/18',
23 endDate='2014/08/18',
24 startTime='00:00:00',
25 endTime='23:59:59',
26 walk=1)
27
28 procUnitAMISR = controllerObj.addProcUnit(datatype='AMISR', inputId=readUnitConfObj.getId())
29
30 opObj11 = procUnitAMISR.addOperation(name='PrintInfo', optype='other')
31
32 print "Escribiendo el archivo XML"
33 controllerObj.writeXml(filename)
34 print "Leyendo el archivo XML"
35 controllerObj.readXml(filename)
36
37 controllerObj.createObjects()
38 controllerObj.connectObjects()
39 controllerObj.run()
General Comments 0
You need to be logged in to leave comments. Login now