Introduction: Great Astrophotography: a How-To Guide

Note: These photos were taken without a telescope, just a camera on a tripod.

Many of us have looked up into the night sky in a particularly dark place and thought, "This is incredible! I really wish I could take a picture!" or we've seen others' photos of the stars and the Milky Way and wondered how on earth they got such incredible images. As it turns out, it really isn't as hard as you might think. This guide will teach you how to plan your shoot like a pro.

Photographs of the night sky fall into a peculiar category of technical photography, where the final image is dependent on planning and knowledge more than looking through the viewfinder and visualizing what you want the image to look like. Since we can't really see our target through the viewfinder, and some aspects of the final image may not even be visible to the naked eye, we need to do a little research. You can't expect astrophotos to look the way you want without planning any more than you can take a sunset photo in the middle of the day. For this, we will need some software to visualize the night sky in advance, and it is very helpful if this software can simulate viewing conditions. I recommend an easy to learn, free, open source, multi-platform program called Stellarium, which is used in planetariums and by astronomers around the world. For field use, you might want to make sure you have Google Sky Map installed on your Android device, or a similar app on your iPad, iPhone or other device. If you still don't have a tablet or smartphone or anything, you can print out star charts for the time you'll be shooting and bring a compass with you. For a simple map, you can go to Tools > Screenshots > Invert Colors in Stellarium and print the screenshots you need (invert to background is white) or you can use more advanced star charting software. You'll only need charts or maps if you really want to plan things to the last detail or photograph a particular night sky object however.

Step 1: Planning

This section of the guide will assume you are using Stellarium, but the instructions apply to other packages as well. First, make sure the software is set to display the sky from the location at which you will be shooting. Enter GPS coordinates if possible, to get the most accurate planning for backroads locations like the dark sky places most of us shoot from. Enter the time and date when you plan to go shoot into your planetarium software. Now you can use the simulation controls (much like a media player control) to slow down, pause, or speed up time in the simulation to see how the sky will change during the shoot. If there is a particular foreground object you want to include in your photos, it is helpful to go during the day and scout the location with a GPS or compass to see where you will need to set up to capture the terrestrial objects with the appropriate star background. For now however, keep in mind the compass heading of the sky objects you're interested in photographing. If you want to photograph Lake Whatever with the Milky Way rising above it, pay attention to where it will be during the shoot, and plan to position yourself accordingly. The exposures you will be doing will be in the 15 second to several minute range, and any lights nearby (and the moon) will invade your images. With a partial moon out of the frame however, you can get neat pictures where you can see stars, the sky is blue, and the landscape looks like daytime however. Pay attention to the moon.

If you don't already know of a dark sky site, free of light pollution, you can use the Dark Sky Finder (USA) to locate such a place, or try some of the various dark sky maps and services on the web which are useful globally. You'll need a spot away from cities, several miles from high intensity lights used on highways and checkpoints. Preferably with relatively unobstructed horizons, i.e., no trees, power lines, not next to a big hill or building, unless of course you want those in your photos. Pictures of the sky are great, but the best of them have interesting foreground objects which are lit with a strobe, flashlights, or other means to expose them enough to show in the image as well. Mastering this takes practice, so bring several light sources with you to experiment with during your shoot.

Step 2: Weather and Environment

The next important thing to consider is the environment. Weather is a huge factor in this, but wildlife can be an important issue. Many times I've been approached by coyotes and other animals, had scorpions and snakes get curious, and have been eaten alive by mosquitoes. Malaria, West Nile Virus, and other diseases which use mosquitoes as a vector are no joke. I counted over 600 bites after making the dumb mistake of shooting in an area I hadn't scouted. If only I had known there was a stagnant irrigation canal 75 meters from the site, I never would have chosen it. Ranchers also fall into the potentially dangerous wildlife category. I live in the country, and I know how things work out here, but I understand that city dwellers might not. Out here, people are generally friendly and helpful but if they see some weird guy hanging out by his parked car on the far side of their cow pasture, they might investigate and don't be surprised if they approach armed. First, don't trespass! Second, if you attract attention, just explain what you're doing. Most people will be curious, ask questions, and if you're lucky they may even bring you a hot cup of coffee.

