unu-save - Man Page

write nrrd with specific format, encoding, or endianness

Synopsis

unu save -f,--format <form> [-e,--encoding <enc>] [-en,--endian <end>] [-i,--input <nin>] [-o,--output <nout>] [-od,--ouputdata <name>]

Description

Write nrrd with specific format, encoding, or endianness. Use

unu save -f pnm | xv -

to view PPM- or PGM-compatible nrrdsonunix. EPS output is a EPSF-3.0 file with BoundingBox and HiResBoundingBox DSC comments, and is suitable for inclusion into other PostScript documents. As a stand-alone file, the image is conveniently centered on an 8.5x11 inch page, with 0.5 inch margins.

Options

-f <form> , --format <form>

output file format. Possibilities include:

  • nrrd”: standard nrrd format
  • pnm”: PNM image; PPM for color, PGM for grayscale
  • text”: plain ASCII text for 1-D and 2-D data
  • vtk”: VTK “STRUCTURED_POINTS” dataset
  • png”: PNG image
  • eps”: EPS file
-e <enc> , --encoding <enc>

encoding of data in file. Not all encodings are supported in a given format. Possibilities include:

  • raw”: raw encoding
  • ascii”: print data in ascii
  • hex”: two hex digits per byte
  • gzip”, “gz”: gzip compressed raw data
  • bzip2”, “bz2”: bzip2 compressed raw data

The specifiers for compressions may be followed by a colon “:”, followed by an optional digit giving compression “level” (for gzip) or “block size” (for bzip2). For gzip, this can be followed by an optional character for a compression strategy:

  • d”: default, Huffman with string match
  • h”: Huffman alone
  • f”: specialized for filtered data

For example, “gz”, “gz:9”, “gz:9f” are all valid

-en <end> , --endian <end>

Endianness to save data out as; “little” for Intel and friends; “big” for everyone else. Defaults to endianness of this machine

-i <nin> , --input <nin>

input nrrd

-o <nout> , --output <nout>

output nrrd (string); default: “-

-od <name> , --ouputdata <name>

when saving to a “.nhdr” file, this option allows you to explicitly name the data file, instead of (by default, not using this option) having it be the same filename base as the header file. (string)

See Also

unu(1)

http://www.trilon.com/xv/

Referenced By

unu(1), unu-env(1).