The W ASSOCIATED ARRAY is a single-precision floating point array providing a channel-based weight array of the spectrum. It can be used as input and output of the AVERAGE command (and its other flavors) thanks to the switch SET WEIGHT ASSOC. The user can define the weight array of his choice for the input spectra thanks to a sequence like:
FILE IN ...
FIND
FILE OUT ... SINGLE
FOR I 1 TO FOUND
GET NEXT
! Fill MYARRAY as desired here
ASSOCIATE W MYARRAY
WRITE
NEXT I
and then reuse the output file as input for SET WEIGHT ASSOC +
AVERAGE.