UNU-SUBST(1)

πŸ“¦ version 1.11.0, in fedora 43, fedora 44

πŸ’– 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