##// END OF EJS Templates
Se corrige arreglo del codigo para la decodificacion, el codigo no era el correcto por uns problema de interpretacion del LSB y MSB. Este error fue evidente en el Experimento MST-ISR-EEJ.
Daniel Valdez -
r432:22d78702ca73
parent child
Show More
@@ -269,11 +269,12 class RadarControllerHeader(Header):
269 269 self.nCode = int(numpy.fromfile(fp,'<u4',1))
270 270 self.nBaud = int(numpy.fromfile(fp,'<u4',1))
271 271 self.code = numpy.empty([self.nCode,self.nBaud],dtype='u1')
272 tempList = []
272
273 273 for ic in range(self.nCode):
274 temp = numpy.fromfile(fp,'u1',4*int(numpy.ceil(self.nBaud/32.)))
275 tempList.append(temp)
276 self.code[ic] = numpy.unpackbits(temp[::-1])[-1*self.nBaud:]
274 temp = numpy.fromfile(fp,'u4',int(numpy.ceil(self.nBaud/32.)))
275 for ib in range(self.nBaud-1,-1,-1):
276 self.code[ic,ib] = temp[ib/32]%2
277 temp[ib/32] = temp[ib/32]/2
277 278 self.code = 2.0*self.code - 1.0
278 279
279 280 if self.line5Function == RCfunction.FLIP:
General Comments 0
You need to be logged in to leave comments. Login now