DATA_SEGMENT Name
DATA_SEGMENT Purpose
Compute indices of data segments in an array.
Category
Calling Sequence
data_segment, tlen, slen, [off] Inputs
tlen = total number of elements in array. in
slen = number of elements in a full segment. in
off = optional offset into array for 1st segment. in
(default = 0).
Keyword Parameters
Keywords
OUT=s Returned structure with follow items:
n = number of full segments.
ind = array of n indices of full segments.
irem = index of remaining segment.
lrem = # elements in remaining segment (0 if none).
Outputs
Common Blocks
Notes
Notes: This routine gives info useful for accessing an
array in segments. Starting at index off (def=0) read
in slen elements and repeat n times. A remaining smaller
segment of lrem elements starting at irem may remain.
May also use the indices of each segment from ind to go
directly to that segment and read in slen elements.
Modification History
R. Sterner, 2005 Jul 28
Copyright (C) 2005, 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.