Weather, as I mentioned, is a key ingredient to this type if photography. If you've never done amateur astronomy or anything, you might get some surprises. Weather does weird things at night, and humidity does even weirder things. Optics like camera lenses will fog over with dew, tripods collect condensation, etc. Some basic meteorology information is essential. You need to check satellite images before leaving the house, use the IR and WV (water vapor) images to see how clear the sky is. WV will tell you just how much moisture will be absorbing light and distorting it, interfering with your exposures. I always use the National Oceanic and Atmospheric Administration's geostationary satellite server NOAA GOES which is USA based, but has images from different parts of the world as well. Watch the time lapse videos associated with the image you're viewing in order to see how things are changing and to predict what will happen later in the night. Check temperatures, wind, humidity, and dew point temperatures where you will be. Understand that in rural locations, especially deserts, the temperature can drop from 80°F to below freezing in a matter of hours. If the ambient temperature drops below the dew point temperature, water will condense causing dew on equipment, potentially fog, ice, and other issues.

Ideal conditions for astrophotography would be stable temperatures, little wind, arid, no cloud cover and little water vapor, a new moon or when it is below the horizon, high altitude above pollutants in thinner atmosphere, with no major light sources for 10 miles. This sounds almost impossible but it really isn't if you are willing to drive a bit. Wind shakes your camera and changes air density, distorting light as it passes through different gas densities at different speeds. Moisture in the atmosphere absorbs and refracts light. Condensation... Well that's obvious I hope. One thing that might not be obvious is "seeing". Seeing is an astronomy term which refers to distortions in the atmosphere caused by temperature differentials from the Earth radiating heat absorbed throughout the day. If the air temperature is very low, but the surrounding environment is radiating a lot of heat, then you will get subtle degradation of light, like a large scale version of the heat haze ripples which come off of hot asphalt during the day. The atmosphere itself interferes with light transmission as well, so higher altitudes generally yield better results. Even a few hundred meters can make a difference, so try to get to high ground. For these reasons I prefer to shoot in the high deserts of the southwest during winter, later at night or early morning. Also, different interesting objects are visible at different times of year, such as the Pleiades cluster or the Andromeda Galaxy.

Step 3: Equipment

Shooting from a tripod, you'll need a wide angle lens. In the span of 30 seconds, objects in the sky move a lot. Stars, planets, and other objects will leave streaks, or "star trails" at longer focal lengths. If you want a crisp image, use wide angle lenses with the widest aperture you can for shorter exposures. If you want star trails for your image, tighten up the shot a bit, stop down your lens, and go to a lower ISO setting. How long you expose for depends entirely on how much sky is in the frame, and how much light your setup can collect. If you're zoomed in at 250mm, just a few seconds will leave long trails, but at wide angles, you may need 20 minutes or more to get the desired effect. If you do not want star trails, this is why you need a wider lens. If trails are what you want, then also consider that the earth's axis is quite different from the celestial axis. Find Polaris and you'll know where the approximate celestial north pole is, and around what axis the stars will revolve. Stars will move more if they are closer to the celestial equator, so shooting away from the equator will yield less noticeable trailing if you are avoiding this.

If you want to capture images of faint deep sky objects like galaxies, you will need to look into other options for mounting your camera so it can follow the objects accurately during long exposures. Some common options include mounting the camera "piggyback" on a robotic guided telescope with a long telephoto lens, shooting through the telescope itself with a "T-adapter", shooting through the eyepiece of the scope, or using a simple "barn door" or "scotch" mount. This article will not attempt to explain these options in depth, but I have given you some keywords to search for more specialized articles.

