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.

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.

(/!\ To the students selected for the closed beta: the new workflow for full reduction and analysis is available here.)


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.

A working example with IRAF

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


Final analysis

Once photometry is done, the final step is to create scientific products (plots, light curves, spectra...) and use them to draw conclusions from the results. In the framework of the star cluster experiment, the scientific products to make are colour-manitude diagrams.

In practice

Here we describe the typical sequence to follow to produce a reliable colour-magnitude diagram with using the TOPCAT software.

1. First, you need to create a tabular list containing all your sources in every filter, with information such as position, magnitude and error.

2. Feed the software with these tables and perform a cross-matching of sources of different filters (different algorithms). It will produce a concatenated table with all the successful source pairs and all the available information.

3. The graphical interface of TOPCAT allows fast-ans-easy plotting of the tables. A colour-magnitude is a plot of the star magnitude in a given filter over a given colour index. Provide one the magnitude columns to the Y axis and the difference between the two magnitude columns for the X axis.

4. The software also allows easy data handling. You can define subsets by hand (literally, drawing it on the plot with the mouse) or using algebraic expressions. A good thing is to reject every source having a too bad chi^2 (because of improper PSF fitting) and/or a too large magnitude error. Optional but highly recommended.

5. you can directly apply any photometric correction you want to the tables without overwriting and play around with them TOPCAT. So you can apply correction for the galactic reddening and extinction.

A working example with TOPCAT

On this page, we show an example of the production of a colour-magnitude diagram using TOPCAT.

cogwiki: ForPraAnalysis (last edited 2022-10-08 16:40:38 by VadimBurwitz)