home Astrophotography Gallery Equipment used for astrophotography Our favorite observing sites software, guidemaster plugin for Atik and Artemis CCD cameras Articles about astrophotography About this Website Astronomy releated links
 
About this tutorial ...
ruler
 
This tutorial describes my current workflow for processing L-RGB images with Iris and Photoshop.

The examples in this tutorial are based on a set of test L-RGB images of the Ring Nebula which I took with my Atik 16HR.

Raw files are available for download and can be used for this tuturial.

(last updated: 3.2.2008)
L-RGB image processing with Iris and Photoshop
 
 
Table of Contents
ruler
 
1. L-RGB image acquisition
  1.1 Luminance
  1.2 RGB data
  1.3 Darkframes
  1.4 Flatfields
  1.5 Example Raw Files
 
2. Preparing the software
  2.1 Iris
  2.2 Photoshop
 
3. Processing the luminance data with Iris
  3.1 Iris basics
  3.2 Creating a master darkframe for the luminance channel
  3.3 Creating a dummy offset file
  3.4 Creating a flatfield
  3.5 Automatic preprocessing of the luminance data
  3.6 Registering the luminance images
  3.7 Stacking the luminance data
  3.8 Export to photoshop
 
4. Processing the RGB data with Iris
  4.1 Creating a master darkframe for the RGB channels
  4.2 Creating a dummy offset file
  4.3 Creating a flatfield
  4.4 Automatic preprocessing of the RGB data
 
5. Processing with Photoshop
  adjusting the levels
  increasing the brightness with curves
 
 
1. L-RGB image acquisition
ruler
 
1.1 Capturing the luminance data
 
Luminance images are greyscale images which represent only the brightness levels of an object.

You should capture the luminance data at the best possible conditions because it is the most important quality defining factor for the final image. Sometimes I use nights with bad seeing to capture only RGB data of different objects and use the truely good nights for capturing luminance only.

The picture shows a single, unprocessed, 5 minute exposure of M57 (The Ring Nebula) with just an IR/UV blocking filter.
luminance example
 
 
1.2 Capturing the RGB data
 
Since the resolution of the final image is definied only by the luminance channel, the RGB data can be captured with a higher binning and thus a shorter exposure time. I currently use 2x binning with only 1/4 of the exposure time of luminance.

e.g. for a 10 minute luminance exposure, I take 150 seconds shots for each R, G and B at 2x binning.
 
 
1.3 Recording darkframes
 
Darkframes are recorded without exposing the chip to any source of light. (=telescope cap closed)

They are very important because you can use them to identify hotpixels, noise, amplifier glow and other unwanted things. They should be recorded at the exact the same temperature as the actuall exposures with the same exposure time.

I usually take at least 3-5 darkframes for each set of exposures, more if there is any significant change in temperature.

You have to record a set of darkframes everytime you modify the exposure time, the binning or if there is significant change in temperature meaning that you will also need a different set of darkframes for the RGB channels!
darkframe example
 
 
1.4 Recording flatfields
 
A flatfield is an exposure of an very even illuminated object. e.g. a white wall or the sky at daytime.

Falt fields are used to correct the vignetting of the optics or artefacts like dust on the sensor. The picture on the right shows you how a flatfield looks. You can see some dark spots in it which are caused by dust on the chip.

To create flatfields I simply use a sheet white paper which I put in front of the telescope while capturing the sky at daylight.
flatfield example
 
 
1.5 Example Raw Files
 
Here you'll find some example L-RGB raw files of M57. I captured them on the 13th September 2007 with my Pentax 75 and Atik 16HR. They will probably not result in any decent picture since I had serious dew problems and drift in RA during acquisition.

The Zip file contains 5 5min luminance exposures + 2 darks and 5 75sec for each RGB + 3 darks. You may notice that there are no flatfields included. Because of the Atik 16HR's small chip size and the almost perfect correction of my Pentax 75 I usually do not use flatsfields.

Download: M57 - Ring Nebula (19.3 MB)
 
 
2. Preparing the software
ruler
 
2.1 Preparing Iris
 
After you have downloaded and installed Iris, you have to specify the file format Iris uses and it's working path.

Start Iris and select File->Settings from the menue bar.

Iris uses the working path to read and write all data during the processing. It's like a temporary directory but you will also have to copy your raw files into it before you start the image processing.

I usually use the default path "c:\iriswork". Make sure this directory actually exists and that there is plenty of space available. Image processing with Iris requires sometimes allot of diskspace!

The next step is to set the correct file format. In case you have a dedicated CCD camera you will probably want to set it to the FIT format.
Iris Setup
 
2.2 Preparing Photoshop
 
Before you start to do some work in Photoshop you should calibrate your monitor and its colorspace and tune Photoshop a little.

(coming soon)
 
3. Processing the luminance data with iris
ruler
 
At first we have to copy all the images, flatfields, darkframes, etc into the working directory of Iris. (c:\iriswork, in my case)
 
3.1 Loading Files
 
Now that Iris is able to access the images you can try to display one of them with the load command.

To do do that you have to open the command window by clicking the command button in the toolbar. (marked red in the picture) Once opened you can enter commands in it.

If you have downloaded my example raw files you can try to load a file with:

load m57_l_5min_1

