>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  RDCOL

RDCOL

RDCOL

Name


      RDCOL

Purpose


      Read columns of numbers or times from a text file.

Category


Calling Sequence


      a = rdcol(file, rec1, rec2, cols)

Inputs


      file = name of text file. in
      rec1, rec2 = file records to read. in
        First record is number 1.
        To read to end of file set rec2 to a large value.
      cols = array of column numbers to read. in
        First column is 1. Use negatives for
        times. Ex: if column 2 is a time use -2.

Keyword Parameters


Keywords


        /UNEVEN means file records have a variable number of
          columns. Process each record by itself. Slower.
        /SIGN means return only arithmetic sign of each number.
          -1 if first char is -, else 1.
        ERR = e. Error flag. 0=ok, 1=file not opened,
          2=probably didn't skip over header.

Outputs


      a = array of selected columns. Floating. out
        There are as many columns as elements.
        in cols. There are rec2-rec1+1 rows.

Common Blocks


Notes


Modification History


      R. Sterner, 2 Jan, 1989.
  Copyright (C) 1989, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us