@@ -13,9 +13,9 controllerObj = Project() | |||||
13 |
|
13 | |||
14 | controllerObj.setup(id = '191', name='test01', description=desc) |
|
14 | controllerObj.setup(id = '191', name='test01', description=desc) | |
15 |
|
15 | |||
16 |
path = ' |
|
16 | path = os.path.join(os.environ['HOME'],'Documents/amisr') | |
17 |
|
17 | |||
18 |
figpath = ' |
|
18 | figpath = os.path.join(os.environ['HOME'],'Pictures/amisr') | |
19 |
|
19 | |||
20 | readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR', |
|
20 | readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR', | |
21 | path=path, |
|
21 | path=path, | |
@@ -37,7 +37,7 procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='Voltage', inputId=pro | |||||
37 | #Coherent Integration |
|
37 | #Coherent Integration | |
38 | opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other') |
|
38 | opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other') | |
39 | opObj11.addParameter(name='n', value='128', format='int') |
|
39 | opObj11.addParameter(name='n', value='128', format='int') | |
40 |
#Spectra Unit Processing, getting spectras with nProfiles |
|
40 | #Spectra Unit Processing, getting spectras with nProfiles and nFFTPoints | |
41 | procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId()) |
|
41 | procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObjBeam0.getId()) | |
42 | procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value=32, format='int') |
|
42 | procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value=32, format='int') | |
43 | procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=32, format='int') |
|
43 | procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=32, format='int') | |
@@ -45,23 +45,28 procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=32, format='int | |||||
45 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise') |
|
45 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise') | |
46 | opObj11.addParameter(name='minHei', value='100', format='float') |
|
46 | opObj11.addParameter(name='minHei', value='100', format='float') | |
47 | opObj11.addParameter(name='maxHei', value='450', format='float') |
|
47 | opObj11.addParameter(name='maxHei', value='450', format='float') | |
|
48 | ||||
48 | #SpectraPlot |
|
49 | #SpectraPlot | |
49 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='SpectraPlot', optype='other') |
|
50 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='SpectraPlot', optype='other') | |
50 | opObj11.addParameter(name='id', value='100', format='int') |
|
51 | opObj11.addParameter(name='id', value='100', format='int') | |
51 | opObj11.addParameter(name='wintitle', value='AMISR Beam 0', format='str') |
|
52 | opObj11.addParameter(name='wintitle', value='AMISR Beam 0', format='str') | |
|
53 | ||||
52 | #RTIPlot |
|
54 | #RTIPlot | |
|
55 | title0 = 'RTI AMISR Beam 0' | |||
53 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other') |
|
56 | opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other') | |
54 | opObj11.addParameter(name='id', value='200', format='int') |
|
57 | opObj11.addParameter(name='id', value='200', format='int') | |
55 |
opObj11.addParameter(name='wintitle', value=title |
|
58 | opObj11.addParameter(name='wintitle', value=title0, format='str') | |
|
59 | opObj11.addParameter(name='showprofile', value='0', format='int') | |||
56 | #Setting RTI time using xmin,xmax |
|
60 | #Setting RTI time using xmin,xmax | |
57 | opObj11.addParameter(name='xmin', value='0', format='int') |
|
61 | opObj11.addParameter(name='xmin', value='0', format='int') | |
58 | opObj11.addParameter(name='xmax', value='18', format='int') |
|
62 | opObj11.addParameter(name='xmax', value='18', format='int') | |
59 | #Setting dB range with zmin, zmax |
|
63 | #Setting dB range with zmin, zmax | |
60 | opObj11.addParameter(name='zmin', value='45', format='int') |
|
64 | opObj11.addParameter(name='zmin', value='45', format='int') | |
61 | opObj11.addParameter(name='zmax', value='70', format='int') |
|
65 | opObj11.addParameter(name='zmax', value='70', format='int') | |
62 | opObj11.addParameter(name='showprofile', value='0', format='int') |
|
66 | #Save RTI | |
|
67 | figfile0 = 'amisr_rti_beam0.png' | |||
63 | opObj11.addParameter(name='figpath', value=figpath, format='str') |
|
68 | opObj11.addParameter(name='figpath', value=figpath, format='str') | |
64 |
opObj11.addParameter(name='figfile', value=figfile |
|
69 | opObj11.addParameter(name='figfile', value=figfile0, format='str') | |
65 |
|
70 | |||
66 |
|
71 | |||
67 | print "Escribiendo el archivo XML" |
|
72 | print "Escribiendo el archivo XML" |
@@ -13,9 +13,9 controllerObj = Project() | |||||
13 |
|
13 | |||
14 | controllerObj.setup(id = '191', name='test01', description=desc) |
|
14 | controllerObj.setup(id = '191', name='test01', description=desc) | |
15 |
|
15 | |||
16 | path = '$HOME/Documents/amisr' |
|
16 | path = os.path.join(os.environ['HOME'],'Documents/amisr') #'/home/signalchain/Documents/amisr' | |
17 |
|
17 | |||
18 |
figpath = ' |
|
18 | figpath = os.path.join(os.environ['HOME'],'Pictures/amisr') | |
19 |
|
19 | |||
20 | readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR', |
|
20 | readUnitConfObj = controllerObj.addReadUnit(datatype='AMISR', | |
21 | path=path, |
|
21 | path=path, |
General Comments 0
You need to be logged in to leave comments.
Login now