Hello,
Some (long) time ago I wrote a Matlab script to do just that (see attachment). If you use Matlab you can probably use it directly, or you can translate it to some other language.
Suppose you have two files named "part_1.slf" and "part_2.slf", then you call the script with
slfcat('part_*.slf','all_parts.slf')
It should work.
I haven't used it in a while though. After some time using this I realized that this approach is inconvenient for a number of reasons.
The first one is that if your simulation produces large files, the merged result will be even larger. And managing two large files is easier than managing one humongous file. I say this because I got to the point where I had about 15 files per simulation.
The second reason is that if one of them gets corrupted, you only need to simulate that part again. If the merged result gets corrupted, then it will be hard to restore it.
Of course, if you use BlueKenue to extract averages, for example, then you have to merge them. This is the reason I made the script.
Use it as it best fits you, but I wouldn't recommend deleting the "part_*.slf" after they are merged :)
(renamed the script from slfcat.m to slfcat.txt because the forum doesn't allow certain extensions)
File Attachment:
File Name:
slfcat.txtFile Size: 5 KB