PARREC2NII(1)
π PARREC2NII π
okay so bestie, welcome to parrec2nii β she's a User Command, she lives in section 1 of the manual, and her whole entire job is turning PARREC images into NIfTI. that's it. that's the girl. π
β¨ NAME β¨
parrec2nii β convert PARREC image to NIfTI
like literally the name says it. PAR/REC in, NIfTI out. no notes. π
πΈ SYNOPSIS πΈ
parrec2nii [OPTIONS] <PAR files>
so you hand her some <PAR files> and a pile of options, and she does her thing. the options are the whole vibe, so let's get into it.
π¦ DESCRIPTION π¦
Code for PAR/REC to NIfTI converter command.
(that's the official description and honestly it's giving "just vibes, no words". she's a command. the description is a command. we move. π)
π OPTIONS π
every single one, in order, no skips, no cuts. this is the whole menu and you're gonna read all of it because I said so. π
--versionβ shows the program's version number and then dips. exit stage left. πͺ-h,--helpβ shows this exact help message and exits. your emergency contact when you're lost. π«Ά-v,--verboseβ "Make some noise." that's the official wording and honestly? iconic. she's chatty now. π£οΈ-o OUTDIR,--output-dir=OUTDIRβ where the NIfTI files go, bestie. the destination directory. Default: the current directory. π-c,--compressedβ whether to write compressed NIfTI files or not. yes/no, that's the whole deal. ποΈ-p,--permit-truncatedβ permits conversion of truncated recordings. β οΈ heads up though: support for this is experimental, and the results must be checked afterward for validity. like, for real, check them. do not trust and just vibe. she said must. π-b,--bvsβ outputsbvals/bvecsfiles in addition to the NIFTI image. extra files, extra love. π¦-d,--dwell-timeβ calculates the scan dwell time. and if you supply this, you should also supply the magnetic field strength using--field-strength(default3). why? because the field strength is not encoded in the PAR/REC format, so she literally cannot know it without you telling her. the field strength must be supplied. no cap. π§²--field-strength=FIELD_STRENGTHβ the magnetic field strength of the recording. only needed for--dwell-time. (again: it must be supplied manually because it is not encoded in the PAR/REC format. she can't read minds, bestie.) β¨-i,--volume-infoβ exports.PARvolume labels corresponding to the fourth dimension of the data. the dimension info gets stored in CSV format, with the first row containing dimension labels and the subsequent rows (one per volume) holding the corresponding indices. and, important: only labels that vary along the 4th dimension are exported β e.g. for a single volume structural scan there are no dynamic labels and no output file will be created at all. so if nothing shows up, that's not a bug, that's the rules. π--origin=ORIGINβ the reference point of the q-form transformation of the NIfTI image. if'scanner', the(0,0,0)coordinates refer to the scanner's iso center. if'fov', this coordinate is the center of the recorded volume (field of view). Default:'scanner'. pick your center, main character energy only. π―--minmax=MINMAXβ the minimum and maximum settings to be stored in the NIfTI header. if any of them is set to'parse', the scaled data is scanned for the actual minimum and maximum. to bypass that potentially slow and memory intensive step (the data has to be scaled and fully loaded into memory, oof), you can provide fixed values as a space-separated pair, e.g.'5.4 120.4'. and yes β it's possible to set a fixed minimum and scan for the actual maximum, or the other way around. Default:'parse parse'. π--store-headerβ if set, all information from the PAR header is stored in an extension of the NIfTI file header. hoarding? no, archival. Default: off. π--scaling=SCALINGβ choose your data scaling setting. the PAR header defines two different data scaling settings:'dv'(values displayed on console) and'fp'(floating point values). you can pick either one, or disable scaling completely with'off'. important note: neither method will actually scale the data β it just stores the corresponding settings in the NIfTI header. unless non-uniform scaling is used, in which case the data is stored in the file in scaled form. Default:'dv'. π--keep-traceβ do not discard the diagnostic Philips DTI trace volume, if it exists in the data. keep the little guy. π₯Ί--overwriteβ overwrite the file if it exists. Default:False. π₯--strict-sortβ use additional keys in determining the order to sort the slices within the.RECfile. this may be necessary for more complicated scans with multiple echos, cardiac phases, ASL label states, etc. messy scan? she's got extra keys for that. ππ
π a lil sign-off π
that's the whole page, bestie! this was parrec2nii version 5.4.2, dated June 2026, and it's filed under PARREC2NII(1). go convert something and slay. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: python3-nibabel 5.4.2-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms