blimpy/waterfall.py
def __update_header(self):
        """ Updates the header information from the original file to the selection.
        """

        #Updating frequency of first channel from selection
        if self.header[b'foff'] < 0:
            self.header[b'fch1'] = self.container.f_stop
        else:
            self.header[b'fch1'] = self.container.f_start

        #Updating number of coarse channels.
        self.header[b'nchans'] = self.container.selection_shape[self.freq_axis]

        #Updating time stamp for first time bin from selection
        self.header[b'tstart'] = self.container.populate_timestamps(update_header=True)
def __update_header(self):
        #Updating frequency of first channel from selection
        if self.header[b'foff'] < 0:
            self.header[b'fch1'] = self.container.f_stop
        else:
            self.header[b'fch1'] = self.container.f_start

        #Updating number of coarse channels.
        self.header[b'nchans'] = self.container.selection_shape[self.freq_axis]

        #Updating time stamp for first time bin from selection
        self.header[b'tstart'] = self.container.populate_timestamps(update_header=True)
def __update_header ( self ) : #Updating frequency of first channel from selection if self . header [ b'foff' ] < 0 : self . header [ b'fch1' ] = self . container . f_stop else : self . header [ b'fch1' ] = self . container . f_start #Updating number of coarse channels. self . header [ b'nchans' ] = self . container . selection_shape [ self . freq_axis ] #Updating time stamp for first time bin from selection self . header [ b'tstart' ] = self . container . populate_timestamps ( update_header = True )
Updates the header information from the original file to the selection.
Updates the header information from the original file to the selection .