Parameters for "spread"

The parameters set looks like this:

Parameters for spread

This is the final step in the reduction process.
This task will create a simple text file with the instructions
to copy the reduced [OTZF] images and the calibration images
(dome flats, sky flats, and bias) to the CSP database.

Start by editing the snphot$sn.coo file. This is a text file
with a list of supernovae. The first column specifies the supernova name;
the next two columns have precise equatorial coordinates (2000.0) for
each supernova. Enter the name of this file in the "sn_coo" parameter.

The parameter "SNdir" and "caldir" specify the directory where you
want to place the SN images and the calibration images, respectively.
These parameter must take the values /csp1/opt_phot/ and
/csp1/opt_phot/calibrations/.

The parameter "opt_ir" can take 3 possible values: OPT, SDSS, or IR
depending on whether you are working with Johnson, SDSS, or IR images.

The "filter" parameter is the image header keyword contaning the
filter IDs and the "filterid" gives the filter IDs. You have three
options depending on the opt_ir value.

The "aperture" parameter is the image header keyword that specifies
the slit size. The "apertureid" parameter is used to specify the
value of "aperture" that corresponds to the open position (no slit).

The "date" and the "obstime" parameter are the image header keywords
that specify the UT date of observation and the UT time, respectively.

The "instrument" parameter allows you to specify the name of the
instrument employed. You can only enter the official CSP names.
The "tel" parameter specifies the telescope image header keyword.

The "ra", "dec", and "equinox" parameters specify the right ascension
declination, and equinox header keywords. This information will be used
to find the name of the supernova in the snphot$sn.coo catalogue file.
The value specified in the "tolerance" parameter will be used to match
the image coordinates with those of the catalogue.

Running the task "spread"

This task will search for the the name of the supernova in the
snphot$sn.coo catalogue file. The value specified in the "tolerance"
parameter will be used to match the image coordinates with those
of the catalogue.

If the object is already in the supernova list defined in the
parameter "sn_coo", "ccd40" will find it according to the header
coordinates ("ra", "dec", and "equinox") and a tolerance in arcmin
that you can specify in the parameter "tolerance" and propose you a
name for every image. If the image is not found in the supernova
list "ccd40" will assign it the "nomatch" flag. If this happens
you asnwer "no" when prompted to accept this. You will have to
add the new SN to the supernova list (snphot$sn.coo in the example above).

Once you have all the SNe properly identified you can asnwer "yes"
when prompted. The task will create one subdirectory per SN in the
CSP database (whose location is specified with the "dir" parameter).
If the subdirectory already exists this operation will be skipped.
The task will then write a simple text file named "spread" which
you can edit (in general it shouldn't be necessary).

The file "spread" is an IRAF script which contains a series of "imcopy"
commands (one image per line) where the output image has been named
after the SN name, the filter, a correlative number in case
that more than one SN/filter combination was obtained, a local date
of observation, and the telescope. The calibration images (flats and bias)
have been also added to the file "spread". You must execute this script
by typing

cl < spread

This command will write the SN and calibration images to the CSP database.