Back to Table of Contents

Data Files

The COSMOS pipeline requires a number of data files as input, in addition to the CCD frames. Some are provided, but some must be generated by the user. Each is described below.

 

Image Files

IMACS

Each IMACS exposure produces 8 FITS image files, one for each CCD; These have names ccdmmmmcn.fits, if produced by the original SITE dewar, iftmmmcn.fits, if produced by the current short camera dewar,  or iffmmmcn.fits if produced by the current long camera dewar, where mmmm is the exposure sequence number and n is the chip number. Note that the chips are not numbered in the expected order; the arrangement of chips is as shown below. The red dot indicates the corner of the CCD with pixel (0,0). If binning is set to 1, each image file is 2048x4096 pixels in size, after removal of bias lines and overscan.

IMACS chip layout

LDSS3

The current LDSS3 CCD is 2048 x 4096 pixels, divided into two 2048 x 2048 segments, and each exposure produces 2 2048 x 2048 pixel fits files, with names ccdnnnnc1.fits and ccdnnnnc2.fits. For data analysis, these must be combined into a single FITS file using the program stitch.

CCD files produced by reduction programs have additional labels appended; for example

Bias corrected:

ccdmmmm_b_cn.fits

Flat fielded:

ccdmmmm_f_cn.fits

Sky subtracted:

ccdmmmm_s_cn.fits

Spectroscopic flats:

ccdmmmm_flat_cn.fits

Mosaiced images:

ccdmmmm_mos.fits

Extracted spectra:

ccdmmmm_1spec.fits or ccdmmmm_2spec.fits

Note that some of these designations are hierarchical (i.e. flat-fielded implies bias-corrected, and sky-subtracted implies flat-fielded and bias- corrected).

 

Dewar Offset File

The dewar offset file defines the position offsets for a particular instrument setup, including rotation, xy position, and scale. Default dewar offset files exist in $COSMOS_HOME/sdata/dewoff for most combinations of camera (long or short), each dewar mounting (Normal or Nod&Shuffle) and each disperser. The IMACS names are constructed as shown in the following tables:

Camera

Long

LC

Short

SC

+

Disperser

None

direct

150l/mm grism

150

200l/mm grism

200

300l/mm grism

300

600l/mm grism

600

300l/mm grating

300

600l/mm 5180 Å blaze grating

600.5

600l/mm 8410 Å blaze grating

600.8

1200l/mm 4440 Å blaze grating

1200.4

1200l/mm 9420 Å blaze grating

1200.9

+

Dewar Mounting

Normal

_N

Nod&Shuffle

_NS

Thus, for example, the dewar offset file for the long camera with the 300 l/mm grating and a nod & shuffle dewar mount is called LC300l_NS.dewoff. The LDSS dewar offset file names are

Instrument

LDSS2

L2

LDSS3

L3

+

Disperser

None

direct

low dispersion grism

low

medium dispersion blue grism

med_B

medium dispersion red grism

med_R

high dispersion grism

high

VPH all grism

VPH_all

VPH blue grism

VPH_B

VPH red grism

VPH_R

Thus, the dewar offset file for the LDSS3 instrument with the VPH blue grism is called L3VPH_B.dewoff A more accurate dewar offset file can be generated for an observation set using the program align-mask. They can be adjusted manually using the program adjust-offset. If defineobs is given the name of a fits file from a given observing setup, it will automatically determine the correct default dewar offset file to be used.

Important: note that the dewar offset file type, N or NS, corresponds to the dewar mounting, not the type of spectra obtained. In particular, IMACS Nod&Shuffle observations after April 2007 are taken with the dewar in the Normal mounting, and the _N dewoff files should be used.

 

Mask Definition File

The mask definition file is generated by the program maskgen which was used to design the slitmask. Files names are of the form maskname.SMF.

 

Observation Definition File

The observation definition file defines a particular observational setup, including:

Existing obsdef files should only be edited or new ones created from existing ones using the program defineobs. Note that disperser order and angle are only relevant for gratings, not for grisms (or direct).

 

Spectral Map File

The mapping of wavelength and slit position onto the individual CCDs is described by a spectral map file. Map files form the basis for all of the spectral reduction procedures. They are generated from the information in the mask definition and observation definition files using the program map-spectra. Using a comparison arc image, spectral maps can be improved using the program adjust-map.

 

Program Parameter Files

Most COSMOS programs have an accompanying IRAF-like parameter file, which modifies the program's behavior. These parameter files are edited by the program editpar. Programs search for their parameter files first in the directory defined by the environment variable COSMOS_PAR_DIR.

 

Bad Pixel Map

Maps of bad pixels in the dewars are contained in the files dewarname.badpix, located in $COSMOS_HOME/sdata/badpix. These maps are needed by the reduction pipeline. Users may also create their own bad pixel files, if desired. These files are tables, in which each line contains information on one bad pixel group. The format of the first and all following lines is:

 
Chip   Xmin   Xmax   Ymin   Ymax   [Binning]
Chip   Xmin   Xmax   Ymin   Ymax
etc

The optional parameter Binning, on line 1 must be specified only if the bad pixel group coordinates are NOT for 1 x 1 binning, and is either a one digit number if the x and y binning is the same, or a two digit number if x and y binning are different. For example, if x binning is 1 x 1 and y binning is 2 x 2, the Binning parameter will be 12. Note that bad pixel files of any binning can be used in the reduction of data of any binning, the two need not match, but it is clearly undesirable to use bad pixel files of higher binning than that of the data to be reduced, i.e. do NOT use a 2 x 2 bad pixel file to reduce 1 x 1 data. The bad pixel files provided in $COSMOS_HOME/sdata/badpix are all 1 x 1 binned.

New bad pixel maps, which include the locations of features from other spectral orders, which one might wish to mask out, can be created using the program badpixels.

The following files are not directly accessed by the user, but are described for completeness.

Dewar Definition File

The dewar definition file describes the physical layout of CCDs inside the dewar, and has a name like dewarname.dewdef. These files are located in the directory $COSMOS_HOME/sdata/dewdef. Do not mess with these files! Because chip 6 of the IMACS SITE dewar was changed on August 1, 2005, there are two dewdef files for the SITE dewar. The currently existing files are:

Instrument/configuration

Dewar Name

IMACS w/SITE dewar before 01 Aug '05

SITE

IMACS w/SITE dewar after 01 Aug '05

SITE2

IMACS w/E2V dewar

E2V

IMACS w/Mos3 dewar

Mos3

LDSS3 before Jan 2014

LDSS3

LDSS3 after Jan 2014

LDSS3C

 

 

Camera Distortion File

The camera distortion file describes the distortions in the short camera optics, which have varied with time. They have names of the form Shortn.distor, and are located in the directory $COSMOS_HOME/sdata/distor.

 

File Location

COSMOS expects all input files to be in the following locations:

The following files are those manipulated by the user. It is recommended that these be located in the host computer file system rather than in the file system of the COSMOS virtual machine. See the instructions on using shared disks located in the VirtualBox documentation .

 

 

Next: Programs

Back to Table of Contents