next up previous 623
Next: SCULIB_2POS_CONFN - Generate a convolution function to remove the 2-position chop function from raster scans
Up: Library APIs
Previous: SCULIB


SCULIB_1D2_JIGGLE - routine to unpack a 1-d jiggle dataset into a 2-d image

Description:
This routine unpacks the data for a specified bolometer from a dataset stored according to jiggle number into a 2-d dataset with data stored according to jiggle offset. The input dataset can contain data either from all or part of ONE run through the jiggle pattern or for several REPEATS of the entire pattern. In the first case, the routine copies the input data into the appropriate part of the 2-d image. In the second, the 2-d datum for a given pixel will be the average of the input values for it, and the variance will calculated from the spread of input points around the mean unless only one input point contributed, in which case the input variance will be used.

Invocation:
CALL SCULIB_1D2_JIGGLE (BOL, N_BOLS, J_START, N_JIG, J_REPEAT, J_COUNT, J_DATA, J_VARIANCE, J_QUALITY, IDIM, JDIM, I_JIGGLE, J_JIGGLE, DATA_2D, VARIANCE_2D, QUALITY_2D, STATUS)

Arguments:

BOL = INTEGER (Given)
the number of the bolometer whose data is to be unpacked
N_BOLS = INTEGER (Given)
the number of bolometers measured
J_START = INTEGER (Given)
the index within the pattern of the first jiggle position measured
N_JIG = INTEGER (Given)
the total number of jiggle positions measured
J_REPEAT = INTEGER (Given)
the number of times the jiggle pattern was repeated in the dataset
J_COUNT = INTEGER (Given)
the number of jiggles in the pattern
J_DATA (N_BOLS, N_JIG)
= REAL (Given) the measured data at each jiggle position
J_VARIANCE (N_BOLS, N_JIG)
= REAL (Given) the measured variance
J_QUALITY (N_BOLS, N_JIG)
= INTEGER (Given) the quality on the measured data
IDIM = INTEGER (Given)
the x dimension of the 2-d map
JDIM = INTEGER (Given)
the y dimension of the 2-d map
I_JIGGLE (J_COUNT) = INTEGER (Given)
the `i' index on the 2-d map of each jiggle position
J_JIGGLE (J_COUNT) = INTEGER (Given)
the `j' index on the 2-d map of each jiggle position
DATA_2D (IDIM, JDIM) = REAL (Returned)
the data plane of the 2-d map
VARIANCE_2D (IDIM, JDIM) = REAL (Returned)
the variance plane
QUALITY_2D (IDIM, JDIM) = INTEGER (Returned)
the quality plane
STATUS = INTEGER (Given and returned)
global status

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


next up previous 623
Next: SCULIB_2POS_CONFN - Generate a convolution function to remove the 2-position chop function from raster scans
Up: Library APIs
Previous: SCULIB

SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council