UNU-DATA(1)

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

πŸ’– unu-data(1) πŸ’–

okay bestie, welcome to unu-data from the User Commands manual β€” the little icon that prints the data segment of a nrrd file. yes it's giving "why would I need this" at first glance and then it's giving "omg actually lifesaving" πŸ’…


✨ NAME ✨

unu-data β€” print data segment of a nrrd file πŸŽ€


🌸 SYNOPSIS 🌸

unu data <nin>

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: this prints the data segment of a nrrd file. like, just the data, in isolation, no header, no commentary, no nothing. πŸ’–

And the whole point of doing that, bestie, is so you can hand that data segment off to a stand-alone decoder. why would you need a separate decoder? because your Teem build might be missing an optional data encoding that some nrrd file needs. so instead of crying about it, you pipe the raw data out and let a different tool handle it. main character problem-solving energy ✨

⚠️ CAVEATS ⚠️

okay this part matters, do not skip it, I'm literally begging πŸ™ˆ

It will start copying characters from the datafile until EOF is hit, so this won't work correctly if the datafile has extraneous content at the end. like it doesn't know when to stop, it just keeps going until the file runs out. πŸ’€

It will skip lines (as per the "line skip:" header field) if needed, but it can only skip bytes (as per "byte skip:") if the encoding is NOT a compression.

  • Uses nrrdLoad with nio->skipData and nio->keepNrrdDataFileOpen both true in the NrrdIoState nio. 🧚

πŸ’… OPTIONS πŸ’…

  • <nin> β€” input nrrd (string)

πŸ”₯ EXAMPLES πŸ”₯

ok so say you want vol.raw to contain the uncompressed data from vol.nrrd, and vol.nrrd uses "gz" encoding. you do this:

unu data vol.nrrd | gunzip > vol.raw

ate. no crumbs. πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

unu(1), unu-head(1)


May 2021 β€” User Commands β€” that's the whole page babes, mwah, go forth and print some data segments πŸ«ΆπŸ’–πŸŒΈ

πŸ“¦ where this page comes from