コード例 #1
0
ファイル: __init__.py プロジェクト: chris4540/py-ncepbufr
 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
ファイル: __init__.py プロジェクト: chris4540/py-ncepbufr
 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