NAME: medarr PURPOSE: (one line) Combine arrays with a median average. DESCRIPTION: This will combine a series of arrays into a single array by filling each pixel in the output array with the median of the corresponding pixels in the input arrays. CATEGORY: CCD data processing CALLING SEQUENCE: medarr, inarr, outarr INPUTS: inarr -- A three dimensional array containing the input arrays to combine together. Each of the input arrays must be two dimensional and must have the same dimensions. These arrays should then be stacked together into a single 3-D array, creating INARR. OPTIONAL INPUT PARAMETERS: None. KEYWORD PARAMETERS: None. OUTPUTS: outarr -- The output array. It will have dimensions equal to the first two dimensions of the input array. COMMON BLOCKS: None. SIDE EFFECTS: None. RESTRICTIONS: This will run VERY slow if inarr and outarr won't fit into real memory on your computer. Don't try this using virtual memory. PROCEDURE: The output array is created and then each pixel is extracted from the cube. Once extracted, the pixel stack is sorted and the middle value is put into the output array. MODIFICATION HISTORY: Written by Marc W. Buie, Lowell Observatory, 17 January 1992