Camera shake is the enemy of astrophotography, and it can come from many sources. Wind, as mentioned earlier, can cause movement of your camera which causes artifacts from shaking in the worst cases, and in minor cases can cause subtle vibrations which make the image appear fuzzy or out of focus. Simply walking on the ground nearby can cause this as well. It is imperative that you have a sturdy mount on a stable surface which absorbs impact. Sand is great, dirt is good, a porch or deck is probably less than ideal, and rock or concrete might be bad since they vibrate with footsteps. Use the sand spikes on your tripod if yours is equipped with them. Weight your tripod down with sandbags or something similar, but make sure the weight is touching the ground so wind doesn't cause it to swing. If you are using a less rigid telescopic tripod like the collapsible ones sold at Wal-Mart, then collapse the flimsy bottom portion of the legs and crank down the upper extension to make it a bit more sturdy. You could even use your camera bag if it's heavy enough. Place it on the ground between the legs, throw the strap over the central support braces, and tighten it down. If it's still kind of flimsy, try spreading the legs with your foot, allowing them to flex outward a bit. Investing in a good solid tripod with a ball head will save you a lot of grief if you can afford it. Use the "Mirror Lock-up" feature on your camera, if it has one, to avoid shake during shorter exposures. Also, use an infrared remote or cable release to control your shutter. This will allow you to shoot without causing vibrations from hitting the shutter button, which can take several seconds to die down.

Using a lens hood will help keep stray photons under control and may help keep moisture off the lens. With most DSLR cameras, light can also leak in from the eyepiece on the rear. On my Cannon 400D, the strap came with a cap attached to it that fits over the viewfinder's eyepiece and blocks out light from the rear. This is important if there are light sources behind the camera, such as laptops for tethered shooting, flashlights, or anything being used to light the scene's foreground. The moon, if it is in the wrong position, will cause lens flares the same way the sun does, a lens hood will help control this.

You should be using RAW images if possible. There are so many reasons for this that I won't attempt to explain them all here, but if your camera supports it, use it. RAW images can be fine tuned much more later, allow corrections for things like chromatic aberration (separation of light near the edges of the frame, causing a star to ghost, among other things), sensor noise, and they contain much more data about the light collected. This is critical if you choose to perform image stacking (which I will explain later) or if you want to filter out certain colors.

Noise is a major factor in low light photography. Noise comes from many sources, including electromagnetic interference in the camera, thermal noise from the sensor heating up, faulty "hot" pixels on the sensor, "dead" pixels which output black dots, and even background radiation. If you are lucky enough to own a low noise, high ISO camera with some fast lenses, this isn't as much of an issue. For us amateurs with less than ideal equipment, there are some things we can to to mitigate the noise problem. If you're shooting in RAW (as you should be... ahem) don't bother with in-camera "noise reduction" options, as they generally only affect JPEG output and will double the time necessary to shoot, while doubling thermal emissions from the sensor. Shoot at the lowest ISO you can. Higher sensitivity is achieved by amplifying the light signal through a gain circuit, which adds noise to the image. Instead, try to get the longest exposures you can without undesired artifacts at the widest aperture you can. We want to collect as many photons as possible in the shortest time possible. If you cannot get a bright enough image, don't worry. I'll discuss options for improving that later on. Noise is not only ugly, but destroys image data. We need all the data we can collect, so I will also show you a method for combining data from many images to remove noise and increase the light data in the image called "stacking".

Step 4: Post Processing

Now that you're home and you have hundreds of bug bites, 3 full memory cards, and your leg is bleeding for no apparent reason, you load up your images in Adobe Lightroom and.... they look like garbage! Don't panic. There is still work to be done, unlike most terrestrial, normal light photos, you'll need to do a bit of work to get the image data to represent the scene you were shooting. First, if you've been out all night then go to sleep and work on them in the morning. Being exhausted and impatient will cause more harm to your images than taking bad ones to begin with. Work on them with a fresh pair of eyes and a fresh brain.

