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

CONVERT_IND

CONVERT_IND

Name


      CONVERT_IND

Purpose


      Convert a text description of runs of indices to numbers.

Category


Calling Sequence


      ind = convert_ind(txt)

Inputs


      txt = text string or array. in

Keyword Parameters


Outputs


      ind = long array of indices. out

Common Blocks


Notes


      Notes: txt contains a list of integers. A range may
        be indicated by the syntax b:e where b = beginning,
        and e = end of the range. A step, s, may also be
        given: b:e:s. An example list might be:
        txt=['2,3,4,10:20:2,25:30','34,35,38:40','50:100:10,111']
        print,convert_ind(txt) gives:
        2 3 4 10 12 14 16 18 20 25 26 27 28 29 30
        34 35 38 39 40 50 60 70 80 90 100 111
Inverse of LISTRUNS.PRO.

Modification History


      R. Sterner, 24 Jul, 1991
      R. Sterner, 2010 May 03 --- Converted arrays from () to [].
  Copyright (C) 1991, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us