UNU-SUBST(1)
π UNU-SUBST(1) π
okay bestie, welcome to the User Commands manual section, where we talk about unu-subst β the glow-up tool that maps an nrrd through one univariate substitution table. yes you read that right, one (1) table, and it's gonna eat π
β¨ NAME β¨
unu-subst β map nrrd through one univariate substitution table
πΈ SYNOPSIS πΈ
unu subst -s,--subst <subst> [-i,--input <nin>] [-o,--output <nout>]
π¦ DESCRIPTION π¦
So here's the vibe: you take an nrrd and you push it through one univariate substitution table (and yes, that table is itself an nrrd, we love a self-referential moment). π«
The substitution table is a 2-by-N table β literally just a list of pairs, where each pair gives the old value (the thing you want to replace) and then the new value (the thing you want to change it to), in that order. old first, new second, no cap. π«Ά
And here's the cute part: a plain text file makes this super easy, so you don't have to fight with anything fancy. π
BUT β and this is the tea β unlike unu-lut(1), unu-rmap(1), and unu-imap(1), the output type is the same as the input type, not the type of the lut or the map. so if you were expecting the table to hijack your type, nope, not today. the input type stays the main character. π
- Uses
nrrdApply1DSubstitution
π OPTIONS π
-s <subst>,--subst <subst>β the substitution table you're mapping the input nrrd through. this is the whole point of the operation, the moment, the icon. β-i <nin>,--input <nin>β the input nrrd, aka your little guy going into the machine. π§-o <nout>,--output <nout>β output nrrd (string); default:"-". and yes, that default means it just goes to the usual place, lowkey iconic of it. π
π SEE ALSO π
unu(1), unu-lut(1), unu-rmap(1), unu-imap(1)
π reminder bestie: the output type is the input type. do not come for me when the lut type doesn't show up. it was never invited. periodt.
and that's the page!! this lil beauty is from August 2021, filed under UNU-SUBST(1), and it ate, no crumbs. go forth and substitute responsibly πβ¨π¦
π¦ where this page comes from
- fedora 43: teem 1.11.0-83.fc43 Β· LGPL-2.1-or-later WITH LicenseRef-Fedora-Temporary-Simple-Library-exception
- fedora 43: teem 1.11.0-86.fc43 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- fedora 44: teem 1.11.0-87.fc44 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms