next up previous 623
Next: Glossary
Up: Writing an import task
Previous: Writing an import task

Case Study: DREAM

DREAM is a SCUBA observing mode where the chopping is done as part of the jiggle pattern and the resulting signal is reconstructued by tiling the bolometer patterns (le Poole and Greve, 1998, SPIE 3357). In this case it is not necessary to subtract switches, despike or flatfield the data and SURF is required simply to perform the regridding and coadding. In this case, the SURF format was chosen to simulate the output of the flatfield task (the HISTORY component of the NDF was updated to reflect this).

The required stages are:

  1. Read in the import data file.
  2. Create output NDF.
  3. Convert data array to a 2-d array of dimensions (N_BOLS $ \times$ N_SAMPLES). Also create Variance and Quality arrays.
  4. Write AXIS information. This is simply bolometer number for the X axis and integration number for the Y axis.
  5. Create the SCUCD, SCUBA and REDS extensions.
  6. Construct the DEM_PNTR array.
  7. Construct the LST_STRT array.
  8. Store the jiggle patterns in JIGL_X and JIGL_Y.
  9. Construct BOL_CHAN and BOL_ADC arrays.
  10. Store the flatfield information (essentially for the X and Y offsets of each bolometer). This is done by reading in a flatfield file using SCULIB_READBOLS.
  11. Create FITS header (see table [*] for required keywords for jiggle map).
  12. Write fake history information to convince SURF that reduce_switch and flatfield have been run on the file.
  13. Shut down.



next up previous 623
Next: Glossary
Up: Writing an import task
Previous: Writing an import task

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