5 SURF Libraries

 5.1 SURFLIB
 5.2 SCULIB

Surf consists of the top level task routines (i.e. routines that provide the structure of the task and do all disk I/O and most of the interaction with the parameter system) and lower level routines that do jobs that could be used by multiple tasks or other systems (such as the real-time observing system) or provide the data reduction algorithms. These lower level routines are stored in libraries and are discussed in the following sections.

5.1 SURFLIB

SURFLIB is a library of data reduction algorithms and routines that are directly relevant to Surf itself. All new subroutines required by Surf are added to this library unless there is an obvious reason to put it somewhere else. Contains routines for sky noise removal, instrumental polarisation removal, baseline removal from scan maps etc).

5.2 SCULIB

This library was designed to provide the fundamental building blocks for manipulating SCUBA data in the off-line and real-time system. Many of the routines in this library are not used in Surf itself. In general, new routines are added to SURFLIB rather than SCULIB although SCULIB does contain some routines that are used solely in Surf.2

2…for historical reasons.