Description:
This routine takes a data array and removes a DC offset from each scan. The DC level is the median of
the data specified in the SCUBA section for that particular integration. The same level is removed for
each scan of an integration with a different value for each bolometer.
Invocation
CALL
SCULIB_REMOVE_DC_FROM_EXP(DORLB,N_SPEC,SECTION,USE_SECT,N_EXPOSURES, N_INTEGRATIONS,
N_MEASUREMENTS, METHOD, 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_SPEC = INTEGER (Given)
Number of sections specified
SECTION ( N_SPEC ) = CHAR (Given)
Array of section specifications
USE_SECT = LOGICAL (Given)
Is this an inverse section
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
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.