##// END OF EJS Templates
Modificación a kmamisr para ejecutarse en la versión 3, creación de scripts con terminación v3 para difereciarlos, se comentó la linea #720 de JroIO_param.py debido a que reiniciaba la lista de archivos, ocasionando la reescritura del archivo hdf5. Alguna otra modificación aparente es producto de algunas variaciones en espacios al usar la función print()
Modificación a kmamisr para ejecutarse en la versión 3, creación de scripts con terminación v3 para difereciarlos, se comentó la linea #720 de JroIO_param.py debido a que reiniciaba la lista de archivos, ocasionando la reescritura del archivo hdf5. Alguna otra modificación aparente es producto de algunas variaciones en espacios al usar la función print()

File last commit:

r1167:1f521b07c958
r1279:c53fe2a4a291
Show More
jroamisr.py
89 lines | 3.0 KiB | text/x-python | PythonLexer
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 import numpy
Miguel Valdez
Merge with branch schain_julia_drifts from rev. 803 to 995....
r568 import copy
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 class Beam:
def __init__(self):
self.codeList = []
self.azimuthList = []
self.zenithList = []
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 class AMISR:
def __init__(self):
self.flagNoData = True
self.data = None
self.utctime = None
self.type = "AMISR"
#propiedades para compatibilidad con Voltages
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 self.timeZone = 0#timezone like jroheader, difference in minutes between UTC and localtime
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 self.dstFlag = 0#self.dataIn.dstFlag
self.errorCount = 0#self.dataIn.errorCount
self.useLocalTime = True#self.dataIn.useLocalTime
self.radarControllerHeaderObj = None#self.dataIn.radarControllerHeaderObj.copy()
self.systemHeaderObj = None#self.dataIn.systemHeaderObj.copy()
self.channelList = [0]#self.dataIn.channelList esto solo aplica para el caso de AMISR
self.dtype = numpy.dtype([('real','<f4'),('imag','<f4')])
Miguel Valdez
Merge with branch schain_julia_drifts from rev. 803 to 995....
r568 self.flagDiscontinuousBlock = None#self.dataIn.flagDiscontinuousBlock
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 #self.utctime = #self.firstdatatime
self.flagDecodeData = None#self.dataIn.flagDecodeData #asumo q la data esta decodificada
self.flagDeflipData = None#self.dataIn.flagDeflipData #asumo q la data esta sin flip
self.nCohInt = 1#self.dataIn.nCohInt
self.nIncohInt = 1
self.ippSeconds = None#self.dataIn.ippSeconds, segun el filename/Setup/Tufile
self.windowOfFilter = None#self.dataIn.windowOfFilter
self.timeInterval = None#self.dataIn.timeInterval*self.dataOut.nFFTPoints*self.dataOut.nIncohInt
self.frequency = None#self.dataIn.frequency
self.realtime = 0#self.dataIn.realtime
#actualizar en la lectura de datos
self.heightList = None#self.dataIn.heightList
self.nProfiles = None#Number of samples or nFFTPoints
self.nRecords = None
self.nBeams = None
self.nBaud = None#self.dataIn.nBaud
self.nCode = None#self.dataIn.nCode
self.code = None#self.dataIn.code
#consideracion para los Beams
self.beamCodeDict = None
self.beamRangeDict = None
Daniel Valdez
Filtering AMISR files for Datetime Range...
r499 self.beamcode = None
self.azimuth = None
self.zenith = None
self.gain = None
Daniel Valdez
Bug fixed: AMISR Reader filling with zeros at the begining of the processing....
r497 self.npulseByFrame = None
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 self.profileIndex = None
self.beam = Beam()
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 def copy(self, inputObj=None):
Miguel Valdez
Bug fixed: Padding decode data with zeros at the first heights was eliminated.
r611 if inputObj is None:
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 return copy.deepcopy(self)
George Yong
Python 2to3, Spectra (all operations) working
r1167 for key in list(inputObj.__dict__.keys()):
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491 self.__dict__[key] = inputObj.__dict__[key]
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501
def getNHeights(self):
return len(self.heightList)
Daniel Valdez
AMISR modules to read hdf5 files and link to SignalChain Objects...
r491
def isEmpty(self):
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 return self.flagNoData
Miguel Valdez
Signal Chain GUI updated:...
r587
def getTimeInterval(self):
timeInterval = self.ippSeconds * self.nCohInt
return timeInterval
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501
Miguel Valdez
Signal Chain GUI updated:...
r587 timeInterval = property(getTimeInterval, "I'm the 'timeInterval' property")
Daniel Valdez
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
r501 nHeights = property(getNHeights, "I'm the 'nHeights' property.")