Experiment with CCD Camera Images: Difference between revisions

From AstroEdWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
For an astronomer, an image is not necessarily a pretty picture. Indeed the information in
For an astronomer, an image is not necessarily a pretty picture. Indeed the information in each image usually goes far beyond what you can see at first look. Image processing is the technique by which an image can be transformed to reveal (or suppress) selected features, or to extract quantitative information in other forms.
each image usually goes far beyond what you can see at first look. Image processing is the
technique by which an image can be transformed to reveal (or suppress) selected features,
or to extract quantitative information in other forms.


There are three programs we use often in astronomy to acquire, analyze, and modify images:
Often we need specially designed programs in astronomy to acquire, analyze, and modify images.  In this activity you will use a web-based Java version of a program called "DS9", which may be a familiar name for Star Trek fans.  For more information, and a version you can install on most computers, visit the websites of the research group that maintains the software.


*SAOImage ds9
<center>
*Aladin
[http://hea-www.harvard.edu/RD/ds9/ SAOImage ds9 software to run on your computer]
*ImageJ or AstroImageJ


We may use these in different instances because they offer a different set of features. Aladin, for example is excellent for comparing images with one another and with astronomical data bases, and for making quick color images from several images through different filters. SAOImage ds9 is versatile for acquiring images and interacts in real time with our cameras.  ImageJ, written and maintained for biomedical imaging, can be modified for special tasks, and is ideal when we are measuring the brightesses of stars.
[http://js9.si.edu/ SAOImage js9 runs in your browser]
</center>


In this activity we will use ImageJ because it provides for sensitive control of the colors in an image and preserves all of the information of the original data.
For our purposes we will provide a website so that you do not have to install anything.  You will need a fairly modern browser for this, preferably Firefox or Chrome, but it should work even on or phone or tablet running IoS or Android.  Your comments and suggestions would be appreciated because is a new way of doing this for us to.




== The basics ==
==The Basics==


Astronomical images are most often created by placing an electronic detector such as
Astronomical images are most often created by placing an electronic detector such as a Charge Coupled Device camera at the focus of a telescope. CCD cameras have an array of sensors exposed to light focused by the telescope. Each sensor records the light from its share of the image. At the end of an exposure, a computer reads them and measures how much light was received point by point in the image. An element of this record is called a ''pixel''. Just as in the camera of your cell phone, state of the art large telescopes use millions of pixels per CCD detector, and may have arrays of detectors side-by-side to cover large swaths of the sky.  We use a camera ourselves in other activities.  First, however, we will see how we can view and measure the data they return.
a Charge Coupled Device camera at the focus of a telescope. CCD cameras have an
array of sensors exposed to light focused by the telescope. Each sensor records the light from its share of the image. At the
end of an exposure, a computer reads them and measures how much light was received point by point in the image. An
element of this record is called a ''pixel''. Just as in the camera of your cell phone, state of the art large telescopes use millions of pixels per CCD detector, and may have arrays of detectors side-by-side to cover large swaths
of the sky.  We use a camera ourselves in other activities.  First, however, we will see how we can view and measure the data they return.


We will work with four images recorded in short exposures with our CDK20 south telescope at Mt. Kent, in Queensland, Australia.  We have selected images of the Tarantula Nebula, a region of gas and young hot stars in the nearby Large Magellanic Cloud galaxy.  There are four images in the data set, taken on the night of October 4, 2010, at about 15:50 UTC
We will work with four images recorded in short exposures with our CDK20 south telescope at Mt. Kent, in Queensland, Australia.  We have selected images of the Tarantula Nebula, a region of gas and young hot stars in the nearby Large Magellanic Cloud galaxy.  There are four images in the data set, taken on the night of October 5, 2010, at about 15:50 UTC (about 1:50 AM) by Dr. Rhodes Hart.  Each one is a 30 second exposure -- short by astronomical standards, but just long enough to get the nebula without completely saturating the bright stars.  He took 4 images through 4 different filters, each one seeing sky in a different range of wavelengths or colors:
by Dr. Rhodes Hart.  Each one is a 30 second exposure -- short by astronomical standards, but just long enough to get the nebula without completely saturating the bright stars.  He took 4 images through 4 different filters, each one seeing sky in a different range of wavelengths or colors:




[[File:Ubvri_filters.gif |center]]


[[File:ubvri_filters.gif | center]]
<center>
UBVRI Filters B:(375-490 nm)  V:(490-580 nm)  R:(570-690 nm)  I:(725-1025 nm)
</center>


<center> B:(375-490 nm) V:(490-580 nm)  R:(570-690 nm)  I:(725-1025 nm) </center>
The filters are chosen for making precision measurements of the light from stars, not necessarily ideal for making color images that match what the eye sees.  The eye is most sensitive at 550 nm, and only 10% as sensitive at 475 nm in blue, and 650 nm in the red. The CCD camera can sense wavelengths as long as 1100 nm.




The filters are chosen for making precision measurements of the light from stars, not necessarily ideal for making color images that match what the eye sees.  The eye is most sensitive at 550 nm, and only 10% as sensitive at
[[File:Ngc2070 R 104d log nsew.jpg | center | 600px]]
475 nm in blue, and 650 nm in the red. The CCD camera can sense wavelengths as long as 1100 nm.


<center>
Tarantula Nebula - NGC 2070 - Red Light "R" Filter
</center>


Click the links to download the images to your own computer, or if you doing this in the astronomy lab, look for them in the directory called "Image Processing". 


*[http://prancer.physics.louisville.edu/classes/108/topics/image_processing/ngc2070_I_ij.fits  ngc2070_I_ij.fits through the I filter]
We have already processed the images by subtracting the response of the camera to no light (a so-called "dark frame"), and by aligning the images so that when superimposed the stars and other features register. We have not added celestial coordinates, but later for another example we will show you how that works too.
*[http://prancer.physics.louisville.edu/classes/108/topics/image_processing/ngc2070_R_ij.fits  ngc2070_R_ij.fits through the R filter]
*[http://prancer.physics.louisville.edu/classes/108/topics/image_processing/ngc2070_V_ij.fits  ngc2070_V_ij.fits through the V filter]
*[http://prancer.physics.louisville.edu/classes/108/topics/image_processing/ngc2070_B_ij.fits  ngc2070_B_ij.fits through the B filter]


We have already done some processing on them for you by subtracting the response of the camera to no light (a so-called "dark frame"), and by aligning the images so that when superimposed the stars and other features register.
==Use JS9==


You are used to seeing an image that has been adjusted to show you a scene the way it appears to your eye.  For astronomy the objects we study often emit light our eyes cannot see -- a wavelengths our eyes cannot detect, or so faint they cannot be sensed.  We can manipulate the "mapping" of the data to something our eye can see, and create a display that helps us to understand the science better.  These images are often quite beautiful too, as a visit to the Space Telescope website will show you.


The link below will take you to our website and offer a tool to view images of the Tarantula Nebula.  The software is called "JS9" because it is a "java" version of "DS9".  Click on the link below and your browser should open a separate window running the software.  It will not display an image until you go to that window and select which image(s) you want.


<center>
http://www.astro.louisville.edu/js9_examples/js9_ngc2070_tarantula_rgb.html
</center>


==Load the Images==


== Use ImageJ ==
When you go to this link, images will  load from the website when you click a link lableld for "B (blue)", "V (green)", "R (red)" or "I (infrared)".  Each time you click one you will see the latest image display on the screen.  ''File'' in menu bar allows you to select an image from among all of those that are loaded.


To load the three images taken in visible light:  R, G, and B.  You do not need the I image yet.  The order is not important because you can control what color each one is displayed in.    You may, however, not easily see an image once it has loaded unless the scale is set.  Allow some time for the image to appear, and then select


If your own computer will run Java, then you may load ImageJ or run it from the web site.  It is already installed on the computers in the astronomy lab.  To access ImageJ from your own computer, use this link to our servers:
*Scale -> Linear
*Color -> Grey


<center>[http://www.astro.louisville.edu/software/astroimagej/imagej/ ImageJ for Astronomy]</center>
for each one. Now you can pick which image you are viewing with the File menu.


Select "Download ImageJ for your own computer"We have a version that has additional features for astronomy, but you won't need those for this activity.
Notice that as you move the cursor around there will be a value displayed in green, and a pair of coordinates (x,y) marking where the cursor is on the imageThe value is proportional to how much light the image recorded at that point.  The coordinates are individual pixels, sensitive regions that capture the photons the telescope focuses onto the CCD detector.


Once you have the software running you'll see a window that looks like this:
Try the R (red) image as an example.  Go to the Scale menu and select the various options:


<center>[[File:imagej_window.jpg]]</center>
*Linear
*Log
*Pow
*Sqrt
*Squared
*Asinh
*Sinh


Click on ''File'' in menu bar to select an image. Other entries offer different options for display and processing.  The best way to learn what they can do is to try them out once you have one or more images on the screen.
These are different ways of "mapping" the data onto the display.  If you are comfortable with simple math, think of the image you see as made of various intensities from 0 to 255. The data that we have from the telescope contains numbers from 0 to some arbitrarily large value representing how many photons (how much light) arrived at that sensor while the shutter was open.  We need a "map" that takes us from the number that is stored (the science) to the image you see (your mind). A linear map is simply proportional to the stored signal, a log map is the logarithm of the signal, a power (Pow) map is a power of the signal, a square root map (Sqrt) is the square root of the signal, and a squared map is the square, the signal multiplied by itself.  The other two are arc hyperbolic sine and hyperbolic sine, which for our purposes just provide ways of seeing a very wide range of signal data in the limited range of 0 to 255 values the computer displays can present.


Pick any map (no harm in trying them all), and then press the mouse button while you run the mouse left-right over the image. Notice how the image changes, and that what you see is very sensitively controlled by where you put the mouse.  It is different for each of the Scale selections, that is, for the different possible maps of the data to the display.  Let the software do the work, and find a setting that shows you detail in the nebula.


==Make a Color Composite==


'''Load the images'''
The smallest value in all three images should be around 0, the largest probably less than 32767.  A bright star might be 16000 or so, but the nebula that is hidden in this image is only a few 100.  If we used a scale of 0 to 255 with the star as 255, then the nebula would be around 255 * 100/16000 = 2.  You would not see it. That's what happens on the display you are looking at.  It takes a value from 0 to 255 and turns that into a brightness on the screen.  That is why we have to choose a useful scale and carefully select the display to see both stars and nebula.


Load the three images taken in visible light ''in the order'' R, G, and B:
Let's make a color composite image so that we can work with this and see the colors. Go to the Color menu and select "RGB":


*File -> Open -> ngc2070_R_ij.fits  "R" is red
*Color -> rgbMode
*File -> Open -> ngc2070_V_ij.fits  "V" is the astronomer's visual or green
*File -> Open -> ngc2070_B_ij.fits  "B" is blue


It's important to do them in this order because we will make a color image out of them, and the order determines which file becomes which color.
Now you can assign one of images to appear in red, one to appear in green, and one to appear in blue.  Logically you would make the R (red) image show up in red, the V (green) image in green, and the B (blue)  image in blue.  You do not have to do it this way though.  It's up to you.  Try the conventional way first, and then play with other options to see what you can discover in these data.


These will appear  as ''32-bit'' images, that is values stored in them can be from large negative to
Now when you pull down the "Color" menu you will see "rgbMode" with a dot next to it. Assign a color to each of the R, V, and B images:
large positive numbers.


Run the cursor around and look at the values in the ImageJ control window and you'll see something like this
*File -> ngc2070_B and Color -> blue
*File -> ngc2070_V and Color -> green
*File -> ngc2070_R and Color -> red


<center> x=1620 y=1090 image -9528.0 </center>
Use the linear scaling for all images.  Adjust with the mouse on each one to balance the colors, make the background black, the bright stars white, and bring out some of the nebula.


but it will change as you move the cursor around.  The ''x'' and ''y'' are the coordinates of the pixel, and ''image'' is the value representing how much light fell on the image at that spot during the exposure.  The numbers may be negative!  Oddly that may happen because of how they are stored in the file.  Just remember that it's all relative to the lowest possible value, which would be black if no light fell in that spot.  For these images black reads -32768.  
   


The first thing you should do, then, is to process the images to change all the numbers in themSince there are abotu 18,000,000 values in all three images, it's good to know how to make the program do this almost instantly.
The remaining (difficult and arty) step is to get a color balance that you think is reasonable. The camera is more sensitive to red light than it is to blue light (as is your eye), and slightly more sensitive to red than green.  Your eye is more sensitive to green than to red or blue.  You can compensate for the lower sensitive for blue by increasing its importance in the final imageThen experiment with the green and red to see if there is a combination that makes the nebula and stars look white while the background is dark and nearly black.


You can now pan around the full image (which is 2x larger than what you see in one view) by selecting


Select the "R" image by a mouse click on the top bar of the window.
*View -> Panner


Process -> Math -> Add -> Value: 32768 -> OK
and experimenting with moving the box in that additional window using your mouse.  Hint: the image that shows in the Panner window is not the composite, but the selected image in File.


Repeat for the other two windows.
Look around this image and you should be able to find a few stars at are much redder than the others.  These are stars that are brighter in the "R" filter than they are in the B and V filters.  Stars of this type, that are red and very luminous, are typically red giant stars that have aged  off the main sequence, that is, these are dying stars.  You can see now that by using different filters, and managing how data are displayed, you can study the properties of individual stars in a cluster like the one at the center of the Tarantula nebula.




'''Make a stack'''
''1.  What are the x and y coordinates of the red star that is close to the center of the Tarantula?''


Notice that we did this operation on each image, one by one.  It's simpler to manage several images at once by placing them together in what is called a ''stack''.


''2.  There are also some other somewhat fainter red stars off center that you may need to use the panner to find.  Where are they? Some stars are a little more blue than white too, but they are harder to identify by eye.''


Convert all the images to one stack with this simple action
==Compare to the Sky==


Images -> Stack -> Images to Stack -> OK


We need to see what this nebula looks like in the Digital Sky Survey that is a reference archive of the whole sky.  One way you can access this through Sky-Map with the web site


Now there is a slider at the bottom of the image display, and if you move it from left to right you select one of the three images.  Use the lower slider to select the red image of the stack.  Notice that as
you move the slider to the right there are three positions, and the "R", "V",
and "B" image names will appear sequentially in the label of the image window.
Select the leftmost position of the slider to have the red image.


If the new image display range after the math operation makes everything white,
<center>
then the image may seem to be empty. Just run the cursor around and you'll see
http://www.sky-map.org/
that the value changes from place to place.
</center>


Once you are in that site, enter ''Tarantula'' in the search box and you'll see an image of the nebula in the Large Magellanic Cloud.  Compare that with your image and see if you can figure out how your image must be transformed to match the north up and west to the right standard. This is the sky as you would see it by eye, looking up and facing south in the southern hemisphere.  West would be on your right, east on your left, north up and behind you, south (and the south celestial pole) down in front of you.  Images taken with telescopes can have an aribitrary orientation, and even be flipped up-down or left-right.


Use


Image -> Adjust -> Window/Level -> Auto
''3.  Which way is north and which way is west  in these images?''


on the red image.  You can experiment with the sliders, but for a start simply let the software do
its work with "Auto" which will adjust all three layers of the stack. You wil probably see some stars, but not much detail.  The detail is in the low
signal levels that are not bright enough on the screen to see.


At this point if you are happy with the result you may save the stack by using
The Tarantula Nebula is about 170,000 light years away, in another galaxy.  It's as far as our telescopes can pick out individual stars at birth, and at that mostly the brightest ones.  You'll notice some stars in the image are very red.  These are most likely red giants, massive stars that have already used their supply of hydrogen in their core, and are evolving toward becoming a supernova. 


File -> Save as -> Tiff  and then enter a name that you will remember, perhaps  mystackname.tif
There is an image of the Tarantula taken with a 1.5 meter telescope of the European Southern Observatory on their website that is also worth comparing to yours.
 
You may load this file and be back at this step instantly should something go wrong
later.
 
 
'''Make a color composite'''
 
The smallest value in all three images should be around 0, the largest probably
less than 32767.  A bright star might be 16000 or so, but the nebula that is
hidden in this image is only a few 100. If we used a scale of 0 to 255 with the
star as 255, then the nebula would be around 255 * 100/16000 = 2.  You would not
see it. That's what happens on the display you are looking at.  It takes a value from 0 to 255 and turns that into a brightness on the screen.  At each element you see on the screen there are three numbers from 0 to 255 that tell the display how much red, green, and blue light to show.
 
Let's make a color composite image so that we can work with this and see the
colors.
 
Image -> Color -> Make composite
 
The first image will be red, the second green and the third blue.  You'll see
the color composite of all three on the screen.  Each layer has its full range
of data, but what you see is limited by the screen's display to a range from to
255 values.


You should also see a "Channels Tool" on the screen that will allow you to turn off
the effects of one or more layers.  For now, keep them all on. Use the bottom
slider to be sure you have the first layer selected. 


<center>
[http://www.eso.org/public/images/tarantula/ ESO's Tarantula image]
</center>


Use
==Compare the Infrared==


Image -> Adjust -> Window/Level -> Set
and enter
Window Center: 500
Window Width: 1000
This means that values from 0 to 999 will be in the range from black to fully
"on" on the screen.  The bright parts of the image will probably look red.
Now select green "V" image and do this again, and then the blue "B" image.
The composite image you see will now probably look yellow.  Much of the faint
detail will be visible, but many bright stars will be white.
'''Modify the color'''
The remaining (difficult and arty) step is to get a color balance that you think
is reasonable.
The camera is more sensitive to red light than it is to blue light (as is your
eye), and slightly more sensitive to red than green.  Your eye is more sensitive
to green than to red or blue. 
You can compensate for the lower sensitive for blue by increasing its importance
in the final image. Select the blue (right) layer with the lower slider
and set its image levels to something like this
Image -> Adjust -> Window/Level -> Set
   
   


Window Center: 100
So at this point you are probably frustrated by the detail and the learning curve of the software, so let's make something our eyes cannot see. The I or infrared image is taken at wavelengths we call "near" infrared, just beyond the red part of the spectrum.  It will show cool stars, and will not see hydrogen gas which emits red light at 656 nm and blue-green light at 486 nm, but nothing in the I band.  Let's see what the nebula would look like in false color, where the infrared is displayed as red, red light is displayed as green, and green light is displayed as blue.  We'll skip the blue image, and load instead these three
Window Width: 200


Then experiment with the green and red to see if there is a combination that
*File ->  ngc2070_I  "I" the infrared image use Color -> gray
makes the nebula look white with a green cast.
*File -> ngc2070_R  "R" the red image  use Color -> gray
*File -> ngc2070_V  "V" the visible light or green image use Color ->gray
*File -> ngc2070_B  "B" the blue light image, select "Close image" to make it go away.
*Color -> Deselect rgbMode


As a trial you might try
You should now have simply all three (I, R, and V) in the File menu and displaying gray.  Adjust each one so they look about the same, the for each one change the colors so that I is red, R is green, and V is blue.  Now turn on rgbMode again and you'll see a false color image in which the infrared is the red part, and visible light is green and blue.




Red: 350/750
''4. What are the coordinates of the star that stands out as bright red now? Make a note of the "image(x,y)" location which you'll use when you report your results.''
Green:  300/600
Blue:  100/200


If you get something you like, save it as a tif file with a unique name.  That
way you can recover it later if you need to.


You may also save a jpg image that you can email, display or modify by saving as
Let's compare the two images you have made.
a jpg:


File -> Save as -> Jpeg


''5.  What do you notice about how the colors of the stars and the nebula differ when you use the infrared "I" filter?  You are selecting very cool stars to be red when you do that.''


'''Make fine detail visible'''
==Orion==


Lastly you can process the composite to create effects to highlight structure.
We have also set up a set of images of the Orion nebula in the same way that we have the Tarantula on the server. Take a look at this link:
When an image is masked, you replace selected pixels in the image with any value you
want. With unsharp masking, an image is intentionally altered to blur it and remove �ne
detail. This fuzzy image is then subtracted from the original to reduce the influence of coarse
structure and leave the detail of the original in an enhanced final image. Let's try this trick
with ImageJ and our color image of the Tarantula Nebula.


Start with the last saved tif, because the next step will destroy the intermediate image.
<center>
http://www.astro.louisville.edu/js9_examples/js9_orion_rgb.html
</center>


For example,
Repeat what we did with the Tarantula, assigning R to red, V to green, and B to blue but using a log scale rather than a linear scale.  Adjust the display so that the background is black and the stars are largely white.  Part of the Orion Nebula will be white where dust is scattering starlight.  However much of it will be another color from the hydrogen gas excited by a hot star at the center.


Process -> Filters -> Unsharp Mask


Radius: 1 pixel
''6.  What color is the emitted by this gas?''


Mask Weight 0.6


will gently highlight the detailIt also makes noise more apparent, so while
For the Orion images we have added celestial coordinates to the data, and as you move the cursor around the image you will see the coordinates changeThere are (x,y) values indicating which pixel is selected, and (right ascension, declination) values indicating where in the sky that pixel is looking.  You'll see numbers like FK5(05:36:40, -05:19:26).  "FK5" is a standard way of calibrating astronomical coordinates, the first set of numbers is the right ascension in hours, minutes and seconds of time, and the second set of numbers is the declination in degrees, minutes and seconds of arc.
larger values are useful on some images, this is about as much as tolerable on
the Tarantula example.


But there are other tricks!  Use a larger unsharp mask radius, and then try a
Look for the very bright white star below the nebulaPut the cursor on the star and find its celestial coordinates.
little "Gaussian blur"It gets very interesting. Be creative, and look for a display that seems reasonable and shows features in the nebula.


''1.  Save the image as a jpg file.  You will need to submit it for credit for this activity.''


''7.  Identify this star by name and location.'' 




== Compare to the sky ==
The easiest way is to use the on-line sky map:
 
 
 
'''Change the orientation of the image'''
 
When a camera is attached to a telescope it may be rotated around in almost any direction.  We'll see too that as a telescope looks in different directions in the sky, the image may have a different orientation on the camera's detector.  Add the complication that either optically or in how the data are stored the image may be inverted top to bottom and/or left to right. Let's see if we can figure out what the orientation of the image you have made actually is, and then modify the image so that north is up and west is to the right, as it would appear in the sky.
 
 
Exit ImageJ if it is still running, start it again, and load the processed color jpg image you saved from your work.  In the ImageJ menu bar there is an entry Image, and under that Transform, which leads to Flip and Rotate options that you will use.  First, however we need to see what this nebula looks like in the Digital Sky Survey that is a reference archive of the whole sky.  One way you can access this through Sky-Map with the web site
 
<center>[http://www.sky-map.org Sky-Map]</center>
 
Once you are in that site, enter ''Tarantula'' in the search box and you'll see an image of the nebula in the Large Magellanic Cloud.  Compare that you your image and see if you can figure out how your image must be transformed to match the north up and west to the right standard.
 
 
Alternatively, you have more control in the display if you use Aladin.  Use our gateway to Aladin
 
<center>[http://www.astro.louisville.edu/software/aladin/  Aladin ]</center>
 
and select the option "Run the Aladin Sky Atlas applet in your browser", or if you already have it installed on your computer you may run it without needing the browser.  After it has started, enter ''Tarantula'' in the search box and Aladin should load a color version of the Digital Sky Survey.  This will be roughly on the same scale as your image.  The color version is over saturated and may be hard to compare with your short exposure image.  Instead, now click the "DSS" button that will load a single gray scale blue image.  At this point you will probably start to recognize the features. 
 
''2.  How must you transform your image (flip and/or rotate) to make it match the image of the DSS with north up and west to the right''?
 
 
The Tarantula Nebula is about 170,000 light years away, in another galaxy.  It's as far as our telescopes can pick out individual stars at birth, and at that mostly the brightest ones.  You'll notice some stars in the image are very red.  These are most likely red giants, massive stars that have already used their supply of hydrogen in their core, and are evolving toward becoming a supernova. 
 
There is an image of the Tarantula taken with a 1.5 meter telescope of the European Southern Observatory on their website that is also worth comparing to yours.
 
<center> [http://www.eso.org/public/images/tarantula/ ESO Tarantula image] </center>


<center>
http://www.sky-map.org/
</center>


== Compare the infrared ==
When the page of this map service opens, put "M42" in the search box and you'll be taken to the Orion Nebula.  Use the zoom, and move the cursor around to see how the right ascension and declination change across this map.  Find the the star that has the same coordinates as the one our image.  You'll notice the pattern of stars too.  The image of Orion on the web is much "deeper", that is, it shows more of the nebula, but the longer exposure also obscures the fainter stars within the nebula and hides their colors.


Just north of M42, the bright part of the Orion Nebula, there is a fainter nebula surrounding some stars. Use Sky-Map to find the NGC designation of this nebula.


The I or infrared image is taken at wavelengths your eye cannot see.  It will show cool stars, and will not see hydrogen gas which emits red light at 656 nm and blue-green light at 486 nm, but nothing in the I band.  Let's see what the nebula would look like in false color, where the infrared is displayed as red, red light is displayed as green, and green light is displayed as blue.  We'll skip the blue image, and load instead these three


*File -> Open -> ngc2070_I_ij.fits  "I" the infrared will be red
''8. What is the NGC number of the nebula centered approximately on RA 05:35:15 Declination -04:53:12?''
*File -> Open -> ngc2070_R_ij.fits  "R" the red will be  green
*File -> Open -> ngc2070_V_ij.fits  "V" visible or green will be blue


Go through the same processes you did to change the zero, create a stack and change the mapping of the intensity to the display in a composite color image. 


Looking at our image of Orion, run the cursor up and down and notice how the declination changes.  It is around -05:20 at the center, that is -5 degrees and 20 minutes of arc.  There are 60 minutes of arc in a degree, so 20 minutes is 20/60 or 0.33 degrees.  That is, close to the center the declination is -5.33 degrees. Now move the cursor up and down and look at the range of angles from the northernmost to the southermost part of the bright nebula at the center.


''3. Save the resulting color jpg image with I, R, and V band components for credit. ''


''9. How many minutes of arc from top to bottom is the angle in the sky covered by the Orion nebula?  Convert that to degrees too by dividing by 60.  Compare it to the full Moon, which is nearly 0.5 degrees across.''


Let's compare the two images you have made. 


Now do the same thing for the entire image.


''4.  Why is the nebula in the infrared composite green, rather than red?
''


''5. Identify a star that is extremely cool compared to most stars in the image.  A cool star emits more infrared light than red light.''
''10. From top to bottom, how large an angle on the sky does this image of Orion cover?''

Latest revision as of 02:12, 3 October 2015

For an astronomer, an image is not necessarily a pretty picture. Indeed the information in each image usually goes far beyond what you can see at first look. Image processing is the technique by which an image can be transformed to reveal (or suppress) selected features, or to extract quantitative information in other forms.

Often we need specially designed programs in astronomy to acquire, analyze, and modify images. In this activity you will use a web-based Java version of a program called "DS9", which may be a familiar name for Star Trek fans. For more information, and a version you can install on most computers, visit the websites of the research group that maintains the software.

SAOImage ds9 software to run on your computer

SAOImage js9 runs in your browser

For our purposes we will provide a website so that you do not have to install anything. You will need a fairly modern browser for this, preferably Firefox or Chrome, but it should work even on or phone or tablet running IoS or Android. Your comments and suggestions would be appreciated because is a new way of doing this for us to.


The Basics

Astronomical images are most often created by placing an electronic detector such as a Charge Coupled Device camera at the focus of a telescope. CCD cameras have an array of sensors exposed to light focused by the telescope. Each sensor records the light from its share of the image. At the end of an exposure, a computer reads them and measures how much light was received point by point in the image. An element of this record is called a pixel. Just as in the camera of your cell phone, state of the art large telescopes use millions of pixels per CCD detector, and may have arrays of detectors side-by-side to cover large swaths of the sky. We use a camera ourselves in other activities. First, however, we will see how we can view and measure the data they return.

We will work with four images recorded in short exposures with our CDK20 south telescope at Mt. Kent, in Queensland, Australia. We have selected images of the Tarantula Nebula, a region of gas and young hot stars in the nearby Large Magellanic Cloud galaxy. There are four images in the data set, taken on the night of October 5, 2010, at about 15:50 UTC (about 1:50 AM) by Dr. Rhodes Hart. Each one is a 30 second exposure -- short by astronomical standards, but just long enough to get the nebula without completely saturating the bright stars. He took 4 images through 4 different filters, each one seeing sky in a different range of wavelengths or colors:


Ubvri filters.gif

UBVRI Filters B:(375-490 nm) V:(490-580 nm) R:(570-690 nm) I:(725-1025 nm)


The filters are chosen for making precision measurements of the light from stars, not necessarily ideal for making color images that match what the eye sees. The eye is most sensitive at 550 nm, and only 10% as sensitive at 475 nm in blue, and 650 nm in the red. The CCD camera can sense wavelengths as long as 1100 nm.


Ngc2070 R 104d log nsew.jpg

Tarantula Nebula - NGC 2070 - Red Light "R" Filter


We have already processed the images by subtracting the response of the camera to no light (a so-called "dark frame"), and by aligning the images so that when superimposed the stars and other features register. We have not added celestial coordinates, but later for another example we will show you how that works too.

Use JS9

You are used to seeing an image that has been adjusted to show you a scene the way it appears to your eye. For astronomy the objects we study often emit light our eyes cannot see -- a wavelengths our eyes cannot detect, or so faint they cannot be sensed. We can manipulate the "mapping" of the data to something our eye can see, and create a display that helps us to understand the science better. These images are often quite beautiful too, as a visit to the Space Telescope website will show you.

The link below will take you to our website and offer a tool to view images of the Tarantula Nebula. The software is called "JS9" because it is a "java" version of "DS9". Click on the link below and your browser should open a separate window running the software. It will not display an image until you go to that window and select which image(s) you want.

http://www.astro.louisville.edu/js9_examples/js9_ngc2070_tarantula_rgb.html

Load the Images

When you go to this link, images will load from the website when you click a link lableld for "B (blue)", "V (green)", "R (red)" or "I (infrared)". Each time you click one you will see the latest image display on the screen. File in menu bar allows you to select an image from among all of those that are loaded.

To load the three images taken in visible light: R, G, and B. You do not need the I image yet. The order is not important because you can control what color each one is displayed in. You may, however, not easily see an image once it has loaded unless the scale is set. Allow some time for the image to appear, and then select

  • Scale -> Linear
  • Color -> Grey

for each one. Now you can pick which image you are viewing with the File menu.

Notice that as you move the cursor around there will be a value displayed in green, and a pair of coordinates (x,y) marking where the cursor is on the image. The value is proportional to how much light the image recorded at that point. The coordinates are individual pixels, sensitive regions that capture the photons the telescope focuses onto the CCD detector.

Try the R (red) image as an example. Go to the Scale menu and select the various options:

  • Linear
  • Log
  • Pow
  • Sqrt
  • Squared
  • Asinh
  • Sinh

These are different ways of "mapping" the data onto the display. If you are comfortable with simple math, think of the image you see as made of various intensities from 0 to 255. The data that we have from the telescope contains numbers from 0 to some arbitrarily large value representing how many photons (how much light) arrived at that sensor while the shutter was open. We need a "map" that takes us from the number that is stored (the science) to the image you see (your mind). A linear map is simply proportional to the stored signal, a log map is the logarithm of the signal, a power (Pow) map is a power of the signal, a square root map (Sqrt) is the square root of the signal, and a squared map is the square, the signal multiplied by itself. The other two are arc hyperbolic sine and hyperbolic sine, which for our purposes just provide ways of seeing a very wide range of signal data in the limited range of 0 to 255 values the computer displays can present.

Pick any map (no harm in trying them all), and then press the mouse button while you run the mouse left-right over the image. Notice how the image changes, and that what you see is very sensitively controlled by where you put the mouse. It is different for each of the Scale selections, that is, for the different possible maps of the data to the display. Let the software do the work, and find a setting that shows you detail in the nebula.

Make a Color Composite

The smallest value in all three images should be around 0, the largest probably less than 32767. A bright star might be 16000 or so, but the nebula that is hidden in this image is only a few 100. If we used a scale of 0 to 255 with the star as 255, then the nebula would be around 255 * 100/16000 = 2. You would not see it. That's what happens on the display you are looking at. It takes a value from 0 to 255 and turns that into a brightness on the screen. That is why we have to choose a useful scale and carefully select the display to see both stars and nebula.

Let's make a color composite image so that we can work with this and see the colors. Go to the Color menu and select "RGB":

  • Color -> rgbMode

Now you can assign one of images to appear in red, one to appear in green, and one to appear in blue. Logically you would make the R (red) image show up in red, the V (green) image in green, and the B (blue) image in blue. You do not have to do it this way though. It's up to you. Try the conventional way first, and then play with other options to see what you can discover in these data.

Now when you pull down the "Color" menu you will see "rgbMode" with a dot next to it. Assign a color to each of the R, V, and B images:

  • File -> ngc2070_B and Color -> blue
  • File -> ngc2070_V and Color -> green
  • File -> ngc2070_R and Color -> red

Use the linear scaling for all images. Adjust with the mouse on each one to balance the colors, make the background black, the bright stars white, and bring out some of the nebula.


The remaining (difficult and arty) step is to get a color balance that you think is reasonable. The camera is more sensitive to red light than it is to blue light (as is your eye), and slightly more sensitive to red than green. Your eye is more sensitive to green than to red or blue. You can compensate for the lower sensitive for blue by increasing its importance in the final image. Then experiment with the green and red to see if there is a combination that makes the nebula and stars look white while the background is dark and nearly black.

You can now pan around the full image (which is 2x larger than what you see in one view) by selecting

  • View -> Panner

and experimenting with moving the box in that additional window using your mouse. Hint: the image that shows in the Panner window is not the composite, but the selected image in File.

Look around this image and you should be able to find a few stars at are much redder than the others. These are stars that are brighter in the "R" filter than they are in the B and V filters. Stars of this type, that are red and very luminous, are typically red giant stars that have aged off the main sequence, that is, these are dying stars. You can see now that by using different filters, and managing how data are displayed, you can study the properties of individual stars in a cluster like the one at the center of the Tarantula nebula.


1. What are the x and y coordinates of the red star that is close to the center of the Tarantula?


2. There are also some other somewhat fainter red stars off center that you may need to use the panner to find. Where are they? Some stars are a little more blue than white too, but they are harder to identify by eye.

Compare to the Sky

We need to see what this nebula looks like in the Digital Sky Survey that is a reference archive of the whole sky. One way you can access this through Sky-Map with the web site


http://www.sky-map.org/


Once you are in that site, enter Tarantula in the search box and you'll see an image of the nebula in the Large Magellanic Cloud. Compare that with your image and see if you can figure out how your image must be transformed to match the north up and west to the right standard. This is the sky as you would see it by eye, looking up and facing south in the southern hemisphere. West would be on your right, east on your left, north up and behind you, south (and the south celestial pole) down in front of you. Images taken with telescopes can have an aribitrary orientation, and even be flipped up-down or left-right.


3. Which way is north and which way is west in these images?


The Tarantula Nebula is about 170,000 light years away, in another galaxy. It's as far as our telescopes can pick out individual stars at birth, and at that mostly the brightest ones. You'll notice some stars in the image are very red. These are most likely red giants, massive stars that have already used their supply of hydrogen in their core, and are evolving toward becoming a supernova.

There is an image of the Tarantula taken with a 1.5 meter telescope of the European Southern Observatory on their website that is also worth comparing to yours.


ESO's Tarantula image

Compare the Infrared

So at this point you are probably frustrated by the detail and the learning curve of the software, so let's make something our eyes cannot see. The I or infrared image is taken at wavelengths we call "near" infrared, just beyond the red part of the spectrum. It will show cool stars, and will not see hydrogen gas which emits red light at 656 nm and blue-green light at 486 nm, but nothing in the I band. Let's see what the nebula would look like in false color, where the infrared is displayed as red, red light is displayed as green, and green light is displayed as blue. We'll skip the blue image, and load instead these three

  • File -> ngc2070_I "I" the infrared image use Color -> gray
  • File -> ngc2070_R "R" the red image use Color -> gray
  • File -> ngc2070_V "V" the visible light or green image use Color ->gray
  • File -> ngc2070_B "B" the blue light image, select "Close image" to make it go away.
  • Color -> Deselect rgbMode

You should now have simply all three (I, R, and V) in the File menu and displaying gray. Adjust each one so they look about the same, the for each one change the colors so that I is red, R is green, and V is blue. Now turn on rgbMode again and you'll see a false color image in which the infrared is the red part, and visible light is green and blue.


4. What are the coordinates of the star that stands out as bright red now? Make a note of the "image(x,y)" location which you'll use when you report your results.


Let's compare the two images you have made.


5. What do you notice about how the colors of the stars and the nebula differ when you use the infrared "I" filter? You are selecting very cool stars to be red when you do that.

Orion

We have also set up a set of images of the Orion nebula in the same way that we have the Tarantula on the server. Take a look at this link:

http://www.astro.louisville.edu/js9_examples/js9_orion_rgb.html

Repeat what we did with the Tarantula, assigning R to red, V to green, and B to blue but using a log scale rather than a linear scale. Adjust the display so that the background is black and the stars are largely white. Part of the Orion Nebula will be white where dust is scattering starlight. However much of it will be another color from the hydrogen gas excited by a hot star at the center.


6. What color is the emitted by this gas?


For the Orion images we have added celestial coordinates to the data, and as you move the cursor around the image you will see the coordinates change. There are (x,y) values indicating which pixel is selected, and (right ascension, declination) values indicating where in the sky that pixel is looking. You'll see numbers like FK5(05:36:40, -05:19:26). "FK5" is a standard way of calibrating astronomical coordinates, the first set of numbers is the right ascension in hours, minutes and seconds of time, and the second set of numbers is the declination in degrees, minutes and seconds of arc.

Look for the very bright white star below the nebula. Put the cursor on the star and find its celestial coordinates.


7. Identify this star by name and location.


The easiest way is to use the on-line sky map:

http://www.sky-map.org/

When the page of this map service opens, put "M42" in the search box and you'll be taken to the Orion Nebula. Use the zoom, and move the cursor around to see how the right ascension and declination change across this map. Find the the star that has the same coordinates as the one our image. You'll notice the pattern of stars too. The image of Orion on the web is much "deeper", that is, it shows more of the nebula, but the longer exposure also obscures the fainter stars within the nebula and hides their colors.

Just north of M42, the bright part of the Orion Nebula, there is a fainter nebula surrounding some stars. Use Sky-Map to find the NGC designation of this nebula.


8. What is the NGC number of the nebula centered approximately on RA 05:35:15 Declination -04:53:12?


Looking at our image of Orion, run the cursor up and down and notice how the declination changes. It is around -05:20 at the center, that is -5 degrees and 20 minutes of arc. There are 60 minutes of arc in a degree, so 20 minutes is 20/60 or 0.33 degrees. That is, close to the center the declination is -5.33 degrees. Now move the cursor up and down and look at the range of angles from the northernmost to the southermost part of the bright nebula at the center.


9. How many minutes of arc from top to bottom is the angle in the sky covered by the Orion nebula? Convert that to degrees too by dividing by 60. Compare it to the full Moon, which is nearly 0.5 degrees across.


Now do the same thing for the entire image.


10. From top to bottom, how large an angle on the sky does this image of Orion cover?