A quick guide to data analysis


Data reduction

Why the data need calibration

Images of an astronomical object taken with a CCD camera will include many unwanted signals of various origin. The goal of the calibration is to remove these effects, so that the pixel values of the calibrated images are an accurate representation of the sky light that fell on the camera during your observations.

This quick tutorial will work you through the standard reduction steps, with an example of analysis with IRAF.

Effects to correct

What do you need for data reduction

To calibrate your sky data, you will need a set of calibration frames. They should be taken close (in time) from your sky observations, ideally during the same night. Standard calibration frame sequences are available via MaximDL or ACP. /!\ I need to check what is there!

The minimum required is:

  1. A set of bias frames. These are zero second integration exposures (the shutter remains closed). In principle the bias is constant, but statistical fluctuations and interferences introduce some noise. It is best to combine several (e.g. 10) bias frames. The root-mean-square noise will decrease as the square root of the number of bias frames.

  1. A set of dark frames. These are long exposures taken with the shutter closed. You can either match the exposure time of the dark frames to the exposure time of you sky observations, or used a scalable dark frame, from which the bias has been subtracted. The second option is more flexible. Take a set of dark frames with increasing exposure times (from short to long). Here combining the dark frames will mostly help to remove CR hits (high-energy particles do not "see" the shutter...).

  2. A set of flat fields. These are images of a uniform source of light. Usually the twilight sky is the best choice. The exposure time should be set so that the pixel values is a good fraction (20%-50%) of the full well capacity. For the GOWI camera you should aim for ~20 000 counts. These good statistics allow to reveal the desired level of detail. An automatic sequence to produce twilight sky flat-fields is available. Note that because vignetting and CCD sensitivity are colour-dependent, flat-fields must be taken with the same filter as that used for the image to calibrate. As before, several exposures are taken to be combined.

In practice

Typical calibration sequence

1. Look at what you have:

2. Prepare the master bias frames

3. Prepare a master (scalable) dark frames

Check (by looking at the data) that the master dark frame has no remaining CR. The averaging (in particular with median) should have removed all of them. If one CR feature remains, find which individual dark frames it comes from. Either remove the CR hits from that image, of exclude it from the master dark frame.

4. Prepare the master flat-fields

5. Process the raw data

A working example with IRAF

On this page, we show an example of image calibration using IRAF.


Photometry

Photometry is the technique of measuring the brightness of astronomical objects. To do so, we quantify the signal from a given source collected on our camera during the exposure time. In other words, we only measure the instrumental flux of a source. To measure the intrinsic luminosity of an object, we need a flux calibration (how much signal is recorded for a given number of source's photons) and a knowledge of the distance and extinction towards the source (see e.g. description of the star cluster experiment).

Various methods are available to perform photometry.

For the star cluster experiment the use of PSF photometry is strongly advised. This will increase the number of stars you can measure in globular clusters. The software used for PSF photometry is called DAOPHOT. It was developed by Peter Stetson (1987) and is a package of the IRAF environment.

In practice

Below we describe a typical analysis sequence with DAOPHOT. The goal is to use calibrated images to perform PSF photometry and obtain a list of magnitude for all stars in the images.

1. Make an initial star list with a source detection algorithm. This typically search for local density enhancements with peak amplitude greater than a given threshold above the local background.

2. Perform aperture photometry on the detected objects. This gives a rough estimate of the magnitude of the stars and helps in choosing "PSF stars" (see below).

3. Select "PSF stars", i.e. stars that will be use to build the PSF model. Having a good, realistic PSF model is the critical step to guarantee the success of the photometry. Therefore, selecting isolated stars with enough statistics is essential. There should be enough stars (between 5 and 30 for instance), distributed across the field of view to account for possible spatial variation of the PSF.

4. Compute the PSF model using the PSF stars. Various functional forms exist for the PSF model, with different number of parameters. In addition, the model can be constant across the image or vary with position.

5. Fit and subtract the current PSF model from the PSF stars. If the model is appropriate, the PSF stars should be cleanly subtracted from the image. If not, either adapt the list of PSF stars (e.g. add more stars, remove those who do not subtract out cleanly, etc...) or change the model used (e.g. a more complex model, or varying with position).

6. If the current PSF model is satisfactory, fit the model to all detected stars. Thus, stars with nearby neighbours can be separated and have accurate photometry.

7. (Optional) If needed, a second source detection can be ran on the fitted-star-subtracted image to search for faint stars not detected in the first run.

Documentation

A general description of photometry using IRAF is available in this document.

The reference guide for DAOPHOT in IRAF is here

/!\ Reading these documents is highly recommended.

/!\ TODO: It would be good to have a printout of each document at the workstation.

A working example with IRAF

On this page, we show an example of PSF photometry using DAOPHOT in IRAF.