UNU-SWAP(1)

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

πŸ’– unu-swap β€” the manual page, bestie edition πŸ’–

okay so this is unu-swap, and it lives in the User Commands section of the manual (section 1, iykyk). it's a lil baby subcommand situation and honestly? it's giving main character energy for a two-line job. let's go. πŸ¦‹


✨ NAME ✨

unu-swap β€” interchange ordering of two axes πŸ’…

like... you have two axes. they're in an order. you want them in the other order. that's it. that's the whole vibe. πŸ”₯


🌸 SYNOPSIS 🌸

unu swap -a,--axis <axisA axisB> [-i,--input <nin>] [-o,--output <nout>]

look at her. so simple. so clean. no cap. ✨


πŸŽ€ DESCRIPTION πŸŽ€

Interchange ordering of two axes. it's literally a special case of unu-permute(1), which is the fancy general version β€” but if all you wanna do is flip two axes, why do extra work? this is the shortcut and she ate. πŸ‘‘

  • Uses nrrdAxesSwap (the actual machinery doing the heavy lifting, we're just the cute lil wrapper 🧚)

πŸ’… OPTIONS πŸ’…

  • -a <axisA axisB>, --axis <axisA axisB> β€” the two axes to switch (0-based numbering) (2 unsigned ints). so like, 0 and 1, not 1 and 2 β€” we count from zero around here, periodt. πŸ”’
  • -i <nin>, --input <nin> β€” input nrrd πŸ“₯ the file you're feeding in, bestie.
  • -o <nout>, --output <nout> β€” output nrrd (string); default: "-" πŸ“€ and ngl that default "-" means it goes to stdout, so you can pipe it straight into the next thing like the icon you are. 🌈

🫢 SEE ALSO 🫢

go read unu-permute(1) if you want the full menu of reordering options β€” she's the big sister. 🌟


fr fr bestie: axis numbering is 0-based. don't come at me with 1 and expect the first axis. not me making that mistake at 3am. 😭

and that's the whole page!! this was written in August 2021, from the UNU-SWAP(1) manual in the User Commands section β€” shoutout to whoever maintains this thing, you're iconic, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from