Skip to main content

CLI quickstart

Inspect a file

openkspace info scan.h5 # print header metadata
openkspace probe scan.h5 # scan acquisition index ranges

Reconstruct (defaults)

openkspace recon scan.h5

By default this writes PNGs of every slice into recon_out/ using the IFFT + root-sum-of-squares strategy and all calibration passes auto-detected from the data.

Choose a reconstruction strategy

openkspace recon scan.h5 --strategy ifft-rss
openkspace recon scan.h5 --strategy grappa
openkspace recon scan.h5 --strategy sense --sense-maps espirit
openkspace recon scan.h5 --strategy cs

Common options

openkspace recon scan.h5 \
--out my_out/ \
--slice 12 \
--strategy sense --sense-maps walsh \
--sense-gfactor --write-gfactor \
--format both
FlagEffect
--out <dir>Output directory (default recon_out/)
--slice <N>Reconstruct one slice only
--fft auto|2d|3dFFT mode (default auto)
--format png|nifti|bothOutput format (default png)
--no-prewhitenSkip noise pre-whitening
--no-phasecorrSkip navigator phase correction
--no-oversampling-removalKeep 2x kx samples
--no-partial-fourierSkip homodyne
--no-cropKeep full oversampled FOV
--pct-low <f> --pct-high <f>Contrast window percentiles

See the CLI reference for the full strategy-specific flag set (GRAPPA kernel sizes, SENSE map sources, CS regulariser, etc.).