def restore(self): """ restore the state of the bufr file that recorded by a previous call to `ncepbufr.open.checkpoint`. """ _bufrlib.rewnbf(self.lunit,1)
def restore(self): """ restore the state of the bufr file that recorded by a previous call to `ncepbufr.open.checkpoint`. """ _bufrlib.rewnbf(self.lunit, 1)
def checkpoint(self): """ mark where we are in the bufr file, and rewind the file. The `ncepbufr.open.restore` method can then be used to go back to this state. """ _bufrlib.rewnbf(self.lunit,0) self.msg_counter = 0 self.msg_type = None self.msg_date = None self.receipt_time = None self.subsets = None
def checkpoint(self): """ mark where we are in the bufr file, and rewind the file. The `ncepbufr.open.restore` method can then be used to go back to this state. """ _bufrlib.rewnbf(self.lunit, 0) self.msg_counter = 0 self.msg_type = None self.msg_date = None self.receipt_time = None self.subsets = None