SPYVIEW(SECTION)

NAME
dat2pgm

SYNOPSIS
dat2pgm [-l] [-h] [-p value (50)] < infile.dat > outfile.pgm

DESCRIPTION

A command line utility that converts an ascii data file into a pgm image.

As input, it will read a whitespace separated matrix of floats. The program will determine the extrema of the data, and then map the data onto 50% of the output image dynamic range, centered at half of the output maxval of 65535. The output is then written as a 16 bit pgm file that includes comment fields that are read by spyview that specify the mapping of the grey value on the the floating point data values in the input file.

The program can also produce and output image that is given by the (base 10) log of the absolute value of input data, by specifying the -l command line option.

The default percentage of the output dynamic range used is 50%, in order to allow maximum flexibility in saturating the colormap in spyview. The percentage of the output dynamic range to use can be specified using the -p option.

The -h option shows a breif usage message.

SEE ALSO
spyview3d(1), spyview(1), spybrowse(1)

AUTHOR
This manual page was written by Gary Steele <gsteele@electron.mit.edu>, for the Debian project (but may be used by others).