RAW image data needs to be processed into usable images. If you're not stacking them (more on this later) then you can go ahead and start processing them normally using Adobe Camera RAW, Lightroom, etc. You're going to change these images 500 times before you're happy, so make backups. Use your levels and curves tools to adjust contrast so that noise is minimized and the stars pop. Check the entire image at 100-200% zoom and eliminate any bright RGB dead pixels. Also watch for areas heavily noise infested, like one corner of the image being magenta. This is caused by interference from other components in the camera, like a hot image processor, or an improperly shielded RF source like the power supply. The more expensive the camera, the less likely this is to happen. My 400D has a hot spot in the bottom right corner which occasionally causes me grief, and some hot pixels, but I still manage. Here is an example of the noise pattern generated on my sensor over the course of several 9 second ISO 1600 exposures. It has been enhanced to show detail and converted to grayscale.

- see attached image 1 -

As you can see, that's a lot of noise! Here's where stacking images can help. If I want to capture an image of something faint like the Andromeda Galaxy, or the Orion Nebula in my image I will need long exposures, and I will generate a lot of noise. This noise, with the exception of hot or dead pixels, changes over time. We can take advantage of this with special software to increase the signal to noise ratio (SNR). Imagine you are recording the sound of a whistle, and there are many people talking in the background. You know the whistle emits a tone at 2600 Hz, but the frequencies of the talking are variable. By isolating the frequency that doesn't change, you can easily remove the ones which do, getting rid of the background noise. Image data is processed in a similar manner. When you have a single, low noise signal, you can simply reduce the amplitude (drop the low end of the dynamic range using the levels tool) and get rid of much of it. You can also use algorithmic tools like Noise Ninja to remove them, but you will lose some image clarity. If you take many similar exposures, and then combine the data mathematically, while simultaneously generating a map of the noise found in the images, you can remove the noise or increase the SNR. To do this, you will need a program like Deep Sky Stacker, which is free. The website has comprehensive information on how to use it, but I will give you an overview on how this process works for our purposes.

- see attached image 2 -

  1. Take a series of "Light Frames", maybe 30 or more pictures of the scene as you would normally shoot it. Concentrate on proper technique here, they won't look spectacular by themselves but they will really pop later. They will probably look kind of rough, like the one above. Note the pronounced noise in the bottom left (which was the bottom right on the sensor before flipping it to vertical orientation.) This is a single frame, 30 seconds at ISO 1600, taken back when I was first learning this stuff.
  2. Take a series of "Dark Frames" by using the same exact settings but putting the lens cap on. These will allow the software to create a noise map later. This must be done in the same temperature and electromagnetic conditions, so shoot them between the Light Frames ideally, or shoot them after you get the normal images. The more of these you gather, the better. Ensure you have the same ISO, exposure time, etc. These will form the noise map like the one I showed you earlier, which DSS will use to remove noise from the final output.
  3. (Optional) shoot a few "Flat Frames" where you shoot an evenly lit white surface using the same lens characteristics. Focal length, aperture, etc. Expose normally, like you would any other time. This can be done at home. The software will use these images later to compute vignette corrections, since this will change with each frame as the sky moves. The software will stack the common area in the image, discarding the edges where there is no overlap between frames. Vignette correction will occur before this, so that the star data is preserved.
  4. Import Light, Dark, and Flat frames into DSS and configure your settings. You will need to read the DSS site and familiarize yourself with the software extensively to understand what all of the settings do, but the defaults are an OK place to start.
  5. Register (align), and stack the images. You can simply hit "Check All" and hit "Stack Checked Pictures", it will prompt to automatically register them.
  6. Adjust the output of DSS like you would a RAW image you are preparing to edit. Adjust the Luminance curve to bring it in line with the histogram. If there is a strange color cast, use the RGB/K Levels to fix this. The Saturation might need to be increased if the image looks too gray.

- see attached image 3 -

