diff --git a/schainpy/model/data/jroheaderIO.py b/schainpy/model/data/jroheaderIO.py index a869f36..c44bef9 100644 --- a/schainpy/model/data/jroheaderIO.py +++ b/schainpy/model/data/jroheaderIO.py @@ -380,9 +380,9 @@ class RadarControllerHeader(Header): try: if hasattr(fp, 'read'): - self.nCode = numpy.fromfile(fp, ' minHeight, hi < maxHeight)) - - hCorr = hi[ind_hCorr] + + hCorr = hi[ind_hCorr][:len(ind_h)] heights[ind_h] = hCorr #Setting Error diff --git a/schainpy/model/proc/jroproc_voltage.py b/schainpy/model/proc/jroproc_voltage.py index 9f84851..d188999 100644 --- a/schainpy/model/proc/jroproc_voltage.py +++ b/schainpy/model/proc/jroproc_voltage.py @@ -634,6 +634,8 @@ class Decoder(Operation): for i in range(self.__nChannels): for j in range(self.__nProfiles): + print self.datadecTime[i,j,:].shape + print numpy.correlate(data[i,j,:], code_block[j,:], mode='full')[self.nBaud-1:].shape self.datadecTime[i,j,:] = numpy.correlate(data[i,j,:], code_block[j,:], mode='full')[self.nBaud-1:] return self.datadecTime