##// END OF EJS Templates
Bug fixed in RTI and Wind Profiler Plots, when data time exceeded the xmax, the new plot generated was overwriting the first one.
Bug fixed in RTI and Wind Profiler Plots, when data time exceeded the xmax, the new plot generated was overwriting the first one.

File last commit:

r501:0e91e796067a
r509:7fe23f0913c9
Show More
amisr_proc.py
92 lines | 3.6 KiB | text/x-python | PythonLexer
Daniel Valdez
scritps for amisr users
r484 import os, sys
path = os.path.split(os.getcwd())[0]
sys.path.append(path)
from controller import *
desc = "AMISR Experiment"
filename = "amisr_reader.xml"
controllerObj = Project()
controllerObj.setup(id = '191', name='test01', description=desc)
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 path = os.path.join(os.environ['HOME'],'Development/amisr/data')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 path = '/media/administrator/KINGSTON/amisr'
Daniel Valdez
scripts to processing AMISR data
r485 figpath = os.path.join(os.environ['HOME'],'Pictures/amisr')
Daniel Valdez
scritps for amisr users
r484
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 readUnitConfObj = controllerObj.addReadUnit(datatype='AMISRReader',
Daniel Valdez
scritps for amisr users
r484 path=path,
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 startDate='2014/10/21',
endDate='2014/10/21',
Daniel Valdez
scritps for amisr users
r484 startTime='00:00:00',
endTime='23:59:59',
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 walk=1,
timezone='lt')
Daniel Valdez
scritps for amisr users
r484
#AMISR Processing Unit
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 procUnitAMISRBeam0 = controllerObj.addProcUnit(datatype='AMISRProc', inputId=readUnitConfObj.getId())
Daniel Valdez
scritps for amisr users
r484
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 opObj11 = procUnitAMISRBeam0.addOperation(name='PrintInfo', optype='other')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 #Reshaper
opObj11 = procUnitAMISRBeam0.addOperation(name='ProfileToChannels', optype='other')
Daniel Valdez
scritps for amisr users
r484 #Beam Selector
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 #opObj11 = procUnitAMISRBeam0.addOperation(name='BeamSelector', optype='other')
#opObj11.addParameter(name='beam', value='0', format='int')
Daniel Valdez
scritps for amisr users
r484
#Voltage Processing Unit
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 procUnitConfObjBeam0 = controllerObj.addProcUnit(datatype='VoltageProc', inputId=procUnitAMISRBeam0.getId())
Daniel Valdez
scritps for amisr users
r484 #Coherent Integration
opObj11 = procUnitConfObjBeam0.addOperation(name='CohInt', optype='other')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 opObj11.addParameter(name='n', value='8', format='int')
Daniel Valdez
scripts to processing AMISR data
r485 #Spectra Unit Processing, getting spectras with nProfiles and nFFTPoints
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 procUnitConfObjSpectraBeam0 = controllerObj.addProcUnit(datatype='SpectraProc', inputId=procUnitConfObjBeam0.getId())
Daniel Valdez
scritps for amisr users
r484 procUnitConfObjSpectraBeam0.addParameter(name='nFFTPoints', value=32, format='int')
procUnitConfObjSpectraBeam0.addParameter(name='nProfiles', value=32, format='int')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 #RemoveDc
opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='removeDC')
Daniel Valdez
scritps for amisr users
r484 #Noise Estimation
opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='getNoise')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 opObj11.addParameter(name='minHei', value='5', format='float')
opObj11.addParameter(name='maxHei', value='20', format='float')
Daniel Valdez
scripts to processing AMISR data
r485
Daniel Valdez
scritps for amisr users
r484 #SpectraPlot
opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='SpectraPlot', optype='other')
opObj11.addParameter(name='id', value='100', format='int')
opObj11.addParameter(name='wintitle', value='AMISR Beam 0', format='str')
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 opObj11.addParameter(name='zmin', value='30', format='int')
opObj11.addParameter(name='zmax', value='80', format='int')
Daniel Valdez
scripts to processing AMISR data
r485
Daniel Valdez
scritps for amisr users
r484 #RTIPlot
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 #title0 = 'RTI AMISR Beam 0'
#opObj11 = procUnitConfObjSpectraBeam0.addOperation(name='RTIPlot', optype='other')
#opObj11.addParameter(name='id', value='200', format='int')
#opObj11.addParameter(name='wintitle', value=title0, format='str')
#opObj11.addParameter(name='showprofile', value='0', format='int')
##Setting RTI time using xmin,xmax
#opObj11.addParameter(name='xmin', value='15', format='int')
#opObj11.addParameter(name='xmax', value='23', format='int')
Daniel Valdez
scritps for amisr users
r484 #Setting dB range with zmin, zmax
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 #opObj11.addParameter(name='zmin', value='45', format='int')
#opObj11.addParameter(name='zmax', value='70', format='int')
Daniel Valdez
scripts to processing AMISR data
r485 #Save RTI
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 #figfile0 = 'amisr_rti_beam0.png'
#opObj11.addParameter(name='figpath', value=figpath, format='str')
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 #opObj11.addParameter(name='figfile', value=figfile0, format='str')
Daniel Valdez
scritps for amisr users
r484
print "Escribiendo el archivo XML"
controllerObj.writeXml(filename)
print "Leyendo el archivo XML"
controllerObj.readXml(filename)
controllerObj.createObjects()
controllerObj.connectObjects()
controllerObj.run()