CLI Overview
The primary entry point for passive acoustic mapping:
julia --project=. scripts/run_pam.jl --option=valueTranscranial focusing (geometric and HASA delay estimation, 2D and 3D):
julia --project=. scripts/run_focus.jl --option=value
julia --project=. scripts/compare_focus_estimators.jl --option=valueAll scripts use --name=value arguments. Positional arguments and space-separated forms such as --name value are not supported.
Output Directories
Runs write to an automatically named directory under outputs/. The name includes the date, main run type, medium, source model, grid size, and other identifying parameters. Use --out-dir=/path/to/output when a fixed location is needed.
See Outputs for the files written by PAM and reference focusing runs.
GPU Flags
PAM separates the forward simulator and reconstruction GPU switches:
--kwave-use-gpu=truecontrols k-Wave forward simulation.--recon-use-gpu=truecontrols CUDA.jl ASA/HASA reconstruction.
Older notes may mention --use-gpu; the current PAM runner uses the two explicit flags above.
Coordinate Conventions
PAM coordinates are specified in millimeters relative to the receiver/transducer plane:
- 2D point or anchor coordinates use
depth:lateral. - 3D point or anchor coordinates use
depth:y:z. - Comma-separated values specify multiple coordinates.
Examples:
--sources-mm=30:0
--sources-mm=25:-6,32:0,40:8
--sources-mm=30:2:-1
--anchors-mm=45:0:0Depth is positive into the medium. Lateral coordinates are centered around the transducer/receiver axis.