@@ -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 |
|
|
|
272 | ||
|
273 | 273 | for ic in range(self.nCode): |
|
274 |
temp = numpy.fromfile(fp,'u |
|
|
275 | tempList.append(temp) | |
|
276 |
self.code[ic] = |
|
|
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