Skip to content. | Skip to navigation

Personal tools

Package Overview


The panic package contains both quick-look routines and a more complete data pipeline.

One of the most important aspects of this package is that it is designed to run in a working directory that is distinct from the raw data directory. This is intended to prevent accidental deletion of raw data and also to avoid filling the raw data directory with half-reduced data before, e.g. writing a tape. You can work in any directory you chose so long as you specify the raw data directory with:


cl> epar parspanic
and for rawpath enter your raw data directory, for example:


/data1/ut041121/
Note that the trailing slash is important! Now exit epar with :wq to save this path. All routines within the panic package only require specifying the file number to access the raw data.


The most useful quick look tasks are:

  • pdisplay.cl
Display an image by typing only the file number and not the full image name. For example, type pdisplay 142 in your current working directory to display the file irp_00142_001.fits from the raw data directory. If you have already run loopsum 142 (see below), then you can display the summed image from the current directory with pdisplay 142 pref=icp. To automatically start imexamine at the same time, you can instead type pdisplay 142 imex+.

 

  • pdiffi.cl
Display the difference of two frames and start imexamine. For example, type pdiffi 142 143 to display the difference of irp_00142_001.fits and irp_00143_001.fits.

 

  • quickcombine.cl
Quick sky subtraction and shift-and-add for a single dither sequence. For example, type quickcombine 1 9 to quickly sky subtract and shift-and-add a 9 position dither sequence of files 1 through 9. If you run quickcombine in noninteractive mode and do not like the results, try running it again with quickcombine 1 9 inter+. This will let you manually select a few alignment objects.

 

 

The package also includes a relatively robust data pipeline for PANIC. The main routine for the data pipeline is gopanic. This routine then calls other tasks as appropriate. Here is a listing of most of the available routines:

  • gopanic.cl
Front end for the PANIC pipeline to process the images in a dither sequence. This script sums the images in a loop, applies the linearity correction, flatfields, does two passes of sky subtraction to mask out bright objects, applies the distortion correction, and shiftnadds these images into the final output frame. Note that you can combine multiple dither sequences together with the multishiftnadd script.

 

  • loopsum.cl
Sum the images in a loop.

 

  • lincor.cl
Apply the linearity correction.

 

  • makeflat.cl
Make a dome flat.

 

  • makebpmask.cl
Make a bad pixel mask.

 

  • flatten.cl
Flatfield the data.

 

  • skysub.cl
Subtract the sky from an image.

 

  • makeobjmask.cl
Make an object mask.

 

  • shiftnadd.cl
Shift and add a sequence of files together.

 

  • multishiftnadd.cl
Shift and add a sequence of dithers together.

 

  • stdmeasure.cl
Measure a standard star obtained with a dither sequence.

 

  • distcor.cl
Correct for the radial distortion.

 

  • scatcor.cl
Fit and subtract a 2-D surface.


The panic package includes help files for all of the main tasks, as well as brief examples of how to use them. You may find it helpful to download the package prior to your run to familiarize yourself with these help files in advance. With these scripts you may be able to process your data in real time.

Document Actions