CDFTABLE

NAME
SYNOPSIS
DESCRIPTION
BUGS

NAME

cdftable − create a Candis file from a list of numbers

SYNOPSIS

cdftable [-c comment] varname1 varname2 ...

DESCRIPTION

Cdftable creates a Candis file on the standard output from a list of numbers in ascii format separated by white space on the standard input. The command line arguments are the names of the variables assigned to the numbers. If there are N variables, the numbers are read in groups of N and assigned to the variables in order. Each group of N is then written as a single variable slice. An additional variable, ‘‘index’’ is created, which just numbers the variable slices starting from zero.

The ‘‘-c’’ option allows one to add a string as a comment.

Lines in the input starting with ‘‘#’’ are ignored.

BUGS

The variable name ‘‘index’’ is not allowed for obvious reasons.

If the input stream doesn’t have an integer times N numbers, the leftovers are lost.