### REDUCE_SCAN

Process SCAN-mode data

#### Description:

This is the default recipe for processing SCAN data.

Raw data are passed to the map maker which are processed using the default config file (unless the source is a calibrator) to produce a an image. FCFs are derived if the source is a calibrator. This image is calibrated in mJy/beam, displayed and tagged as a reduced product. A coadd is created and displayed after all the individual observations have been processed. The noise properties of the coadd are calculated and written to a log file, log.noise. The NEFD properties of each image produced by makemap and the coadd are written to another log file, log.nefd.

Finally, the CUPID task findclumps is run using the fellwalker algorithm to create a source catalogue.

#### Notes:

• If given data from multiple sources, each source will be processed in full in turn.

• The noise level and NEFD are stored in log.noise and log.nefd respectively. The noise and NEFD are calculated for each image as well as for the final coadd.

• For large amounts of data this recipe will spend a long time not updating the ORAC-DR window. Check to see that makemap is still processing by running top or ps. (Running with -log sf is recommended.)

• Alternative configuration parameters for the iterative map-maker may be specified using the recipe parameters outlined below.

• Flux conversion factors are derived if the source is a calibrator.

• To reduce the chance of spurious source detections, the group coadd is trimmed to the map size specified in the FITS header before running the source finder. This may not work as intended if the coadd contains maps with different centres.

• The output catalogue, if created will have the extension .FIT. A clump file with suffix _clmp will also be created.

• This recipe can handle data from multiple sources and will correctly coadd maps, taking into account the EXP_TIME and WEIGHTS components.

#### Available Parameters :

##### CALUNITS
Units in which to calibrate the output map. Can be " BEAM" (mJy/beam), " ARCSEC" (mJy/square arcsecond) or " PW" (map left in pW).
##### FINDCLUMPS_CFG
Name of a config file for use with the CUPID findclumps task. The file must exist in the current working directory, $FINDCLUMPS_CONFIG_DIR or$ORAC_DATA_OUT.
##### MAKEMAP_CONFIG
Name of a config file for use with the SMURF makemap task. The file must exist in the current working directory, $MAKEMAP_CONFIG_DIR,$ORAC_DATA_OUT, $ORAC_DATA_CAL or$STARLINK_DIR/share/smurf.
##### MAKEMAP_PIXSIZE
Size of the pixels in the output map. If not specified, the recipe uses the appropriate default value. Note that the timeseries will be downsampled to match this scale during the map-making process.
##### MAKEMAP_REF
Name of a reference image (NDF format) to use to define the output pixel grid. The NDF can be either 2D or 3D and the spatial WCS frame will be extracted.

#### Display

The Frame image is displayed in Gaia window 1. The Group image is displayed in Gaia window 2; its variance is displayed in window 3.