;** procedure to select a subset of array elements
;** a is the array (1 dimensional)
;** i is the index to skip 
;**   ex. 2 = return array contains every other entry of input array
;**   ex. 3 = return array contains every third entry of input array
;**
;** Written: SEP   10 Nov 97

FUNCTION ARRAY_SUBSET, a, i

   len = N_ELEMENTS(a)
   newlen = len/i
   j=INDGEN(len)*(i)
   RETURN, a(j(0:newlen-1))

END
