UNU-W2I(1)

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

✨ UNU-W2I(1) β€” the "where does this world position live in my array" page ✨

okay bestie, welcome to the manual for unu-w2i, a lil User Command that converts from 1-D world to index position. yes it's giving "wait why do I need this", but trust, it's lowkey iconic. πŸ’…


🌸 NAME 🌸

unu-w2i β€” converts from 1-D world to index position


✨ SYNOPSIS ✨

unu w2i <center> <minPos> <maxPos> <num> <world>

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this converts from 1-D world to index position. you give it the centering of the data (cell vs. node, more on that in a sec), the range of positions, and the number of intervals that position has been quantized into, and it hands you back the index. πŸŽ€

important lore though: this is a demo/utility, and it does not actually operate on any nrrds. it's just vibing. fr fr. πŸ™ˆ

it was previously available as the stand-alone pos2idx binary, so if that name rings a bell for you, that's why. glow-up era. πŸ‘‘

Uses NRRD_IDX macro ✨


πŸ’– OPTIONS πŸ’–

  • <center> β€” which centering applies to the quantized position. the possibilities are, and I quote the vibe:
    • "cell" for histogram bins, quantized values, and pixels-as-squares
    • "node" for non-trivially interpolated sample points
  • <minPos> β€” smallest position associated with index 0 (double)
  • <maxPos> β€” highest position associated with highest index (double)
  • <num> β€” number of intervals into which position has been quantized (double)
  • <world> β€” the input world position, to be converted to index (double)
not me reminding you that like four of these are doubles 🫢 they're literally all typed, don't come for me.

🌈 SEE ALSO 🌈


that's the whole page bestie, no cap. go forth and index responsibly. πŸ’œ

this masterpiece of a manual page is from April 2021 and lives under the source/version tag UNU-W2I(1). mwah, slay, bye. πŸŽ€βœ¨

πŸ“¦ where this page comes from