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