SPEC2NII-PHILIPS(1)

πŸ“¦
version 0.8.12 Β· 2 versions
, in fedora 43, fedora 44

✨ spec2nii-philips(1) β€” bestie edition ✨

okay so. this is the spec2nii philips manual page, and it's literally your girl for converting files out of the Philips spar/sdat format. if that's your vibe, you're in the right place. pull up a chair, grab a strawberry πŸ“, we're doing this.


🌸 NAME 🌸

spec2nii philips β€” convert from Philips spar/sdat format

like. that's the whole job. it takes your Philips spar/sdat situation and turns it into something else. iconic behavior honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

spec2nii philips [-h] [-t TAGS [TAGS ...]]  [-s SHAPE [SHAPE ...]]
[--special SPECIAL] [-j] [-f FILEOUT] [-o OUTDIR] [--nifti1]
[--override_nucleus OVERRIDE_NUCLEUS [OVERRIDE_NUCLEUS ...]]
[--override_frequency OVERRIDE_FREQUENCY [OVERRIDE_FREQUENCY ...]]
[--override_dwelltime OVERRIDE_DWELLTIME] [--anon] [--verbose] sdat spar

okay yes it's a lot of brackets, don't panic, we're gonna go through every single one together. that's what besties do πŸ’…


πŸŽ€ OPTIONS πŸŽ€

πŸ‘‘ POSITIONAL ARGUMENTS πŸ‘‘

  • sdat β€” your SDAT file. yes you have to give it. it's not optional, it's the main character of this whole operation.
  • spar β€” your SPAR file. also required, also not negotiable. the duo goes together, fr fr.

πŸ’– OPTIONAL ARGUMENTS πŸ’–

  • -h, --help β€” show a help message and exit. the classic. when in doubt, ask for help, we love a self-aware king.
  • -t TAGS [TAGS ...], --tags TAGS [TAGS ...] β€” specify the NIfTI MRS tags used for the higher (5th-7th) dimensions. defaults to DIM_DYN if more than one spectrum is present. and you can absolutely use this to create singleton higher dimensions if that's the energy you're bringing.
  • -s SHAPE [SHAPE ...], --shape SHAPE [SHAPE ...] β€” specify the shape of those higher (5th-7th) dimensions. applies numpy style reshaping. so like, numpy-coded reshaping, you know the one.
  • --special SPECIAL β€” identify a special case sequence. the options are: 'hyper', 'hyper-ref'. that's it, that's the list, no notes.
  • -j, --json β€” create a json sidecar. yes queen, give us the sidecar πŸ“Ž
  • -f FILEOUT, --fileout FILEOUT β€” output file base name. the default is the input file name, so if you say nothing it just keeps the name it came in with. lowkey respectful.
  • -o OUTDIR, --outdir OUTDIR β€” output location. default is . β€” which, yes, is just right here. very "we're already home" of it.
  • --nifti1 β€” that's it. that's the whole entry. the manpage gives no description for this one and honestly? mysterious. enigmatic. main character energy. it's listed, it's real, we respect it πŸ™ˆ
  • --override_nucleus OVERRIDE_NUCLEUS [OVERRIDE_NUCLEUS ...] β€” override the ResonantNucleus field with your input(s). e.g. '2H'. you get to say what the nucleus is and it listens.
  • --override_frequency OVERRIDE_FREQUENCY [OVERRIDE_FREQUENCY ...] β€” override the SpectrometerFrequency field with your input(s). the input is in MHz, keep that in mind, bestie, units matter.
  • --override_dwelltime OVERRIDE_DWELLTIME β€” override the dwell time field with your input. input is in seconds. one value, not a list. just the one.
  • --anon β€” create a file without sensitive metadata. for greater control, use spec2nii-anon(1) instead. so this is the quick version, and the other one is the deluxe version.
  • --verbose β€” again, no description in the manpage. it's just there, being quiet about being verbose. the irony is not lost on me πŸ’€

🌈 SEE ALSO 🌈

and the whole extended family, because we don't gatekeep:

the whole squad. go say hi. 🫢


πŸ’œ reminder that this page is spec2nii-philips(1) from April 2026 β€” and that's the whole thing, no cap. go convert something. slay. βœ¨πŸ§šπŸ’…
πŸ“¦ where this page comes from