##// END OF EJS Templates
AMISR Reader integration with Signal Chain Blocks, this time just only for Voltages to Profile Selection and Plotting Scope(Power,IQ) and Power Profile(dB). There is thwo python scripts as experiment's test.
AMISR Reader integration with Signal Chain Blocks, this time just only for Voltages to Profile Selection and Plotting Scope(Power,IQ) and Power Profile(dB). There is thwo python scripts as experiment's test.

File last commit:

r462:8e6542235c80
r474:e3c42f4268a9
Show More
Imaging_Proc.py
82 lines | 3.3 KiB | text/x-python | PythonLexer
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 import os, sys
path = os.path.split(os.getcwd())[0]
sys.path.append(path)
from controller import *
desc = "EWDrifts+Imaging+Faraday Experiment"
filename = "imaging_proc.xml"
controllerObj = Project()
controllerObj.setup(id = '191', name='test01', description=desc)
path = '/remote'
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 path = '/home/dsuarez/.gvfs/data on 10.10.20.13/EW_Faraday_imaging/d2013270'
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 path = '/home/dsuarez/.gvfs/data on 10.10.20.13/EW_Faraday_imaging'
readUnitConfObj = controllerObj.addReadUnit(datatype='Voltage',
path=path,
Daniel Valdez
procesado del experimento Imaging Abril 2014.
r462 startDate='2014/04/21',
endDate='2014/04/30',
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 startTime='16:00:00',
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 endTime='23:59:59',
Daniel Valdez
procesado del experimento Imaging Abril 2014.
r462 delay=5,
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 online=1,
walk=1)
opObj11 = readUnitConfObj.addOperation(name='printNumberOfBlock')
######################## IMAGING #############################################
procUnitConfObj0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
#
opObj11 = procUnitConfObj0.addOperation(name='ProfileSelector', optype='other')
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 opObj11.addParameter(name='profileRangeList', value='0,39', format='intlist')
# opObj11.addParameter(name='profileRangeList', value='40,167', format='intlist')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 # opObj11 = procUnitConfObj0.addOperation(name='filterByHeights')
# opObj11.addParameter(name='window', value='4', format='int')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393
opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 # opObj11.addParameter(name='code', value='1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0', format='floatlist')
# opObj11.addParameter(name='nCode', value='2', format='int')
# opObj11.addParameter(name='nBaud', value='9', format='int')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393
#opObj11 = procUnitConfObj0.addOperation(name='selectHeights')
#opObj11.addParameter(name='maxHei', value='300', format='float')
#opObj11 = procUnitConfObj0.addOperation(name='selectHeights')
#opObj11.addParameter(name='minHei', value='300', format='float')
#opObj11.addParameter(name='maxHei', value='600', format='float')
procUnitConfObj1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj0.getId())
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 procUnitConfObj1.addParameter(name='nProfiles', value='40', format='int')
procUnitConfObj1.addParameter(name='nFFTPoints', value='40', format='int')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 procUnitConfObj1.addParameter(name='pairsList', value='(0,1),(0,2),(0,3),(0,4),(0,5),(0,6),(0,7), \
(1,2),(1,3),(1,4),(1,5),(1,6),(1,7), \
(2,3),(2,4),(2,5),(2,6),(2,7), \
(3,4),(3,5),(3,6),(3,7), \
(4,5),(4,6),(4,7), \
(5,6),(5,7), \
(6,7)', \
Daniel Valdez
procesado del experimento Imaging Abril 2014.
r462 format='pairsList')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393
opObj11 = procUnitConfObj1.addOperation(name='IncohInt', optype='other')
Daniel Valdez
Scripts para procesamiento y ploteo del Experimento Imaging+ISR Setiembre 2013
r422 opObj11.addParameter(name='timeInterval', value='5', format='float')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393
opObj11 = procUnitConfObj1.addOperation(name='SpectraWriter', optype='other')
Daniel Valdez
procesado del experimento Imaging Abril 2014.
r462 opObj11.addParameter(name='path', value='/media/datos/IMAGING/IMAGING/abril2014')
Daniel Valdez
Scripts para procesamiento y generacion de graficos para Imaging
r393 opObj11.addParameter(name='blocksPerFile', value='10', format='int')
print "Escribiendo el archivo XML"
controllerObj.writeXml(filename)
print "Leyendo el archivo XML"
controllerObj.readXml(filename)
controllerObj.createObjects()
controllerObj.connectObjects()
controllerObj.run()