The tcpcom guide




ALFOSC Fast Photometry Control Program Startup


Important points to get started:


Data files

The tcpcom program produces two types of output files.

Output data directory

All data files is stored in subdirectories below a top level data directory decided for the current date when tcpcom is started.

Filters and such

The tcpcom program can control all wheels in the ALFOSC instrument, as well as the FASU filter wheels.

Normal CCD imaging

The tcpcom program is capable of doing basic CCD imaging, although this option is intended only to get quick images of the current field to set up the fast photometry target list. You will not be able to see the image during readout, but will have to load it into DS9 once it is completely written. The readout program reports the median of the pixel counts as it reads out, which is very useful when doing flat fields. Basic tcpcom keystroke commands for imaging is shown on the menu for screen 0.

Setting up for fast photometry

To start fast photometry on a target it is necessary to follow a very precise procedure that goes in three steps.
  1. Obtain an image of your target field
    • Move the telescope to the target field and start autoguiding.
    • Create a new directory for this specific photometry run by using the `D'-key in the tcpcom window. The directory may exist, but note that old files in this directory will be overwritten.
    • Update the FITS comment and object fields, if you care.
    • In normal full-frame imaging mode, get a picture of the field. (The `E'-key sets exposure time and starts the integration.) Wait about 80 seconds for the readout to complete.
    • Use DS9 to check that the field is good. You may want to move the field to get enough good reference stars within the field. Notice the defects on the CCD, and check that your target and reference stars are not on any obvious defects. Keep moving the telescope and taking images of the field until you are certain that you have a good position. You never move the telescope once you are in place.

  2. Mark your target objects for windowing
    • Load a full frame, unbinned image into DS9.
    • Press 'Region' In the DS9 function bar.
    • Click on the target object to mark it.
    • Click on comparison objects to mark them.
    • Finally, click on sky regions to mark them. It is important that the sky regions get marked last.
    • Click on 'Region->Save Regions...' and accept the default name ('ds9.reg').
    • Run the command photcnv in the same data directory where the 'ds9.reg' file is.
    • The default window size is 64x64 pixels. If a different window size is desired, specify this by giving the option -s size to photcnv.

  3. Start photometric imaging
    • First transmit the window list to the controller by hitting the `w'-key in the tcpcom window. Note that the "TRANSFER MODE" field in the top right corner switches from "FULL FRAME" to "PARTIAL FRAME". (Use the `t'-key to toggle it back to "FULL FRAME" when the fast photometry run is complete.)
    • Set a sequence time interval (`S'-key).
    • Hit the `i'-key. This will do a readout test to measure exactly how long time the current window setup will take to read out. After a few seconds the result is reported and the exposure time is set to the highest value possible with the given sequence time interval. Be aware that tcpcom will actually not display anything different. The only way to see that it has been done is to watch the "Time since last CCD clear" number. When it starts from zero again the function has been completed.
    • Start the sequence with the `s' key. Give the desired number of frames, or 9999 to run for ever (or until the sequence is aborted with the `a' key).

Now you should leave the tcpcom window alone until you want to abort the sequence. Frames will be retrieved and stored automatically. While tcpcom stores the window frames, you may process the results with the Real Time Photometry program, to get light curves of your targets.


How to exit the tcpcom program.

Before you exit tcpcom, make sure to put the transfer mode back to 'full frame transfer mode', using keystroke 't'. If you forget this, the standard ALFOSC CCD control program BIAS will hang once you make an exposure.

An alternative solution is to reset the CCD controller (staff only).


Known problems:

Sometimes a sequence file is skipped due to a harware error in the camera controller. When this happens, the observer should copy the sequence file before(i.e. w00012.fits) to the missing name (i.e. w00013.fits) and make a note of this in his/hers observing log.