SCULIB_NOISE_MEAN

Calculate statistics of NOISE data from raw demodulated data

Description:

This routine calculates the mean and variance of a set of integrations in a NOISE measurement. If, only one integration was taken then the demodulated chop signal, chop variance, calibrator signal, calibrator variance and quality will be returned in CHOP_DATA, CHOP_VARIANCE, CAL_DATA, CAL_VARIANCE and QUALITY as they were obtained from the transputers. If more than 1 integration was obtained then:-

If, for a given bolometer, no valid data was obtained for any of the integrations then the QUALITY for that bolometer will be returned as 1.

If, for that bolometer, one valid integration was obtained then the demodulated chop signal and variance will be returned in CHOP_DATA and CHOP_VARIANCE, the calibrator signal and variance will be returned in CAL_DATA and CAL_VARIANCE, and QUALITY will be set to 0.

If more than one valid integration was obtained then the means of the chop and calibrator signals will be returned in CHOP_DATA and CAL_DATA, and the variances of the individual samples in CHOP_VARIANCE and CAL_VARIANCE, and QUALITY will be set to 0.

Invocation

SCULIB_NOISE_MEAN ( N_INTEGRATIONS, N_BOLS, DEMOD, CHOP_DATA, CHOP_VARIANCE, CAL_DATA, CAL_VARIANCE, QUALITY, WORKSPACE, STATUS)

Arguments

N_INTEGRATIONS = INTEGER (Given)
number of integrations taken in measurement
N_BOLS = INTEGER (Given)
number of bolometers measured
DEMOD (5, N_BOLS, N_INTEGRATIONS) = REAL (Given)
the demodulated data; chop, chop variance, calibrator, cal variance, quality
CHOP_DATA (N_BOLS) = REAL (Returned)
the mean of the demodulated chop signal over the integrations
CHOP_VARIANCE (N_BOLS) = REAL (Returned)
the variance on CHOP_DATA, calculated from the dispersion about the mean, or the demodulated variance if there was only one integration
CAL_DATA (N_BOLS) = REAL (Returned)
the mean of the demodulated calibrator signal over the integrations
CAL_VARIANCE (N_BOLS) = REAL (Returned)
the variance on CAL_DATA, calculated from the dispersion about the mean, or the demodulated variance if there was only one integration
QUALITY (N_BOLS) = BYTE (Returned)
the quality on the returned data
WORKSPACE (N_BOLS) = INTEGER (Scratch)
some scratch space for keeping track of the number of valid observations to be included in the averaging for each bolometer
STATUS = INTEGER (Given & Returned)
inherited status

Copyright

Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.