Now we're talking, right? Ok we can now save a 32 bit per pixel image for editing in Photoshop (Gimp if you're masochistic). In your editor of choice, adjust the Exposure and Gamma to get the image luminance right, or use an HDR workflow to get the image down to a normal 8 bpp. In Adobe Photoshop CS5 you can just switch modes to 8 bpp and use the Exposure/Gamma dialog which comes up to adjust the final output, then do further editing when you're in 8 bit mode. Adjust the image until you're satisfied with the color and contrast represented and show it off!

-see attached image 4 -

The core of our galaxy, with nebulae and dust lanes from our spiral arms.

This image has been processed to show maximum detail and much fainter objects.

- see attached image 5 -

The same image as above, processed to represent more of what you might see

with the naked eye. I simply changed the Exposure/Gamma settings

when converting to 8 bit, adjusted levels, and color balance.

This example was processed from the original images I took back when I was learning, and you can see I failed to control noise in the corner even with the dark frames, and the color is a little off. I'm showing you this example, rather than a perfect image, so you know what to expect when you start trying this. From here, you can do a lot more, such as compositing your stacked sky image with a static landscape exposure, and much more.

Step 5: A Few Tips and Warnings

Undesirable Trails

If you have minor trails burring your image, there's a little trick you can use to fix them.

Open the image in your editor, duplicate the background layer. Set the blending mode for the new layer to Darken. Use "offset" to shift the top layer back in the direction of the original objects before they trailed (usually just a couple of pixels). In Photoshop, it's under Filter > Other > Offset. Once everything looks sharp again, you're done.

- see attached image 1 - (left side untouched, right side offset processed)

Preservation of Night Vision

Your ability to see better in low light conditions is controlled by a few factors. First, of course, is pupil dilation which naturally occurs when light levels remain low for a short time. Second, your eyes respond to light which two structures, rods and cones. Rod cells react to as little as a single photon of light! These are your high sensitivity night vision cells. Cone cells need tens or hundreds of photons to trigger a reaction. Your rod cells are your friend during night observation and keeping them functioning is important because they take a while to return to maximum sensitivity. When rods are activated, they change the state of a molecule called rhodopsin. Rhodopsin (derived from vitamin A, a deficiency of which will cause night blindness) takes about 30 minutes to regenerate completely; most of the regeneration takes place in the first five to ten minutes however. Every time you get blasted in the face with a flashlight, your camera's LCD, a laptop, cigarette lighter, anything bright and broad spectrum, you reset that counter. To help prevent this, dim your camera's LCD by using its onboard settings or cutting a small piece of automotive window tint film to size and sticking it to the screen. Also, use red LED lights to see while you're out there. Red wavelength light depletes rhodopsin much more gradually, and is absorbed more by the cones than the rods in your eyes.


You may find it difficult to focus on stars in your viewfinder, and infinity focus markings on many lenses are inaccurate. Adding to this mess, if your vision isn't perfect and your viewfinder eyepiece is unable to perfectly correct for the discrepancy, what is in focus may appear out of focus in the eyepiece. I find it easiest to focus on a bright, clear object like a planet and then take a few shots, each time checking focus in the magnified LCD view until I get it spot on. Changing focal length on zoom lenses may change your focus, as will moving the camera if your lens isn't manufactured extremely well. Temperature changes over time as your warm camera from the car or house cools down will cause mechanical shrinkage of the optical assembly which changes your focus. Check it from time to time to make sure you didn't just take 40 exposures of blurry garbage.

Step 6: Conclusion

There is no one-size-fits-all answer to astrophotography, there are too many variables at work here. Hopefully you now understand what those variables are and you can make your own intelligent decisions on how to achieve the best images. If you found this guide helpful, please share it. Thanks for reading, please leave comments below. Good luck out there!

Make sure you rate this instructable for your fellow users! Every time you rate an instructable it helps the entire community.

The Mad Science Fair

Runner Up in the
The Mad Science Fair

Hack It! Challenge

Participated in the
Hack It! Challenge