Program: MEAN Purpose: Program to calculate the mean of a number of subsets. Category: CALCULATION, COMBINATION File: mean.shl Author: K.G. Begeman Keywords: **TASK= Name of the task under which the program is run. Either MEAN or SUM. To be used when program is run under an alias name. INSET= Set and subsets for which to calculate the mean subset. Maximum number of input subsets is 2048. BOX= Box for which to calculate average in input subsets [entire subset]. Outside this box MEAN will write BLANKS in the output map(s). WEIGHTS= Weights for individual subsets [1.0]. MEAN will normalize the weights. Negative weights are not allowed. This keyword will be repeated until default is used or the number of weights equals the number of input subsets. OUTSET= Set and subset(s) where to store the results. If two subsets are entered, then the second will contain the sum of the weights used to calculate the average. Default is only one subset (i.e. the mean). Example: MEAN MEAN ,INSET=AURORA FREQ 1:14 45:59 Set AURORA has 3 axes RA-NCP from -7 to 8 DEC-NCP from -7 to 8 FREQ-OHEL from 1 to 59 MEAN ,BOX= BOX range for set AURORA : RA-NCP from -7 to 8 DEC-NCP from -7 to 8 MEAN ,WEIGHTS= MEAN ,OUTSET=CONTINUUM Set CONTINUUM has 3 axes RA-NCP from -7 to 8 DEC-NCP from -7 to 8 PARAM-MEAN from 1 to 1 MEAN +++ FINISHED +++ Updates: Jan 31, 1990: KGB Document created. Dec 11, 1991: KGB Cancel replaced by reject. Feb 19, 1992: KGB Bug with BOX < frame repaired. Jun 29, 1992: KGB WEIGHTS= made a repeated keyword. Jul 28, 1994: JPT Introduced TASK= keyword