SCULIB_PHOTOM_BOLSELECT

select photometers for a PHOTOM observation

Description:

This routine selects the bolometers to be used in a PHOTOM observation. If status is good on entry the routine will start by setting to zero the arrays describing which bolometers have been selected. Then it will call SCULIB_BOLSELECT to get the chan/ADC numbers of the bolometers directly specified in BOLOMETERS.

The observer can specify between 1 and 3 bolometers by name. Otherwise an error will be reported and the routine will return with bad status. Likewise, if any of these directly selected bolometers have bad quality or have identical Nasmyth offsets.

Now the routine branches on the number of directly selected bolometers:-

Finally, SCULIB_BOLSELECT is called to select for measurement all the bolometers belonging to the sub-instruments involved in this PHOTOM observation. An array is then calculated holding the index in the array of ALL the photometers to be measured of each projected bolometer in each sub-instrument that was directly selected.

Invocation

CALL SCULIB_PHOTOM_BOLSELECT (BOLOMETERS, BOL_TYPE, BOL_CALIB, BOL_DU3, BOL_DU4, BOL_QUAL, BOL_ENABLED, NUM_CHAN, NUM_ADC, BOL_SELECT_CHAN, BOL_SELECT_ADC, N_BOLS, MAX_SUB, SUB_INSTRMNT, N_SUB, CENTRE_DU3, CENTRE_DU4, CHOP_COORDS, BOL_SPACING, CHOP_PA, N_BOL_SUB, BOLS_MEASURED, PHOT_BEAM_CHAN, PHOT_BEAM_ADC, PHOT_BEAM_BOL, STATUS)

Arguments

BOLOMETERS = CHARACTER() (Given)
list of bolometer selections
BOL_TYPE (NUM_CHAN, NUM_ADC)
= CHARACTER() (Given) type of bolometer
BOL_CALIB (NUM_CHAN, NUM_ADC)
= REAL (Given) target calibrator values for bolometers
BOL_DU3 (NUM_CHAN, NUM_ADC) = REAL (Given)
Nasmyth DU3 offset of bolometer from field centre
BOL_DU4 (NUM_CHAN, NUM_ADC) = REAL (Given)
Nasmyth DU4 offset of bolometer from field centre
BOL_QUAL (NUM_CHAN, NUM_ADC)
= INTEGER (Given) quality of bolometers
BOL_ENABLED (NUM_CHAN, NUM_ADC)
= LOGICAL (Returned) .TRUE. if bolometer was selected
NUM_CHAN = INTEGER (Given)
number of channels per A/D
NUM_ADC = INTEGER (Given)
number of A/D cards
BOL_SELECT_CHAN (NUM_CHAN NUM_ADC)
= INTEGER (Returned) channel numbers of selected bolometers
BOL_SELECT_ADC (NUM_CHAN NUM_ADC)
= INTEGER (Returned) A/D card numbers of selected bolometers
N_BOLS = INTEGER (Returned)
total number of bolometers selected
MAX_SUB = INTEGER (Given)
maximum number of sub instruments
SUB_INSTRMNT (MAX_SUB) = CHARACTER() (Returned)
names of sub instrument sections to be used
N_SUB = INTEGER (Returned)
the number of sub instruments to be used
CENTRE_DU3 = REAL (Returned)
Nasmyth DU3 offset from instrument centre to which telescope is to pointed
CENTRE_DU4 = REAL (Returned)
Nasmyth DU4 offset from instrument centre to which telescope is to pointed
CHOP_COORDS = CHARACTER() (Returned)
Chopper coordinate system required
BOL_SPACING = REAL (Returned)
Spacing between bolometers (arcsec)
CHOP_PA = REAL (Returned)
Chop position angle required (degrees)
N_BOL_SUB (MAX_SUB) = INTEGER (Returned)
Number of bolometers selected in each sub instrument
BOLS_MEASURED = CHARACTER() (Returned)
Bolometers to be measured by transputer system
PHOT_BEAM_CHAN (3, MAX_SUB) = INTEGER (Returned)
Channel numbers of selected bolometers projected left, middle, right on sky for each sub-instrument (I index = 1 for left, 2 for middle and 3 for right)
PHOT_BEAM_ADC (3, MAX_SUB) = INTEGER (Returned)
ADC numbers of selected bolometers projected left, middle, right on sky for each sub-instrument
PHOT_BEAM_BOL (3, MAX_SUB) = INTEGER (Returned)
The index in the array of selected bolometers of those projected left, middle, right on sky for each sub-instrument.
STATUS = INTEGER (Given and returned)
global status

Copyright

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