UNU-SWAP(1)
π 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,0and1, not1and2β 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
- 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