CONVERT_LIST Name
CONVERT_LIST Purpose
Convert a text description of numbers to a numeric array.
Category
Calling Sequence
arr = convert_list(txt) Inputs
txt = text string or array. in
Keyword Parameters
Outputs
arr = array of numbers. out
Common Blocks
Notes
Notes: txt contains a list of numbers. 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:1:.2,3:8:2,1.234,2.345,3.456'
print,convert_list(txt) gives the array:
0.200, 0.400, 0.600, 0.800, 1.000, 3.000,
5.000, 7.000, 1.234, 2.345, 3.456
Modification History
R. Sterner, 2001 Dec 13
R. Sterner, 2010 May 03 --- Converted arrays from () to [].
Copyright (C) 2001, 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.