Tutorials
Tutorials
Tutorials
Whenever we suggest that you select an item on a dropdown menu, we write it as Menu|Submenu, meaning that you
should select the Submenu item in the Menu. To open a file,
well say, click on File|Open Image. This means that you
should click on File in the top menu bar, and then click on the
Open Image item that appears on the drop-down menu. For
deeper menu levels, we write, Menu|Submenu|Submenu.
When you select menu items in AIP4Win, you often call
a tool window. We think of tool windows (or tools, for
short) as the basic units of AIP4Win, just as each item in a carpenters tool chest performs one of the basic functions of carpentry. The tool windows in AIP4Win operate on the
currently selected image, using the settings that you make using the text boxes, sliders, check boxes, and buttons on the
tool window. To make the names of buttons and other controls stand out clearly, we refer to them like this: Select
Dark(s). Used in concert, the tool windows provide a powerful yet flexible software package.
Clicking on a menu item or a tool window button often
brings up a dialog box, such as the familiar Windows dialog
for opening a document or file. You must enter the information requested and then click the Okay or Cancel button.
When a process is running, AIP4Win sometimes displays a
progress bar to let you know how much longer it will take, or
a message box with information that you should be aware of.
If you are familiar with the Windows operating system, these
are undoubtedly already familiar features.
Many of the tool windows that you can access from the
menus are also available on the toolbar. Although we tell you
to make menu selections in these tutorials, you will probably
want to learn and use the icons on the toolbar as well.
Before You Start remember that AIP4Win is unique.
It is a program conceived, designed, and optimized for processing astronomical images. AIP4Win therefore offers
unique tools and powerful functions for calibrating, trackand-stacking, image enhancement, and processing images in
the spatial domain. AIP4Win was designed to handle both the
dynamic range of deep-sky images and the restricted contrasts of planetary images. Its suite of measurement tools includes astrometric, photometric, and spectroscopic functions
that are specific to celestial images. If you have used image
processing programs designed for photographers and graphic
artists, set aside your preconceptions and prepare to enter the
world of Astronomical Image Processing.
About the images used in these tutorials. The images
have been chosen to illustrate specific features of the pro-
AIP4Win Tutorials
Table 1
Begins on Page
11
13
17
19
24
26
28
29
32
33
Basic Skills: Learn how to open images and control their appearance
on the screen of your computer. If youve never done image processing before, this is a real eye-opener! Run this tutorial before you try
anything else.
Calibration: Demonstrates how you can subtract dark frames and
apply flat-field frames either manually or automatically. Calibration
is an essential step in the creation of every CCD image. For background information, consult Chapter 6.
Image Evaluation: Dig into the numerical nuts and bolts of images
using AIP4Wins comprehensive suite of software tools for measuring and evaluating images. For background, see Chapter 7.
Astrometry: Make precise measurements of right ascension and
declination for objects in your images. See Chapter 9.
Photometry: Learn how you can derive precise magnitudes from
your CCD images, and make light curves for variable stars. For
background reading, check out Chapter 10.
Spectroscopy: Discover hands-on what astronomers see when they
classify stars by spectral type. See Chapter 11.
Image Enhancement: Discover how to extract detail from otherwise bland images. More than producing pretty pictures, the techniques you will demonstrate to yourself enhance details and show
structures that, due to their low contrast, might otherwise be invisible. These techniques are covered in Chapters 13, 14, 15 and 18.
Fast Fourier Transform: Experiment with the power of spatial filtering to enhance and analyze your images. See Chapter 17.
Multiple Image Processing: Here is power at your fingertips! Calibrate an entire observing sessions worth of images at one time automatically. Align and enhance a set of images in preparation for
creating a movie. Align and combine a group of images to create a
single, deeper image. Process hundreds of planetary images.
Image Registration and Blinking: Registration and blinking are
key tools in searching for asteroids and patrolling for supernovae. In
this tutorial, youll see how its done. See Chapter 16.
Deep-Sky Images: Learn the best ways to process a wide variety of
deep-sky images, including the calibration and enhancement of a
typical track-and-stack one.
Planetary Images: In this tutorial, you process an outstanding image of Jupiter using brightness scaling, unsharp masking, and deconvolution tools.
Building Color Images: Learn how the AIP4Win color tool helps
you to create stunning color imageshassle-freefrom sets of red/
green/blue filtered images. For background, see Chapter 20.
gram. All of the images were all taken by amateur astronomers using modest equipment. None were taken using
expensive, high-end gear. Our goal in doing this was to give
novice CCD imagers a feeling for what they can expect to accomplish with equipment that a novice might own. You will
also notice that some of the images are on the small side. This
was done so that your time can be spent learning from the tutorials rather than watching your computer crunch numbers in
an 11 megapixel image.
Basic Skills
In this tutorial you will load, display, and save images using
AIP4Win. This one is the longest of all because it covers most
of the basic functions of the program. You will learn these
specific skills:
Basic Skills
Figure 1
As you load an image, the Image Display Control appears at the upper left
side of the screen. This tool never changes your image data, it controls every
aspect of how your images appear on the computer screentheir size,
shape, brightness, contrast, and display mode.
AIP4Win Tutorials
Figure 2
The three tabs on the Image Display Control control different aspects of the
image. The Display tab controls how an image appears right now, the
Defaults tab controls the initial settings when you open a new image, and the
Imager tab sets the pixel size and camera characteristics.
You can set the default Gamma value using the control
on the Defaults tab of the Display Control.
You can also adjust the brightness and contrast using the
+B, -B, +C and -C buttons. These buttons affect both the black
Step 7: The Defaults Tab. For a more complete description of this tab, just hit the F1 key while the mouse is in
this window to bring up the help system. AIP4Win provides a
complete, context-sensitive help system. At any time, hitting
the F1 key will bring up the page in the help file corresponding to the currently selected tool or control.
The Default Display Mode is used to control the way an
image is displayed when it is first loaded. You have a choice
of stretching the image automatically between a low point
and a high point, stretching it between the minimum and maximum values found in the image, or between a set of userspecified values.
The Auto Low/High Stretch settings are a pair of text
boxes where you enter the fraction of the image pixels used
to set the black value and the fraction of the image pixels used
to set the white value used by the Auto button.
Basic Skills
The Black/White Stretch settings are used to specify a
fixed black and white value, used by the Default B/W button
on the Display tab.
The Default Zoom textbox is used to set the magnification of the image when it is first loaded into AIP4Win.
The Default Gamma textbox is used to set the gamma of
the image when it is first loaded into AIP4Win.
The Ignore Edge textbox contains a percentage of the
image border that is to be ignored when the statistics are collected to determine the auto low/high stretch. This is often
necessary with CCD images that contain artifacts around
their borders that can throw off the display calculations.
You can save your favorite values for these defaults
when you click the Save button to store your settings in the
Windows Registry for when you next start-up AIP4Win. If
you mess up your settings, and want to return to your previously saved defaults, click the Recall button to retrieve them
from the Windows Registry. Clicking the Reset button returns the values in the settings to the original AIP4Win defaults, but does not affect the settings in the Windows
Registry.
Step 8: Loading Images. In addition to FITS and proprietary CCD camera formats, AIP4Win opens over 40 different PC graphics formats, plus raw files from a number of
different digital cameras.
AIP4Win reads the image files and loads them into an
internal 32-bit floating point storage array. CCD camera files
are in formats such as FITS, STx, Cookbook, etc., which preserve all the image data read from the CCD chip. Almost all
PC image file formats can record, at most, only 256 gray levels. Even if the format is capable of representing 16 million
colors, only 256 gray levels are available. This means that information is lost when a 14- or 16-bit CCD camera stores an
image in one of these formats. Regardless of the source of the
image, AIP4Win promotes the incoming image to its internal
format.
For those formats that provide color information,
AIP4Win also stores the color channels using its internal
floating point format. To indicate to a user whether an image
contains color data, the icon in the upper left corner of the image window is shown in color. Grayscale images show a
grayscale icon.
To load an image, you need only to select Open Image from the File menu, or click the folder icon on the toolbar. The image will load, and the appropriate menu items and
toolbar buttons will be enabled.
Step 9: Saving Images. Click on the m22.fts image
to select it. Clicking on an image makes it the active or
currently selected one. To save this image as a FITS file, to
preserve its full range of data, click File|Save as FITS, this
will bring up the Save FITS File dialog box. Select a directory
(not on the CD-ROM) in which to save the image and type in
a name for it, with an extension of .fts or .fit, the two
standard file extensions for FITS files. Click Save and the
AIP4Win Tutorials
how to control the way they are displayed on the screen. You
have also seen how to save images in several file formats. In
the next tutorials you will see how we can use AIP4Win to
calibrate, analyze and enhance images.
Calibration
This tutorial demonstrates how to use AIP4Win to calibrate
CCD images. The supporting images for it are contained in
the Calibration subdirectory of the Tutorials directory on the
CD-ROM.
A frame produced by a CCD camera contains a lot more
than an impression of the light that fell on it. As described in
Chapter 6, the frame also contains noise and artifacts. Using
AIP4Wins calibration tools we can remove most of this noise
and generate an image with scientifically useful information,
which is usually more pleasing to the eye as well.
Step 1: Opening and Examining a Raw CCD
Image. From the Calibration Tutorial directory, open the file
m13.fts. Use the File|View Header... menu item to examine the header of this FITS file, which contains useful information about the image. In this case, you can see that it is a
15-second exposure of the globular cluster M13. Close the
FITS header display when you are finished.
Click the Auto button on the Display Control if the image appears all black. To automatically stretch each image as
it is loaded, just check the Auto Low/High Stretch button on
the Defaults tab. This tutorial and those that follow will assume that this button is checked.
Examine the image and note all the single-pixel stars.
Use the Zoom function in the Display Control to see them
better. These are hot pixels in the CCD frame that are brighter
than the rest because of the higher rate at which they accumulate thermal charge.
Step 2: Opening and Examining a Dark Frame.
From the calibration tutorial directory, open the file
dark00001.fts. An examination of the FITS header for this
file will show that it is a 15-second dark frame, taken around
the same time as the m13.fts image frame. A dark frame
should be taken for the same duration as the image frame and
should be taken around the same point in time in hopes that
the CCD will be at the same temperature for both exposures.
Click the Auto Min/Max button and examine the dark
frame. Notice that it appears as a basically black frame with a
scattering of white pixels. This particular dark frame was taken with a Cookbook CCD camera using the Low Dark Current feature. The Cookbook camera with the LDC feature
shut off and other CCD cameras often produce dark frames
with a salt-and-pepper look.
Notice the Black/White boxes on the display control.
Click the Measure|Statistics|Image... menu item to display
the statistics for this image. (If the Data Log window pops up,
minimize it using the button on its titlebar.) The Image Status
window shows that this dark frame has a small dynamic range,
Calibration
from your image (see Chapter 6). AIP4Win provides two
ways of combining these images: averaging them together or
taking a median of the corresponding pixels in each frame. Of
the two methods, median-combining them is more processing-intensive, but it will remove artifacts that appear in only
a few frames, such as cosmic ray hits. Average-combining
dark frames is quicker, but random noise is not completely
suppressed and may leave artifacts in your calibrated images.
Since we only have eight dark frames for this tutorial, we will
use median combine. Click the Median Combine radio button.
Now click the Process Dark Frame(s) button. You will
see a status bar that will display the progress of the median
operation. When the operation is done, a green light appears
next to the Process Dark Frame(s) button, and the Save as
Master Dark... button is enabled.
AIP4Win allows you to save your master dark frame so
that you dont have to median-combine or average-combine
a set of dark frames all over again when you want to re-use
them. You can save your master dark frame as a FITS file and
just load it as a single file when you click the Select Darkframe(s) button. This can save a lot of time, especially when
you have median-combined a large number of dark frames.
For now we will not save the master dark frame. When
you created it, it was automatically loaded into the darkframe buffer maintained by the program. Whenever you want
to see what frames constitute the master dark, just select the
Calibrate|Master Frames|Master Dark Contents menu item,
and it will display a list of the current contents of the master
dark buffer. Dismiss the Calibration Setup window.
Now that the setup has been completed, we can calibrate
the image. Click the Calibrate|AutoCalibrate menu item or
click the AutoCalibrate button on the toolbar. A new image
will be displayed, which is a calibrated version of the M13
image. Notice that the hot pixels have been removed.
Step 4: Opening and Examining a Flat Frame. As
described in Chapter 6, not all pixels on a CCD chip respond
to light and build up charge at the same rate. Also, dust and
vignetting in the optical system can cast shadows on the CCD
chip. Taking a flat-field exposure allows you to calibrate out
these effects.
Open the file flat00001.fts in the calibration tutorial
directory. When this image is stretched, you will see a lighter
area in the center of the field, gradually darkening towards the
edges, and a bunch of variously sized black donuts. The darkening around the edge is due to vignetting, and the donuts are
dust specks on various optical surfaces in the system.
Step 5: Standard Calibration. This protocol is very
similar to Basic Calibration, but adds the step of dividing the
image by the flat field. Click the Calibrate|Setup... menu
item and the Calibration Setup window will appear. This
time, select Standard in the dropdown box.
In addition to the Dark tab you saw when Basic Calibration was selected, there is now a Flat tab that has a set of similar controls used to manage the flat frames. As with the dark
AIP4Win Tutorials
For this tutorial, select the Use Bias Frame button.
Load the bias frames by clicking the Select Bias
Frame(s) button and the bias frame selection dialog box will
appear. Navigate to the calibration tutorial directory and select the files bias00001.fts through bias00008.fts and
click Open. The green light next to the Select Bias Frame(s)
button will turn on and the text box will indicate that eight
bias frames have been selected. Click the Median Combine radio button for the bias frames. Now click the Process Bias
Frame(s) button, and the program will median-combine the
eight bias frames into a single master bias frame. You have
the option of saving this frame as a FITS file for later use, just
as in the case of master dark or flat frames.
On the Dark tab, dark frames are handled just like in the
Basic and Standard calibration protocols, but you now have
options to scale the dark frame to match it to the image frame.
Select the dark frames dark00001.fts through
dark00008.fts, and select Median Combine for them. For
this tutorial, we will use automatic dark matching, so click the
Automatic Dark Matching radio button. Now click the Process Dark Frame(s) button, and the program will load your
dark buffer. You will notice that it runs through a series of
processing steps, including identifying the hot pixels in the
dark frame. When it is finished, the green light next to the
Process Dark Frame(s) button will turn on. Again, you have
the option of saving this master dark frame.
If the Flat tab is not already set up from earlier, select the
files flat00001.fts through flat00008.fts as your flat
frames and select Median Combine. You also have the option
here of using Normalize Median Combine, which is meant
for processing sky flats taken from a twilight sky. For that
type of flat frame, each image has a widely varying average
pixel value, as the twilight sky dims rapidly. Normalize Median Combine allows you to scale all your flats to the same
average level before they are combined. It doesnt hurt to
combine dome flats (or flatbox flats) this way, but the extra
processing can take time.
Check the Subtract Flat-Dark checkbox and select the
files fltdrk00001.fts through fltdrk00008.fts as your flatdarks. Select Median Combine for them and click the Process Flat Frame(s) button; the program will load the flat buffer for you, which you have the option of saving.
Select the Defect tab, and you will be presented with a
single button with which you can select a defect map. A defect map is a specially prepared image that identifies each defect in your CCD image and provides a code that tells
AIP4Win how to deal with it. For the purposes of this tutorial,
we will not perform defect correction. Because a defect map
was not selected, the Correct Defects checkbox at the bottom
of the form is not checked and is grayed out. However, all the
other checkboxes should be checked. At this point the advanced calibration is set up and ready to go to work, but dont
dismiss the Calibration Setup window yet.
If not already loaded, load the m13.fts image and then
click the AutoCalibrate button on the toolbar. A new, calibrated image of M13 will appear, and in the titlebar of the new
image the display Dark Coeff = 1.008 is shown. This value
is the scaling applied to the master dark frame after the bias
has been removed and before it is subtracted from the raw image. Had you selected Constant Dark Scaling when setting up
the dark frame for this calibration, that is the fixed value you
would have entered in the Dark Scaling Constant text box.
Step 7: Partial Calibration. At the bottom of the Calibration Setup form you will see four checkboxes, one for each
step in image calibration. When the corresponding box is
checked, each calibration step will be taken on your image. If
you have your calibration set up, and decide not to perform
one or more of these calibration steps, just uncheck the corresponding box. You can turn it back on again later by opening
this form and checking the box. If a particular step has not yet
been set up, its box will be grayed out. You can re-enable it
by setting up the corresponding bias, dark or flat frames, or
the defect map.
This completes the image calibration tutorial. If you
want more practice, you will find a variety of additional images in the Images\Berry, Images\Burnell and the Images\McMickle subdirectories on the CD-ROM. Be sure to read
the file About_These_Images.txt in each directory to see
what calibration frames are associated with what images.
Image Evaluation
In this tutorial, you will learn how to use AIP4Wins measurement tools for evaluating image characteristics. The images
for this tutorial can be found in the Image Evaluation subdirectory of the Tutorials directory on the CD-ROM.
AIP4Win provides a series of tools used to examine and
evaluate your images. The tools calculate image statistics,
graphically display characteristics of an image, and provide a
means of comparing two images.
Step 1: Reading Individual Pixel Values. Lets start
by opening an image for evaluation. Open ngc0891j.st6 in
the Image Evaluation subdirectory. This is an image of NGC
891 taken by Tim Puckett using an ST6 CCD camera.
The most basic image evaluation capability is to be able
to read the value of a specific pixel at a specific location in it.
To do this, just move the cursor over the image to the point
you wish to measure, and the Current Pixel frame in the Image Display Control window will display the X and Y coordinates of the pixel you are over, along with its value. If this
were a color image, the red, green and blue values would also
be displayed, while the PV indicates the luminance value.
Step 2: Image Statistics. Click on the Measure|Statistics|Image menu item. The Image Status window will be displayed. The information that appears in the Info window is
also stored in the AIP4Win Data Log. The Data Log is a separate window of the AIP4Win program and keeps a running
log of all the measurements you make using the measurement
Image Evaluation
Figure 3
Tools in the Measure menu produce information about an image, from its
statistical properties, processing history, and histogram to brightness profiles
through the image. Because effective image processing begins with
measuring image characteristics, youll often apply these measuring tools.
Step 3: Image Histogram. Click on the Measure|Histogram menu item and the histogram of the image will appear. This is a graph of the pixel value versus the number of
pixels of that value in the image. For convenience it also displays their minimum and maximum values, and as you pass
the cursor over the graph, the number of pixels at each value
is displayed, along with its percentage of the total pixel count.
Note that due to the wide range of possible pixel values afforded by floating point data, this histogram is binned proportionally to the range of pixel values in the image, so that the
value you see is not the actual pixel value, but rather the pixel
value associated with the selected bin. The histogram for this
image shows a peak around 6000, dropping off rapidly and
then peaking again at a much lower level around 43800. This
is a pretty typical shape for a deep-sky object, in which most
of the pixels show the sky background, with a few bright stars
AIP4Win Tutorials
at the upper end. Close the Histogram window now using the
X button in the upper right corner.
Step 4: The Profile Tool. Click on the Measure|Profile Tool... and the Profile Tool window will appear. Take the
mouse and press the left mouse button on one edge of the image and drag a line across the image and release the button.
The view in this window will plot the relative pixel values
crossed by the line you drew. This view represents a slice taken through the image. A pair of radio buttons controls how the
profile view is scaled to fit its window. Try clicking on each
one to see how it affects the display. This tool is useful for exposing detail which might otherwise be hidden in very bright
or very dark areas of an image. It also gives a view into the
structure of an object. Dismiss this window by clicking on the
Close button.
Step 5: The Star Image Tool. This is a very basic tool
that allows you to extract information about a star in an image, including the ability to determine the exact center of a
stellar centroid to !/100 of a pixel. Open it by clicking on the
Measure|Star Image Tool... menu item. The Star Image Tool
window will appear.
This is a good time to mention that when you have a preferred location where you wish to see a tool window appear
when it is invoked, you can save that location by dragging the
tool window to where you want it and clicking on the Window
|Save Current Tool Window Positions menu item. The next
time you invoke this tool it will appear in the same place. Try
it by dragging the Star Image Tool window to the upper right
corner of the screen and then click on the Window|Save Current Tool Window Positions menu item. Close the Star Image
tool and then re-invoke it from the menu. It will appear in the
place where it was when you saved its position.
The Star Image Tool contains three tabs, Result, Shape
and Settings. Select the Settings tab and you will see a trio of
text boxes with associated up/down arrows. This is a good
time to introduce you to the concept of a photometer window.
These three textboxes and their associated up/down arrows
control the radii of three concentric circles that will be drawn
around any star you select in the image. The inner circle defines the aperture, a region containing light from the star plus
the sky background. The annular (doughtnut-shaped) region
between the middle circle and the outer circle is used to measure the brightness of the sky background. To find the brightness of the star, AIP4Win totals pixel values in the aperture
and then subtracts the contribution form the sky based on the
light in the annulus.
To get accurate measurements, you must set the radius
of the aperture so that it completely contains the image of the
star you are interested in. For a CCD image with reasonably
good sampling, a radius of 6 pixels for the central circle
works quite well. The sky annulus must be larger than the aperture and include a reasonable number of sky pixels. Radii
of 9 and 15 pixels work well for most images.
Move your cursor over a star in the image and click the
10
Astrometry
see how the value for the position angle is recomputed.
You can click the New Stars button and select several
pairs to experiment with. Every time the data are calculated,
they are written to the Data Log for later use.
To dismiss the Distance Tool, click the Close button.
Step 7: The Pixel Tool. The last of the measurement
tools we will be covering in this tutorial is the Pixel Tool.
This provides a means for gathering the statistics of a selected
region of interest (ROI) in an image. It forms the basis for a
set of photometry tools we will cover in a later tutorial.
Click on the Measure|Pixel Tool... menu item to open
it. The first thing you will notice is that there are two radii
available, an outer radius and an inner one. Click anywhere
on the image window and a single circle will appear with the
default outside radius of 6 and inside radius of 0. Change the
outside radius to 12 with the Out slider and the inside radius
to 6 with the In slider. When you click on the image, a bullseye pattern will appear. In this case, the ROI is the area between the inner and outer radii. This is useful for gaining
information about the background sky immediately surrounding a star. Center the bullseye on a star and click, and the Region Statistics frame will display the data for that region.
Note that unlike the Centroid and Distance Tools, the cursor
does not snap to the centroid of the star. The shape of the
ROI can also be changed from a circle to a square, which can
be useful for some types of measurements.
As an example for how to use the Pixel Tool, select a
circular region of outside radius 6, inside radius 0, centered
on X = 305, Y = 107. It shows a mean pixel value of 6024.23
and a standard deviation of 46.94. The signal-to-noise ratio
(SNR) is defined as the mean divided by the standard deviation, giving an SNR of 128.34 for this specific region of the
image. Other regions will tend to give different results, depending on the how much light struck the pixels there.
When you are finished, dismiss this window by clicking
on the Close button.
Step 8: The Data Log. Examine the contents of the
Data Log window and see how all the measurements you
made were recorded there. If you wished to import the contents of this log to a spreadsheet, you would just click the
Save to File menu item in this window and a dialog box
would appear asking you for a file name. The file is saved as
ASCII text and can be edited with any text editor.
To import your data into an Excel spreadsheet, load the
file into Excel as fixed-width ASCII text. The labels will appear in one column and the data will appear in the next column. It is probably easiest to save the Data Log after each
type of measurement and then clear it before adding new data
of a different type. This makes it simpler for the spreadsheet
to parse it into columns, since each tool outputs a different
type of data.
This concludes the general image evaluation tutorial. In
later tutorials we will cover specific types of measurements
used in photometry and astrometry.
Astrometry
This tutorial demonstrates how to use AIP4Win to make precise positional measurements of objects in your CCD images.
The files for it are located in the Astrometry subdirectory of
the Tutorials directory on the CD-ROM.
In recent years a number of ever more accurate astrometric databases has become available, making it easy to precisely determine the celestial coordinates of objects in
electronic images. AIP4Win supports several CD-ROM databases including:
AIP4Win Tutorials
Figure 4
scale of the image. For some images you may also need to use
the Mirror X and/or Mirror Y buttons to reorient it so that north
is to the top (roughly) and east is to the left, to match the overlay.
The telescope used to make this image had a focal
length of approximately 1,909 mm. Input this value in the Focal Length text box. Later, the software will determine a precise value for the focal length.
It is not necessary to mirror this image about either axis.
Now you can create the overlay. Click on the Load Ref
Data button and the Select Overlay window will appear. At
the top you will see a set of five radio buttons corresponding
to the different database types that AIP4Win can read. In addition to the four CD-ROM databases, there is a Reference
File button. Click it and click OK, and a dialog box will appear. Navigate to the Astrometry subdirectory, select the file
Ah102.ref and click Open; the reference data file will be
loaded and an overlay will be generated.
To use an astrometric catalog stored on CD-ROMs, select the appropriate database; and input the Right Ascension
and Declination of the field center along with the size of the
field. AIP4Win will prompt you for the correct CD-ROM and
create a list of all the stars in the selected region brighter than
the magnitude limit set in the Magnitude Limit text box. You
are then prompted to save the generated listthat is how the
reference data files for this tutorial were generated. Chapter 9
provides information on obtaining these databases.
Click the Toggle Overlay button until the overlay appears. It will appear as a collection of red circles, with a blue
12
Photometry
lecting a reference star, try to pick a clean star image that will
give a good centroid. Avoid selecting stars in the middle of
nebulosity or ones that show blooming trails. Clean star images will yield more accurate position and brightness measurements.
Select two more reference stars. Use the top right one in
the trapezoid and the bottom right one in the image. Remember only to select stars that appear on the overlay. If you attempt to select a star that doesnt appear on it, an error
message will appear, prompting you to try again.
As soon as all three reference stars are selected, the program will automatically refine the overlay alignment to subpixel accuracy. You will see that the telescope focal length is
updated to about1906 mm and the parallactic angle is updated
to about 2.46 degrees. (This is a useful way to determine the focal length of your telescope/CCD camera configuration very
accurately, by the way.) The program will continue to refine
the overlay as each additional rreference star is added.
Select a few more reference stars. You will need at least
four in order for AIP4Win to calculate a set of residuals associated with the calculated plate constants for the CCD image.
You will see that as soon as a set of plate constants is calculated, the RA and Dec of the cursor position is updated at the
bottom of the Astrometry Tool window whenever the cursor
is moved over the image. As you add more refernce stars the
accuracy of the solution increases.
Step 5: Select the Object to be Measured. In this image there are three asteroids. One of them, ah102, is at
X = 115, Y = 45. Click on this faint object with the left mouse
button. Click the Select as Target button, and the Enter Target Name window will appear. Enter the name Ah102 for
the target and click OK, and a yellow circle will appear
around the target with the label Ah102 below and to the
right. If the circle centers on the brighter star below this object, click the Clear Target(s) button and try again. It might
help either to reduce the search radius using the Search Radius slider on the Settings tab, or position the circle so that
it includes the asteroid but not the star. Your cursor position
doesnt have to be accurately centered; AIP4Win will find the
centroid of the object inside the search radius and align to it
automatically. If two objects are inside the search radius,
AIP4Win may attempt to center on their common center of
mass.
Step 6: Generate a Report. Now click the Send Report to Data Log button. If it is not already visible, open the
Data Log window from the taskbar. In it you will see the a report on the object, containing a list of the reference stars used
and the calculated RA and Dec of the object, the error for both
RA and Dec, and the magnitude of the object.
If you wish to generate a report file, click the Save Report as Disk File button and the Enter Astrometry Report
Data window will appear. You are presented with two options
here: a verbose (multi-line) report, or a single-line report in
the form required by the Minor Planet Center (MPC). Select
the verbose format and type in an object name, and an arbitrary time and date. Click OK, and you will be prompted for
a location to save this report. Choose a convenient place (not
on the CD-ROM!), and click Save to save it.
You can examine the report if you click the File|Open
Log (text) File menu item. This will open a file select dialog. Select the file you saved and it will be displayed in a
small text window. You can also examine or edit this file with
any ASCII text editor.
You can clear the reference stars and targets and select
a new overlay if you want to experiment further. Try using the
file ah102.gsc. It was generated from the USNO A2.0 database. This is a phenomenally deep database with more than
half a billion stars in it. You will see that the overlay includes
nearly every object in the image, with the exception of the
three asteroids.
This concludes the astrometry tutorial.
Photometry
In this tutorial, you will learn how to use AIP4Win to measure
the magnitude of stars in a CCD image.
We will explore three photometry tools:
AIP4Win Tutorials
Figure 5
The photometry tools enable you to measure the brightness of stars. The
Single Star Photometry tool is a basic tool that determines the raw
instrumental magnitude of starsone star at a time. The image profile and
curve of growth help you assess the suitability of a star for measurement.
14
sures of 60 seconds each), the images were averaged (i.e., divided by 20) to improve the signal-to-noise ratioso the
effective integration time is 60 seconds. Enter this value in
the Integration Time text box.
The zero point depends on your telescope, filters, and
CCD camera. It represents the magnitude of the sky background, and usually turns out to be a value between 15 and 25.
For this image, the default value of 25 will suffice.
The Readout Noise, Gain and Dark Current are dependent on the CCD camera used to make the image. For the purposes of this tutorial, we will leave them set to their default
values.
Step 4: Select and Measure a Star. Select the Result
tab. Now click on the star at X = 250, Y = 89. You will see the
results of measuring the star. The Measurement Log is updated as well, allowing you to export these values to a spreadsheet later. The raw instrumental magnitude is the sum of
pixel values in the star image corrected for the sky background converted to magnitudesnot the real magnitude
of the star.
Chapter 10 explains how astronomers convert raw instrumental magnitudes into accurate magnitude measurements. The Details tab displays information used to determine
the standard deviation of the magnitude determination.
Try selecting and testing some other stars in this image.
For an example of a star not well suited for photometry, try
Photometry
Figure 6
The Single Image Photometry tool compares the brightness of a variable star
against the brightness of one or more non-variable comparison stars.
Because it determines only the difference between stars, results from
differential photometry are relatively unaffected by atmosphere and thin
clouds.
selecting one in the halo of the galaxy, or one that has another
star within a few pixels of it. You will see that its profile will
have a lot of extra light around it, adding uncertainty to the
measurement of the stars brightness.
Finally, check the Data Log; you will see that it has
faithfully recorded the position and magnitude of each of the
stars you have clicked on.
Single-Image Photometry
The Single-Star Photometry Tool provides a means of measuring the light from a single star and removing the sky background from it. You could use this tool to take measurements
of a variable star and a star of constant brightness. By comparing their values you can then detect tiny changes in the
brightness of the variable. This is differential photometry
the difference in brightness between two stars. Differential
photometry is a powerful technique because thin clouds,
haze, and atmospheric extinction may dim the stars, but their
difference is barely affected.
Step 1: Open the Single-Image Photometry Tool.
Close the two graphs, if they are still open, and close the
Single-Star Photometry Tool. Click the Measure|
Photometry|Single Image menu item and the Single-Image
Photometry Tool window will appear. Like the previous one,
this tool provides a Settings tab that allows you to set the pho-
tometer radii.
Step 2: Select the Stars. Select the Result tab. Open
the M82 image if it is not already open, and click on any star
in the field to select the variable star. You will see that in the
Variable and Comp Stars box, the Variable setting now reads
Yes, and the Raw Instrumental Magnitude box gives a magnitude reading for the star. Click the Clear button, and the setting will read No.
Click on the star at X = 250, Y = 89. Next choose the
first comparison star. Click the star at X = 83, Y = 71. You
will now see that the Comp Stars setting reads 1. Each time
you will see a display of the raw instrumental magnitude.
Click the Get Magnitude button, and AIP4Win will calculate the differential magnitude. The Differential Magnitude box
shows that the variable is 0.563 magnitudes fainter than the
comparison star.
To improve the quality of their data, astronomers select
additional comparison star. As you add more comparison
starsclicking the Get Magnitude button as you select each
onenote that the standard deviation decreases, meaning you
are getting a more precise magnitude reading.
The information you obtain from these measurements is
logged in the Data Log, but only when you click the Get Magnitude button. In normal practice you would select the variable star, select a series of comparison stars, and then click
the Get Magnitude button to record one differential photome-
AIP4Win Tutorials
Figure 7
try reading.
If you wanted to monitor a supernova as its light faded,
you could take a new image of it every clear night. You could
then use the Single Image Photometry Tool to measure the
difference between the supernova and a comparison star (V
C1) in each image. Over a period of a few months, you
would obtain the supernovas light curve.
When you are finished, dismiss all the tools by clicking
on the Window|Close all open Tool Windows menu item, and
close the M82 image.
Multiple-Image Photometry
16
Spectroscopy
images are named such that they are in alphabetical order, in
order of time. AIP4Win sorts the images in alpha-numeric order; it is a good idea to name your datasets this way so as to
preserve the order of your data.
Step 4: Select the Photometer Radii. Once you have
opened the image set, the first image will be displayed in an
image window. Click anywhere in it and a bullseye representing the photometer aperture will be drawn. You can use
the Radii controls on the Settings tab to adjust the aperture,
just as in the previous tools. For these images, the default values of 6, 9 and 15 work well.
If your were doing photometry on stars that were trailed
or out of focus, you would adjust the aperture to capture all
the starlight, and set the annulus radii to exclude any of the
stars light. It is a good idea to scan through your images using the File|Sort Images tool before you run the Multi-Image Photometry Tool, to make sure you spot any bad images
ahead of time. These problems do not render an image unsuitable for photometry, but it is necessary to adjust the radii.
Step 5: Select the Search Radius. The Multiple Image
Photometry Tool performs individual measurements on a series of images of the same star field. Once a V (variable) star
and set of C (comparison) stars has been identified, the tool
will attempt to track these stars from image to image. As there
is the possibility that the field will shift between exposures, it
is necessary to identify a radius, centered around the C1 star,
that will be searched to find the star centroid on each subsequent image in the set. This is done using the Track Search
Radius control on the Tracking tab. For this image set, a value
of 20 pixels accommodates the rather large drift between exposures without locking onto a neighboring star by mistake.
Step 6: Select the C and V Stars. Now you can select
your V and C stars. For this tutorial you need to select the star
at X = 215,Y = 102 (Z Draconis) for the V star,
X = 112,Y = 65 for the first comparison star, C1, and the one
at X = 335,Y = 98 for a second comparison star, C2. When
selecting stars, the first one you select is always the variable,
and the rest are numbered comparison stars. When you select
each one, a bullseye is drawn showing the inner, middle and
outer radii of the photometer aperture and a label, either V or
Cn (where n is the number of the comparison star).
You can delete a comparison star by clicking on it a second time. The star will be removed from the list, and the other
comparison stars will be renumbered. However, if you click
the variable star a second time, the entire list will be cleared.
You can also clear the list by clicking the Clear All Stars button on the Setup tab.
AIP4Win allows you to select up to 32 comparison stars,
and will track each one. If a comparison star drifts out of the
image, an error message is displayed at the conclusion of the
measurement run.
Step 7: Set the Tracking Mode. The Tracking Mode
radio buttons on the Tracking tab allow you to select the
tracking mode. If the images are well tracked, select Automat-
Spectroscopy
This tutorial demonstrates how to use AIP4Win to extract the
spectral curve from a star image obtained using an objective
prism. The same techniques can also be used with a slit or fiber-fed spectrograph.
The file we will use is called VegaSpectrum.fts and
can be found in the Spectroscopy subdirectory of the Tutorial
directory on the CD-ROM. This file is a spectrum of the zero-
AIP4Win Tutorials
Figure 8
18
Image Enhancement
button and the spectrum will be displayed.
Step 6: Save the Spectrum to a File. Click the Save
button, and you will be prompted to save the spectrum data to
a file. This file is spreadsheet friendly, and can be easily
parsed into any standard program such as Microsoft Excel or
Lotus 123.
Once the spectral data have been loaded into a spreadsheet, you can use the same steps listed above to load the
spectrum of a calibration source taken with the same spectrograph. To calibrate the wavelengths of the unknown spectrum, you must calibrate the wavelength curve of the
spectrograph against a set of known spectral lines. Although
grating spectra are nearly linear, they are not perfectly so; and
prism spectra are strongly nonlinear.
Image Enhancement
This tutorial demonstrates a few of the image enhancement
tools in AIP4Win. In it and those that follow, you will learn
how to use these tools to extract detail from otherwise bland
images. More than just producing pretty pictures, these
techniques can be used to enhance details and show structures
that, because of their low contrast, would otherwise be invisible. Later tutorials show you which tools and processes to
use on deep-sky and planetary images.
You may have noticed that the arrangement of the
menus and the toolbar, the book itself, and to some extent
these tutorials, is such that the flow moves through the following steps:
1. Bring an image into the program,
2. view information contained within the image file
header,
3. calibrate the image,
4. make measurements on the image, and
5. enhance the image, including geometric transformations.
This is not accidental. This flow of operation is necessary to
preserve scientifically useful information. Up to this point in
the tutorials we have not made any changes to the information
contained in the image other than to remove noise and uneven
illumination effects caused by the optical system or sensitivity variation across the CCD detector.
The types of operations you will perform in this tutorial
will, for the most part, modify the data in a non-linear manner, rendering them useless for photometric purposes. You
will also be able to modify the spatial distribution of the data,
reducing their astrometric validity. It is for this reason that we
covered the measurement capabilities first, in keeping with
this flow.
The types of operations you will exercise in this tutorial
are some of the most fun capabilities of AIP4Win. With these
enhancement tools you can make pretty pictures as well as
display the hidden structure of astronomical objects you have
AIP4Win Tutorials
black and white pixel values in the image.
The Low and High Pixel Values controls
are automatically updated by clicking the
Auto button after adjusting the Black Point
and White Point controls. They can also be
set manually,
an
an
20
Image Enhancement
ture of the nebula.
Step 3: Invoke the Histogram Shaping Tool. Click
on the Enhance|Histogram Shaping menu item to invoke
the Histogram Shaping Tool. This tool window contains several tabs and a Preview display, just as with the Brightness
Scaling Tool. Preview allows you to experiment with different histogram shapes until you find one that suits the image
and features you are trying to bring out.
The Transfer tab contains a Scaling Type box with buttons showing ten types of histogram shaping available. Some
of the different histogram shapes have a parameter which is
set with the slider underneath the Scaling Type box, while
others take no parameters.
Step 4: Preview an Exponential Histogram Shape.
The default histogram shape is the Exponential Histogram. This option has proven to be effective for many faint
deep-sky objects. Examine the Preview display and see how it
works on the image of the Eagle Nebula. Slide the Peak Skew
slider around and notice how the pre-calculated histogram
shape changes. This is intended to help you visualize how you
are shaping the image histogram. The red curve shows the histogram of the original image, while the blue curve shows the
histogram that will result from the application of this tool, and
the Preview display shows how the image will look.
Step 5: Create a New Image with an Exponential
Histogram Shape. Set the Sigma Spread to a value of 42 and
click Apply; a new image will be created with the Exponential
histogram shape.
Step 6: Compare the Histograms of the Two
Images. Now examine the histogram of the new image. Click
on the still-open Histogram window and click the Refresh
button. This histogram is radically different from that of the
original image. First, it now stretches from down around zero
to up around 65535, the maximum value represented in 16
bits. Second, it is evenly spread across the whole range. Because of the exponential shape, the range of values containing
the nebula now stretches from about 10,000 to roughly
50,000, a full two-thirds of the histogram. As a result the nebula is very prominent in the image.
Step 7: Try Other Histogram Shapes. Close all the
images, which will close all the tools, and reopen the
m16.fts image. Try the different histogram shapes on it.
Also try other images in the collection on the CD-ROM. See
how planetary images benefit from different histogram
shapes than those used for deep-sky objects.
When you are finished, close all the open images.
Convolution Filtering
Convolution filters are rather coarse devices used to sharpen
or soften an image. You can use them on lunar and planetary
images to help remove the softness caused by poor focus and
bad seeing. You can also use them to build your own unsharp
masks, although AIP4Win provides several ways to do this
automatically. Essentially, these filters are useful building
Unsharp Masking
Unsharp masking is a powerful technique for exposing detail
in an image where bright regions tend to wash it out. It is especially useful with planetary images, bright nebulae and
overexposed galaxy cores. It is the real workhorse of the planetary imager.
AIP4Win Tutorials
For this tutorial, be sure that Auto Lo/HiStretch is selected as the default display mode in the Image Display Control
window.
Step 1: Load an Image. From the Image Enhancement
Tutorial subdirectory, load 03119204.ccd. This is a nice
clean lunar image that has been affected by the turbulent atmosphere during the exposure. We will compare the unsharp
masking technique to the crispen filter we used in the last tutorial section.
Step 2: Invoke the Unsharp Masking Tool. Click on
the Enhance|Unsharp Mask menu item to open the Unsharp
Mask Tool. Leave the Mask Type set to Gaussian with a Radius of 2 and set the Contrast to 5 and click Apply. See how
much more detail is visible in the crater floor.
Try it again with the Parabolic mask. Be sure to click on
the original image first. See how the Parabolic mask has a
slightly more contrasty result. Try the other mask types and
compare the results.
Try adjusting the Radius and Contrast controls as well
to become familiar with their effects.
As the screen fills up with images, you may get confused as to what image has had what kind of processing applied to it. To see the history of any image on the screen,
right-click on it, or click on the Measure|Statistics|Image...
menu item. The Image Status window will pop up. Select the
History tab, and you will be presented with a list showing the
original image name and all the processing steps in the order
in which they were applied to the image. This history is saved
in the FITS header when you save an image as a FITS file.
Step 3: Open the Next Image. Open
the
image
J0703075.ccd. This one, by expert planetary imager Don
Parker, shows Jupiter taken in white light. As you can see,
there is a hint of detail there, but the contrast is very low. If
you adjust the Black and White controls on the Image Display
Control window, you can get a feel for how much detail is
there that is not readily visible because of the wide dynamic
range of the image. Unsharp Masking compresses the dynamic range to make it more visible to the eye.
Step 4: Apply an Unsharp Mask to the Image. Invoke the Unsharp Mask Tool and apply a Gaussian mask with
a radius of 3 and a contrast of 4. Click the Auto Min/Max button on the Image Display Control window to see the entire
range of brightness in the image. See how much hidden detail
was brought out using the Unsharp Mask Tool.
When you are finished, close any open images.
Deconvolution
Deconvolution as a technique for restoring astronomical images became really well known when it was discovered that
the Hubble Space Telescope mirror was flawed. The near miraculous ability of this computationally intensive technique
saved the day for NASA, and, judiciously applied, can be
used to reduce the effects of atmospheric seeing and slightly
less-than-perfect focus in your own images. In this tutorial we
22
Image Enhancement
Process
high-frequency
components
only. In general, deconvolution has its
AIP4Win Tutorials
on the Enhance|Wavelet Spatial Filter... menu item, and the
Wavelet Spatial Filter tool will open. This tool is divided into
four panels with the following controls:
24
AIP4Win Tutorials
tive contrast of the image. For now, leave
this set to 1.
Now click Apply and a copy of the FFT image appears,
but it is bright in the center and darker toward the edges,
showing the effects of having been multiplied by the filter
mask. Remember, this display is just a representation of the
FFT of the image. The real FFT is a pair of complex, floating
point arrays containing the real and imaginary frequency
components of the triangle image. You cannot directly edit
the FFT.
Step 5: Perform an Inverse FFT. Now click on the
Butterworth Filter masked version of the FFT that was just
produced to make sure it is active and then click the Enhance
|Manual FFT|Inverse FFT menu item. A fuzzy version of
the original triangle will appear. This fuzziness is caused
by the high frequencies associated with the abrupt transition
from pure white to pure black at the edges of the triangle.
Step 6: Experiment. You can use the FFT Mask Generator to create different filters that have a number of effects
on the triangle image. Just repeat steps 3, 4 and 5 above, using
different parameters for the Butterworth Filter.
Close all the images except for the original triangle.fts
image when you are done.
Step 7: Auto FFT. Performing FFT filtering manually
is a complicated process. AIP4Win provides an automated
tool to do this for you. Click the Enhance|FFT Filter menu
item. The Butterworth FFT Filter window will appear.
At first glance this looks just like the FFT Mask Generator window, but note that the Filter Size radio buttons are
missing, and the controls from the Mask FFT window have
been added. This tool will automatically take the selected image and float it on a larger one, if necessary, to bring it to the
required square, power-of-2 dimensions needed by the FFT
algorithm. It will then automatically run each of the steps listed above, and you will be able to see the individual windows
appear as the steps are performed.
Select the triangle.fts image, and then set up the filter
as follows:
Filter Shape: Low Pass
Filter Order: 4
Low-Pass Radius: 4
Base Value: 0
Contrast: 1
Click Apply and watch what happens. The result should be a
series of images flashing by, leaving a very fuzzy version of
the original image.
Step 8: Try a Real Image. Open the 030119204.ccd
image from the Image Enhancement tutorial directory. Invoke the Auto FFT Tool and set it up as follows:
Filter Shape: High Pass
Filter Order: 1
High-Pass Radius: 16
Base Value: 0
26
Contrast: 1
Click Apply. A new image will be generated which is a greatly sharpened version of the original. You may want to raise
the Min. Pixel Value control on the Display Control window
to improve the contrast. You can use the Brightness Scaling
Tool to adjust the contrast as well.
Try out different settings on the Auto FFT Tool to see
how they affect the appearance of the final image. Like all the
other tools, it pays to experiment to get comfortable with how
it will perform.
Close all open images when you are finished.
AIP4Win Tutorials
ally, selecting stars in opposite corners works the best.
There is an excellent candidate at X = 286,Y = 138. If
the image covers the Display Control window, you can move
it over a bit until the window is visible, or reduce the image
size by zooming to a value less than 100%. Click on this star,
and a circle will appear around it. Now click the Star 1 button,
and a yellow circle with the number 1 below it will appear
around the star.
There is another good candidate at X = 1136,Y = 916.
Click this star, and then click the Star 2 button. A yellow circle
will now appear around this star with the number 2 below it.
If for some reason you decide to try a different set of
stars, the Clear button allows you to clear your selection and
start over. Go ahead and click the Clear button and select the
same stars again.
Dont worry about selecting the exact center of the star;
AIP4Win has an excellent centroiding routine that mathematically determines the exact center of the star. It can, however,
be fooled if the track radius is set so large that multiple stars
fall within inside its boundaries. In this case, it will find the
center of mass of the group of stars and center on that.
Notice that as you select each star, a message displaying
the stars elongation is displayed in the Status box. Knowing
this value can be used to help you select a value for the Elongation Limit when the Skip frames with elongated stars box
is checked. This feature of AIP4Win will automatically reject
frames with tracking errors. We will not be using this feature
in this tutorial, as the set of images we are using is quite well
tracked.
Notice also that the Track Radius control is disabled
once you select the first alignment star. If you need to adjust
this value, you will need to click the Clear button in order
make this control active again.
If you wish to manually inspect your star images as you
select them, use the Magnifying Glass tool to zoom in on a selected region of the image without changing how it is displayed.
Step 8: Start the Track & Stack Operation. Now we
are ready to start the Track & Stack operation. For this tutorial
we will use the Manual Slave Alignment Star Selection option. Make sure the Manual button is clicked. In manual
mode, the user must select the alignment stars in each subsequent image. A guide is provided to show you where
AIP4Win thinks the guide star is. If the images are welltracked, and the Track Radius is set large enough, you can use
Automatic mode and AIP4Win will find the stars for you.
Now click the OK button, and you will be presented with
each of the remaining images in turn. A Manual Alignment
panel will also appear as an extension at the bottom of the AutoProcess Multiple Images tool window. The stars you selected on the master image are displayed with numbered yellow
circles.
If the yellow circles contain your alignment star selections, all you need to do is to click OK. If they dont line up,
28
just click the correct stars and the Star 1 or Star 2 button, and
then click OK. You can correct the position of either star.
If an image shows signs of obvious tracking errors, satellite trails, or has other defects, you can click Skip to skip it.
Skipped images are not added to the stack.
This image set was nicely guided, and AIP4Win will follow the alignment stars as best it can as they drift across the
frame from image to image, so you will most likely be able to
click OK for each image without needing to correct the alignment star position.
When it is finished you will see a nice, deep image of
the Waterfall portion of the Veil Nebula that has much less
noise than any of the individual images in the set. Right-click
on the image to bring up the Image Status window and select
the History tab. A description of the Track and Stack operation is stored in the FITS header when you save the file. This
record keeping is performed for each tool in AIP4Win and allows you to see how each image was processed.
Click the Close button to dismiss the Auto-Process window. Restore the Auto-Process Log and scroll down through
it. You will see the coordinates of the alignment stars in each
image and see how the images were translated, rotated and
scaled to bring them into alignment.
Multi-Image Processing
With the Multi-Image feature, AIP4Win provides you with
the ability to process a whole nights worth of images automatically. Multi-Image processing is performed similarly to
the Track & Stack processing. Instead of selecting the Stack
process type, if you select Individual Files, the images will be
calibrated and saved to separate files instead of being
summed together. The Auto-Process Tool provides a set of
the same basic image enhancement functions we used in the
Image Enhancement tutorial, and they can be applied automatically to each image.
When you choose individual image processing, you are
presented with the ability to choose a format to save your images, and to select where they are saved.
Multi-Image Alignment
You can also choose to align a set of images without stacking
them. This is provided so that you can combine the images using the Movie Tool into an AVI movie that can be played
back on any PC running Windows. Several movies have been
provided on the CD-ROM that have been created using this
technique.
Multi-Image Alignment is performed when you select
Individual Files for the Process Type and select 1 Star or 2
Star Alignment and select a Master Frame. Other than that, it
is identical to Multi-Image Processing as described above.
Deep-Sky Images
curate sub-pixel registration; and then blink them to search
for asteroids.
The image files can be found in the Image Registration
subdirectory of the Tutorial directory on the CD-ROM. We
used one of these files earlier in the Astrometry tutorial (Section C.4). They consist of a pair of images, taken just 26 minutes apart, of a trio of asteroids. We will use the Register
Images Tool to align one image with the other; then we will
use the Blink Images Tool to quickly alternate the view between the two. The result will be that the asteroids will appear
to hop back and forth while everything else stays in place.
For this tutorial, be sure that Auto Lo/HiStretch is selected as the default display mode in the Image Display Control
window.
Step 1: Load the Images. Load
the
images
ah102dad.fts and ah102dcd.fts from the Image Registration tutorial directory.
Step 2: Invoke the Register Images Tool. Click
on
the Multi-Image|Register Images menu item and the Image
Registration Tool window will appear.
Step 3: Select the Reference and Subject Images. The
Register Images Tool window has a drop-down listbox labelled
Master Image. In this drop-down listbox select the
ah102dad.fts image. Click the Select Slave Images button,
and a dialog pops up with a pair of lists. The left list shows all
the currently loaded images. The right list is empty. Select
ah102dcd.fts from the left list and click the Add>> button.
The Register Images tool can register a number of images to a
common master. For this tutorial we will only be registering
one. Click OK when this is done.
Step 4: Register the images. Click the Register Images button and the master image (Ah102dad.fts) will be activated (its title bar will be highlighted). Find a clean star image
in this image, click on it, and then click the Star 1 button. Next
select a second star and click the Star 2 button. Then click the
OK button. A pair of green circles will identify the stars you
selected. The first slave image will now be activated, and a
pair of yellow circles will identify the positions of the stars
you selected from the master image. If the selected stars are
inside the circles, click OK; otherwise, identify and mark the
correct stars and click OK. The slave image will now be
aligned in register with the master. If multiple slave images
were specified, you would be presented with each image in
turn until they were all aligned.
To get the best image registration, select alignment stars
that are as far apart as possible. When the subject image is
aligned, it is translated, rotated and scaled to match the reference image. Selecting stars that are too close together will reduce the accuracy of the calculations used to determine the
rotation to be applied.
Step 5: Invoke the Blink Images Tool. Click on the
Multi-Image|Blink|Images menu item and the Blink Images Tool window will appear.
Deep-Sky Images
Up to this point, the tutorials have been focussed on specific
features of AIP4Win. This and the following tutorial demonstrate using a group of AIP4Win functions to solve typical image processing challenges. This tutorial focuses on enhancing
deep-sky images.
The task to be performed in this tutorial is the calibration and enhancement of a typical track-and-stacked deep-sky
image. Images of this type share a number of common characteristics.
AIP4Win Tutorials
30
will see a salt and pepper noise pattern typical of a short dark
frame for the CB245 camera with the Low Dark Current feature turned off. If you run the cursor around the image, you will
see that the variation from pixel to pixel is only a few ADUs. If
you fire up the Pixel Tool and sample groups of pixels randomly, you will see a standard deviation of less than one. This
shows that the frame is pretty consistent. When you are finished examining these files, close any open images.
Examining your calibration frames is a good practice to
make sure that no pathological problems exist. Any problems
that appear in your calibration frames will appear in any images you process with them. Weed out the defective frames
now, before they cause you any trouble.
Fortunately, this is a high-quality image set, and you
will not need to discard any frames.
Step 3: Set Up Advanced Calibration. The advanced
calibration protocol allows us to use the automatic dark
matching feature of AIP4Win, and it is the preferred method
of calibrating images. It only requires that the bias value of
the camera be known, or that a bias frame be available. It allows a set of dark frames to be used that may be of a different
(preferably longer) exposure time or taken at a slightly different temperature.
Click the Setup Calibration button on the toolbar, or use
the menu item to open the Calibration Setup window. When
the window opens, select the Advanced calibration protocol
and activate the Bias tab, and select the Use Constant bias
button and leave the value at its default of 100. Activate the
Dark tab and click the Select Dark frame(s) button; then select
the files 1240drk.fts through 5240drk.fts. After you click
Open in the file dialog box, the green light next to the Select
Dark frames(s) button should go on. Click the Median Combine and Automatic Dark Matching radio buttons; then click
the Process Dark Frame(s) button. The dark frames you selected will now be median-combined, and a table of all the hot
pixels will be created for use in the dark matching function.
Click the Process Dark Frame(s) button, and you will see that
the Subtract Dark Frame box is checked.
Next set up the flat-frame correction. Select the Flat tab
and then click the Select Flat Frame(s) button to invoke the
Select Flat frames dialog. Select the files Flat001.fts
through Flat010.fts and click Open; the dialog box will
close and the green light next to the Select Flat Frame(s) button will turn on. Click the Median Combine radio button in
the Flatframe Correction area to set this mode for combining
the flat frames. Check the Subtract Flat-Dark box, and the Select Flat-Darks button will become enabled. Click it and select the files Drflt001.fts through Drflt010.fts for use as
flat-darks and click Open. Select the Median Combine radio
button in the Flat-Darks area as well. Finally, click the Process Flat Frame(s) button, and the master flat frame will be
created, finishing your calibration setup.
Since we are not performing defect correction for this
exercise, this completes the setup for calibration. Dismiss the
Deep-Sky Images
Calibration Setup window by clicking the Close button.
Step 4: Set Up and Run the Deep Sky Auto-Process
Tool. To bring up the Deep Sky Auto-Process Tool, click on
Multi-Image|Auto-Process|Deep Sky. Select the files
Helw1.fts through Helw4.fts, and set the Process Type to
Average Stack. Initialize the following controls to their indicated settings:
Calibrate Image should be checked
2X Resample should be checked
Prescale should be left unchecked
Scale Factor is not used
Noise Filter should be left unchecked.
Now activate the Alignment tab and select the file Helw1.fts
on the Select Master Frame drop-down list. Select 2 Star for
the alignment mode and set the Track Radius to 12.
The Master Image window should now be visible; click
on the star at X = 58, Y = 67, and click the Star 1 button to
choose it as your first alignment star. Pick the star at
X = 680,Y = 407 as Star 2. If it is not already selected, select
Automatic as the Slave Alignment Star Selection mode.
These images were guided well, so we will let AIP4Win take
care of stacking these images for us. Click OK.
Watch as AIP4Win flashes each image on the screen,
calibrates it, and produces a stacked image. The process is
finished when the image, now two times larger, is displayed
as an image labelled Track & Stack: Average of 4 images.
You can now close the AutoProcess Multiple Images window; it has completed the job you asked it to do.
Step 5: Square Up the Image Pixels. Since this image
has been resampled by 2x during processing, it no longer conforms to any known CCD camera chip size. If this image is
ever read back into this program, or any other image processor, it will be displayed with an incorrect aspect ratio, because
the program will not know the pixel size. To prevent this, we
need to resample the image to square up the pixels.
Click on the Transform|Resample menu item to bring
up the Resample Tool. Make sure the By Percentage tab is active and set the Resample to: value to 100%, if it not already
set. Check the Make Pixels Square box and click Resample
Image. A new image will be created in which the pixels are
square. Because AIP4Win automatically displays images with
the correct aspect ratio, where possible, the image will not
look any different; but if you bring up the Image Status tool
by clicking the Measure|Statistics|Image... menu item and
look on the Specs tab, you will see that the original image
was 756 x 484, and the resampled image is 756 x 562.
Step 6: Save the Stacked Image. Save the image you
just created in your C:\Windows\Temp directory, or another
of your choosing. Click the Save Image in FITS Format button
on the toolbar. (This is the picture of the floppy disk with a
red F on it. A Tool Tip will appear if you float the cursor
over the button.) The Save Image as FITS File window will
appear, giving you a choice of FITS formats, as well as the
option to edit the various FITS header fields and save the file.
AIP4Win Tutorials
notice the Min and Max Pixel Values. They show a reasonably wide range, over 2,400 ADUs wide, depending on the region that you cropped. This range will give us a good deal of
data to work with. You can better visualize this if you invoke
the Histogram Tool to display the image histogram.
Step 10: Histogram Shaping. You can use the Histogram Shaping Tool to bring out more detail in the image by
redistributing the histogram to create more contrast between
the available brightness levels. Invoke this tool and try some
of the available histogram shapes to see which ones provide
the most pleasing results.
Step 11: Brightness Scaling. This is another useful
technique for bringing out image detail. Invoke this tool and
experiment with the different scaling types while adjusting
the scaling range. The preview feature of this tool and the
Histogram Shaping Tool make it easy to evaluate your settings quickly.
Planetary Images
This tutorial shows you how to process planetary images using AIP4Win. These share characteristics that make them
quite different from deep-sky images:
These features are common to most whole-disk images. Lunar images present their own special challenges.
For this tutorial we will start with processing an image
of Jupiter. This image can be found in the Planetary Images
subdirectory of the Tutorial directory on the CD-ROM.
Step 1: Load the Image. Load
the
image
M0611029.fts. If you have Auto-Scale turned on, the planet
should appear very bright and washed out. You can enhance
the contrast by moving the White control up a bit, and the
Gamma control down a bit, until the belts are more visible.
We will use the Brightness Scaling Tool later to make this
change permanent.
Step 2: Center the Planet. The planet was not centered well on this image. This is pretty typical when you are
shooting large numbers of planetary images, searching for
that fleeting moment of perfect seeing. Click on the
Transform|Center Planet... menu item and a small window
32
Color Images
Relaxation Parameter: 0.1
Click Execute Deconvolution. Shortly, a new image will appear in which the belts practically jump right off the screen.
This is a very powerful technique for planetary processing.
Compare the original image with the results you obtained using these techniques. An image that you might have
discarded as bland ended up revealing a tremendous amount
of detail.
Color Images
This tutorial demonstrates the basic color operations of
AIP4Win.
The files used in it may be found in the Color subdirectory of the Tutorial directory on the CD-ROM. The files comprise a calibrated RGB image set of the Eagle Nebula, M16,
taken by Neil McMickle of Stanhope, New Jersey, using a
MX716 CCD camera and a set of RGB dichroic filters and an
IR-blocking filter through a 4-inch fluorite apochromatic refractor. In this tutorial we will register four individual filtered
exposures and combine them into a single, color image.
Step 1: Load the Component Images. Load the four
images found in the Color Images tutorial directory. They
consist of the following:
AIP4Win Tutorials
34