SCULIB_REMOVE_LINEAR_BASELINE

Remove linear baseline from each exposure

Description:

This routine takes a data array. It then removes a linear baseline from each scan. The ends of the scan are the size of the chop throw (should be no source at the ends of a scan)

Invocation

CALL SCULIB_REMOVE_LINEAR_BASELINE(DORLB, N_EXPOSURES, N_INTEGRATIONS, N_MEASUREMENTS, DEM_PNTR, N_BOL, N_POS, IN_DATA, IN_QUALITY, SAMPLE_DX, CHOP_THROW, OUT_DATA, OUT_QUALITY, BADBIT, STATUS)

Arguments

DORLB = LOGICAL (Given)
control whether we are subtracting the baseline (TRUE) or storing the basline (FALSE)
N_EXPOSURES = INTEGER (Given)
maximum number of exposures per integration
N_INTEGRATIONS = INTEGER (Given)
number of integrations in the observation
N_MEASUREMENTS = INTEGER (Given)
number of measurements in the observation
DEMOD_POINTER (N_EXPOSURES, N_INTEGRATIONS, N_MEASUREMENTS) = INTEGER (Given)
array pointing to start and finish of scans in IN_DATA
N_BOL = INTEGER (Given)
the number of bolometers for which data was taken
N_POS = INTEGER (Given)
the number of positions measured in the scan
IN_DATA (N_BOL, N_POS) = REAL (Given)
the measured data
IN_VARIANCE (N_BOL, N_POS) = REAL (Given)
the measured variance
IN_QUALITY (N_BOL, N_POS) = BYTE (Given)
the quality on IN_DATA
NSTART = INTEGER (Given)
Number of points used for fit at start of scan
NEND = INTEGER (Given)
Number of points from end of scan
OUT_DATA (N_BOL, N_POS) = REAL (Returned)
the data with baseline removed
OUT_VARIANCE (N_BOL, N_POS) = REAL (Given)
the output variance
OUT_QUALITY (N_BOL, N_POS) = BYTE (Returned)
the quality on OUT_DATA
BADBIT = BYTE (Given)
bad bit mask
STATUS = INTEGER (Given and Returned)
Global Status value

Copyright

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