##// END OF EJS Templates
Scripts para procesar y graficar datos de MST-ISR-EEJ
Scripts para procesar y graficar datos de MST-ISR-EEJ

File last commit:

r460:c9bf2c97727f
r467:06f5fc41a961
Show More
jasmet30_16april.py
77 lines | 2.9 KiB | text/x-python | PythonLexer
/ schainpy / test / jasmet30_16april.py
Daniel Valdez
se agrega metodos para almacenar en disco las fases...
r460 """
Se debe verficar que el disco de datos se encuentra montado en el sistema
"""
import os, sys
path = os.path.split(os.getcwd())[0]
sys.path.append(path)
from controller import *
desc = "Meteor Experiment Test"
filename = "meteor20130812.xml"
controllerObj = Project()
controllerObj.setup(id = '191', name='meteor_test01', description=desc)
path = '/home/dsuarez/.gvfs/data on 10.10.20.13/Jasmet50'
readUnitConfObj = controllerObj.addReadUnit(datatype='Voltage',
path=path,
startDate='2014/04/16',
endDate='2014/04/16',
startTime='00:00:00',
endTime='23:59:59',
online=0,
walk=1)
opObj11 = readUnitConfObj.addOperation(name='printNumberOfBlock')
procUnitConfObj0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId())
opObj11 = procUnitConfObj0.addOperation(name='Decoder', optype='other')
opObj11 = procUnitConfObj0.addOperation(name='CohInt', optype='other')
opObj11.addParameter(name='n', value='2', format='int')
opObj11 = procUnitConfObj0.addOperation(name='VoltageWriter', optype='other')
opObj11.addParameter(name='path', value='/home/jasmet/jasmet30_abril')
opObj11.addParameter(name='blocksPerFile', value='100', format='int')
opObj11.addParameter(name='profilesPerBlock', value='200', format='int')
"""
########################################### BEACON ##########################################
"""
procUnitConfObjBeacon = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj0.getId())
procUnitConfObjBeacon.addParameter(name='nProfiles', value='200', format='int')
procUnitConfObjBeacon.addParameter(name='nFFTPoints', value='200', format='int')
procUnitConfObjBeacon.addParameter(name='pairsList', value='(2,0),(2,1),(2,3),(2,4)', format='pairsList')
opObj11 = procUnitConfObjBeacon.addOperation(name='IncohInt', optype='other')
opObj11.addParameter(name='n', value='4', format='int')
opObj11 = procUnitConfObjBeacon.addOperation(name='getBeaconSignal')
opObj11 = procUnitConfObjBeacon.addOperation(name='BeaconPhase', optype='other')
opObj11.addParameter(name='id', value='301', format='int')
opObj11.addParameter(name='wintitle', value='Beacon Phase', format='str')
opObj11.addParameter(name='xmin', value='0', format='float')
opObj11.addParameter(name='xmax', value='24', format='float')
opObj11.addParameter(name='ymin', value='-180', format='float')
opObj11.addParameter(name='ymax', value='180', format='float')
opObj11.addParameter(name='figpath', value='/home/jasmet/jasmet30_phase', format='str')
print "Escribiendo el archivo XML"
controllerObj.writeXml(filename)
print "Leyendo el archivo XML"
controllerObj.readXml(filename)
controllerObj.createObjects()
controllerObj.connectObjects()
controllerObj.run()