Hint: Play a little around with the controls in the threshold window to change the way Iris is displaying the image.
Don't worry, this is just for visualization, the image data will not be modified by it.
entering commands into Iris
 
 
3.2 Creating a master darkframe for the luminance channel
 
Let us begin the real work and start to create the master darkframe for the luminance channel.

The command smedian will be used to create the master darkframe. This command has 2 parameters: filename base and number of files.

If you have 2 darkframes named m57_dark_5m_1.fit and m57_dark_5m_2.fit, the command would be:

smedian m57_dark_5m_ 2

After you have entered the smedian command the final master-dark-frame is computed but not yet written to disk. Use the save command to save it to disc.

save master_dark_lum

If you like you can press the auto button in the threshold window and take a closer look at your master dark.

Now that the masterdark is saved to the disc we can proceed in creating a list of all hotpixels with the find_hot command. First we have to do some math to evaluate the correct threshold for this command.

Enter stat in the command window to get the statistics of the darkframe. Iris will now open yet another window with the output of the stat command. The imporant values for us are Sigma and Mean.

Multiply sigma by 16 and add the value of mean to it. In our case (Sigma*16+Mean) would be 24.4*16+283 = 673.4 This is the correct threshold parameter for the find_hot function which we will now execute:

find_hot cosme_lum 673.4

With this command Iris calculated a list of all hotpixels in the darkframe and saved it as cosme_lum.lst to disc. We will use this file later to automaticly map out all hotpixels. If you are curious you can view this file with a text editor.
creating darkframes with iris
 
Note:
 Iris requires that all sub-exposures in a set to end with the sequence number starting with 1 for the first exposure.
 e.g. If you have 3 images the filenames should be like file_1.fit, file_2.fit and file_3.fit
 
 
3.3 Creating a dummy offset file
 
Since I consider offset files not very helpfull for CCD imaging, we just create a dummy offset file with the commands:

fill 0
save dummy-offset

This will create a dummy image filled with binary zeros at the same resolution as the previous loaded image.
creating a dummy offset file
 
 
3.4 Creating a flatfield
 
In this tutorial we will also create a dummy flat field because the example images are captured with a Pentax 75 and there was no dust on the sensor. (The Pentax offers an almost perfect flat image, especially with small chips)

We just use the same command like before but we cant to fill the file with ones instead of zeros:

fill 1
save dummy-flat

In any other case you will probably want to create a real flatfield. Here is how it works: (comming soon)
creating a dummy flat file
 
 
3.5 Automatic preprocessing of the luminance data
 
Now that we have prepared a master dark file, a cosmetic file (to map out hotpixels), a dummy flatfield, a dummy offset file we are ready to stat the automatic preprocessing of the luminance images.

To do that go to Digital Photo in Iris menubar and select Preprocessing.

A new window will open where you can enter the filenames.

In this tutorial we will use:
m57_l_5min_ as input generic name,
dummy-offset as offset,
master_dark_lum as dark,
dummy-flat as flatfield and
cosme_lum as cosmetic file.

You can choose any output name you like. I use usually use p_lum_

The number represents the number of input (and output files). In our case we have 5 input images (m57_l_5min_1 to m57_l_5min_5)

As soon as you press the OK button Iris will start processing the input images and save the final images as p_lum_1 to p_lum_5.
automatic preprocessing
 
 
3.6 Registering the luminance images
 
Now that all the luminance images are hopefully free of any hotpixels, have reduced noise and a corrected field, it is time to register them before we can stack them.

You can use the command coregister2 to do that:

coregister2 p_lum_ r_lum_ 5

The first option is the basename of the input files, the second the output files and the last option is the number of files.

Sometimes coregister2 fails to register all images correctly. This is especially the case when you have allot of stars in the image (like milkyway widefields).
If this happens you can try the command coregister4:

coregister4 p_lum_ r_lum_ 512 5

The 3rd parameter is the size of the fields iris will use to detect stars. 512 or 256 are usually good values but it depends on the size of your image.
iris coregister2

or

iris coregister4
 
 
3.7 Stacking the luminance data
 
After we have correctly registered the images we are able to stack them. Iris provides serveral ways of stacking. I usually use the composit stack because it is possible to filter out things like cosmic rays, satellites, airplanes, etc.

Let us try to do a simple composit stack of the images with the composit command:

composit r_lum_ 3 1 1 5

The options for the composit commands are:
composit basename Kappa Iterations Normalize Number

If you use my example raw files, you will probably have noticed that we have some trails in the image caused probably by a satellite. If this happens, you can decrease Kappa to 2 or even 1. In our case only Kappa = 1 works corretly:

composit r_lum_ 2 1 1 5

Sometimes you want to obtain the highest possible signal to noise ratio.
In this case you can use the add2 command to just add the images together:

add2 r_lum_ 5

After you have stacked the images you should save them before you continue to process them:

save lum_stack
iris composite

iris composit
 
 
3.8 Export to photoshop
 
Before we export the luminance channel to photoshop we need to verify and correct the offset level of the image. This will help us to set the blackpoint more easily in photoshop.

Use the stat command to check the current offset.

In our example the Mini. value is -324.0.

To correct the offset to 0 we use the commmand:

offset 324

Now we can export the luminance image to photoshop:

savepsd2 lum_stack
iris export
 
4. Processing the RGB data with Iris
ruler
 
copyright