UNU-AXDELETE(1)
π UNU-AXDELETE(1) π
okay bestie, pull up a chair, because we're talking about unu-axdelete(1) β the little command that yeets singleton axes out of your nrrd like they were never even there. it's a User Commands situation, and it's genuinely so useful it's giving main character energy. β¨
πΈ NAME πΈ
unu-axdelete β removes one or more singleton axes from a nrrd π
β¨ SYNOPSIS β¨
unu axdelete -a,--axis <axis> [-i,--input <nin>] [-o,--output <nout>]
π¦ DESCRIPTION π¦
so what are we actually doing here? we're removing one or more singleton axes from a nrrd. and what's a singleton axis, you ask? it's an axis that has literally only a single sample along it β one. just one. that's it. no cap. π
here's the important part though, don't skip this: the underlying linear ordering of the samples is unchanged, and the info about the other axes gets shifted downwards as needed. so your data stays in the same order, the axis metadata just slides down to fill the gap. slay. π
and now for the chaotic bonus round: as a total hack (their words, not mine π), if you hand it -1 as the axis, it'll do a matlab-style βsqueezeβ β which means any and all singleton axes get removed at once. icon. it's giving "I don't have time to do this one at a time". π
- Uses
nrrdAxesDeleteπ«Ά
π OPTIONS π
-a <axis>,--axis <axis>β the dimension (aka axis index) of the axis you want gone. it's anunsigned int, so be normal about it. β¨-i <nin>,--input <nin>β your input nrrd, the thing you're feeding in. π-o <nout>,--output <nout>β the output nrrd (astring). default isβ-β, iykyk. π
π SEE ALSO π
unu(1), unu-axmerge(1) β go read those too, bestie, they're the friend group. π«Ά
and that's the whole thing!! mwah π this page came from the User Commands collection, dated August 2021, and it lives under the name UNU-AXDELETE(1). go forth and squeeze those singleton axes, you absolute legend. πβ¨π
π¦ 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