예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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
예제 #4
0
 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