Merges 2 or more datasets (runs or scans, ASCII or NeXus) from separate runs of the same simulation, as if they were one longer run:
mcmerge -d OUT [--format McCode|NeXus] DATASET DATASET ...
| Option | Description |
|---|---|
input |
dataset directories, 2 or more |
-d OUT |
output directory, must not exist |
--format FMT |
McCode (ASCII) or NeXus, one of the input formats (default: NeXus if any input is) |
Requires numpy and h5py, and mcpltool for MCPL files.
mcrun -s 1000 and mcrun -s 2000. With MPI, the nodes use Seed to Seed+Nodes-1, so keep the seeds at least that far apart.Monitor_nD) are joined, with p scaled by each run's share of Ncount. In NeXus, the output does not need the mccode_node*.h5 files of MPI runs.Merged_from, has Seed: -1 and no Nodes, and can be merged again.mcpltool. The intensities are only correct with weight_mode=1 (the default) in MCPL_output, see below.mean: yes or mean: no in the monitor headers, or event lists without N in values, i.e. from older McCode versionsp, with a second weight I, with missing mccode_node*.h5 files, or truncated, i.e. with fewer events than N in values (e.g. list=n, use list all)When ASCII and NeXus are merged, what is only in the NeXus data gives a warning instead.
N, not with their intensity.n) in event lists are not unique, as with MPI.weight_mode=2 get too high intensities, as their weights are already divided by Ncount. This is not detected, so a warning is always given.mcpltool refuses are left out with a warning, e.g. if the runs were started with a different path to the instrument executable.BINS of the NeXus data are left out.