Multi-run combination¶
flowtracks.combine combines runs from a directory of subfolders into a
single set of Eulerian statistics. Two methods are supported, selectable with
the --method CLI flag:
per_run— bin each run separately and stack on asetdimension (count-weighted averaging)pooled— combine unmasked per-voxel moments across runs exactly, as if all samples were binned together (seedocs/eulerian_statistics.md)
See docs/eulerian_statistics.md in the repository for the full workflow.
The postptv-combine CLI is the installed entry point:
postptv-combine <data_dir> --method pooled
flowtracks.combine - CLI entrypoint for postptv-combine
Vectorized 3D Eulerian binning, ensemble phase-averaging across realizations/subfolders, and Zarr + VTK (ParaView) export.
Usage
postptv-combine [DATA_DIR]
- flowtracks.combine.run_combine(data_dir: str | Path = '.', method: str = 'per_run', grid_params=None, first=1, last=5005, cycletime=5005, deltat=50, base_time=1, min_count=2)[source]¶
Combine realizations into Eulerian/phase-averaged outputs.
method
“per_run” (default, current): bin each realization to a per-run phase grid, then count-weighted ensemble/phase averaging across runs. Per-run
min_countmasking is applied before combining.“pooled”: bin each realization into unmasked per-voxel moments (counts, distinct trajectories, means, centred second moments) and combine them exactly via
flowtracks.eulerian.combine_moments()andflowtracks.eulerian.moment_statistics().min_countapplies to pooled counts, so a bin sparse in one run but sufficient across runs remains valid.