READVECTOR(1)             TIPSY COMMANDS            READVECTOR(1)




NAME

       readbinvector - read a vector from binary file


SYNOPSIS

       readbinvector filename type


DESCRIPTION

       readbinvector reads in a three dimensional vector for each
       particle from the file filename for use by  commands  like
       viewmag and viewrad.  Using the showvec command the vector
       field can be displayed  in  plots.   The  type  option  is
       either float or double to indicate the format of the file.

       The file filename must be a binary file.  The file  should
       be of the form:


              ntotal

              x_vector(i), i = 1 to ntotal

              y_vector(i), i = 1 to ntotal

              z_vector(i), i = 1 to ntotal

       where ntotal is the total number of particles.  Therefore,
       the  total   file   length   is   sizeof(int)   +   3*nto-
       tal*sizeof(float) bytes.

       If  type is packeddouble or packedfloat then the format of
       the file is


              ntotal

              x_vector(i), y_vector(i), z_vector(i),  i  =  1  to
              ntotal

       The readarray command is used to read in scalars.


SEE ALSO

       readarray(1), showvec(1), viewmag(1), viewrad(1)



KQ Release 2.0            22 MARCH 1994             READVECTOR(1)

Man(1) output converted with man2html