SCULIB_SET_DATA_BIT

set a bit in data given a byte mask

Description:

This routine uses a byte mask (N_BOLS N_POS) to set a data bit in the output. A mask value of 1 indicates that a value should be changed. This routine does not distinguish ’beams’ A bit can be set or unset.

Invocation

CALL SCULIB_SET_DATA_BIT(USE_THIS, N_BOLS, N_POS, N_BEAM, MASK, BITNUM, STATE, IN_DATA, STATUS)

Arguments

USE_THIS = LOGICAL (Given)
Describes whether the mask should be set to the value (TRUE) or whether the rest of the data should be set (FALSE)
N_BOLS = INTEGER (Given)
number of bolometers measured
N_POS = INTEGER (Given)
number of positions measured
N_BEAM = INTEGER (Given)
number of beams used
MASK( N_BOLS, N_POS) = BYTE (Given)
input mask
BITNUM = INTEGER (Given)
Bit number to affect
STATE = LOGICAL (Given)
Set the bits if true. Otherwise clear them
IN_DATA (N_BOLS, N_POS, N_BEAM) = BYTE (Given and returned)
the data to be masked
STATUS = INTEGER (Given and returned)
global status

Copyright

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