UNU-AXDELETE(1)

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

πŸ’– 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 an unsigned 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 (a string). 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