RMF includes functions to help cloning files an extracting parts. They are also exposed through the rmf_slice application.
5 from __future__
import print_function
8 in_name = RMF.get_example_path(
"3U7W.rmf")
9 out_name = RMF._get_temporary_file_path(
"3U7W.out.rmfz")
14 print(
"creating file", out_name)
26 for f
in in_file.get_frames():
27 print(
"cloning frame", f)
28 in_file.set_current_frame(f)
29 out_file.add_frame(in_file.get_name(f), in_file.get_type(f))