SPEC2NII-INSERT(1)
π SPEC2NII-INSERT(1) π
okay so bestie, welcome to the User Commands section of the manual, and today's main character is spec2nii insert β she takes a json formatted file and inserts it into an existing NIfTI-MRS file. that's it. that's the whole vibe. slay β¨
πΈ NAME πΈ
spec2nii insert β insert json formatted file into existing NIfTI-MRS file
like. she's a little json-smoosher. she takes your metadata and tucks it into your NIfTI-MRS file. no cap. π«Ά
β¨ SYNOPSIS β¨
spec2nii insert [-h] [--dwelltime DWELLTIME] [-f FILEOUT] [-o OUTDIR]
file json_file
yes the wrapping is ugly, no i will not be fixing it, that's just how the manpage do. π
π OPTIONS π
π POSITIONAL ARGUMENTS π
fileβ the NIFTI-MRS file. the one you're inserting into. she's the host of the party. πjson_fileβ the JSON file to insert. the little guest bringing the metadata. π
π¦ OPTIONAL ARGUMENTS π¦
-h,--helpβ show a help message and exit. classic. iconic. never misses. β--dwelltime DWELLTIMEβ specify a new dwelltime (1/bandwidth,pixdim[4]) value in seconds. yes, seconds. don't come at me with milliseconds, i don't make the rules. π-f FILEOUT,--fileout FILEOUTβ output file base name (default = input file name). so if you don't say anything, she just names it after the input file. lowkey polite of her. πΈ-o OUTDIR,--outdir OUTDIRβ output location (default =.). that's the current directory, bestie. the one you're already standing in. π
π SEE ALSO π
and the whole squad, fr fr β the extended friend group, the group chat, the entire polycule of converters:
spec2nii-auto(1),spec2nii-twix(1),spec2nii-dicom(1),spec2nii-rda(1),spec2nii-uih(1),spec2nii-philips(1),spec2nii-philips_dl(1),spec2nii-philips_dcm(1),spec2nii-ge(1),spec2nii-text(1),spec2nii-jmrui(1),spec2nii-raw(1),spec2nii-bruker(1),spec2nii-varian(1),spec2nii-anon(1),spec2nii-dump(1),spec2nii-extract(1)spec2nii-clean(1)
note that last pair is space-separated not comma-separated in the original and i am NOT touching it. i respect the source material. periodt. π―
okay that's the whole page bestie, go insert some json, you got this π
source/version: this one lives under User Commands and is dated April 2026 β so yeah, she's from the future, she's booked, she's busy, and she's still here helping you merge your metadata. ate and left no crumbs πβ¨π¦
π¦ where this page comes from
- fedora 43: spec2nii 0.8.12-1.fc43 Β· BSD-3-Clause
- fedora 44: spec2nii 0.8.12-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms