@@ -1581,7 +1581,8 class JRODataWriter(Reader): | |||||
1581 |
|
1581 | |||
1582 | return 1 |
|
1582 | return 1 | |
1583 |
|
1583 | |||
1584 | def run(self, dataOut, path, blocksPerFile=100, profilesPerBlock=64, set=None, ext=None, datatype=4, **kwargs): |
|
1584 | def run(self, dataOut, path, blocksPerFile=100, profilesPerBlock=64, set=None, ext=None, datatype=4, flagManualHeader = False,**kwargs): | |
|
1585 | self.flagManualHeader = flagManualHeader | |||
1585 |
|
1586 | |||
1586 | if not(self.isConfig): |
|
1587 | if not(self.isConfig): | |
1587 |
|
1588 |
@@ -440,7 +440,7 class SpectraWriter(JRODataWriter, Operation): | |||||
440 |
|
440 | |||
441 | # #self.processingHeaderObj.dataBlocksPerFile) |
|
441 | # #self.processingHeaderObj.dataBlocksPerFile) | |
442 | if self.hasAllDataInBuffer(): |
|
442 | if self.hasAllDataInBuffer(): | |
443 |
|
|
443 | self.setFirstHeader() | |
444 | self.writeNextBlock() |
|
444 | self.writeNextBlock() | |
445 |
|
445 | |||
446 | def __getBlockSize(self): |
|
446 | def __getBlockSize(self): | |
@@ -522,6 +522,16 class SpectraWriter(JRODataWriter, Operation): | |||||
522 | self.processingHeaderObj.nHeights = self.dataOut.nHeights |
|
522 | self.processingHeaderObj.nHeights = self.dataOut.nHeights | |
523 | self.processingHeaderObj.samplesWin = self.dataOut.nHeights |
|
523 | self.processingHeaderObj.samplesWin = self.dataOut.nHeights | |
524 |
|
524 | |||
|
525 | if self.flagManualHeader is True: | |||
|
526 | HeaderList1D = ["nCode" , "nBaud", "codeType", "txA", "txB", "nTx"] | |||
|
527 | for attr_ in HeaderList1D: # pass dataOut variables to radarControllerHeaderObj for manual header | |||
|
528 | try: setattr(self.radarControllerHeaderObj, attr_, getattr(self.dataOut,attr_)) | |||
|
529 | except: pass | |||
|
530 | ||||
|
531 | if self.dataOut.code is not None: | |||
|
532 | self.radarControllerHeaderObj.code = numpy.array(self.dataOut.code) | |||
|
533 | ||||
|
534 | ||||
525 | self.processingHeaderObj.processFlags = self.getProcessFlags() |
|
535 | self.processingHeaderObj.processFlags = self.getProcessFlags() | |
526 |
|
536 | |||
527 | self.setBasicHeader() |
|
537 | self.setBasicHeader() |
General Comments 0
You need to be logged in to leave comments.
Login now