''' Created on Jul 3, 2014 @author: roj-idl71 ''' import os from schainpy.model.data.jrodata import Voltage from schainpy.model.proc.jroproc_base import ProcessingUnit, Operation class Reader(ProcessingUnit): ''' classdocs ''' def __init__(self): ''' Constructor ''' ProcessingUnit.__init__(self) #Is really necessary create the output object in the initializer self.dataOut = Voltage() def fillJROHeader(*args): self.dataOut.radarControllerHeaderObj = RadarControllerHeader(ippKm=10e5, txA=0, txB=0, nWindows=1, nHeights=self.__nSamples, firstHeight=self.__firstHeigth, deltaHeight=self.__deltaHeigth, codeType=self.__codeType, nCode=self.__nCode, nBaud=self.__nBaud, code = self.__code) self.dataOut.systemHeaderObj = SystemHeader(nSamples=self.__nSamples, nProfiles=nProfiles, nChannels=len(self.__channelList), adcResolution=14) self.dataOut.data = None self.dataOut.dtype = numpy.dtype([('real','