Create file containing cached frame info for large files
I'm working with long simulations (hundreds of millions of timestep, dumped every 1000 timestep) which can give binary data files on the order 1TB. When loading this with import_file
or in GUI, Ovito scans through the file to find frame byte locations so that seeking is fast.
Since ovito sometimes crashes (previosly reported on the forums), this can take a lot of time every time. My current strategy is to save the program state, because the frame info is stored in the scene, which works nice.
But wouldn't it be nice if Ovito can export a file containing this frame info? .trajectory.bin.cached_frames or something, which could be used with ovitos:
import_file("trajectory.bin", columns=..., multiple_frames=True, cached_header=True)
. Default behaviour could be false/true.
If file is opened with ovito GUI, it could look for this file too (with a checkbox for enabling/disabling this).