Thursday, July 12, 2018

#146 - Saturday, July 7, 2018 - Configuration Experimentation

Saturday night was our monthly Members Night for the astronomy club, where many of us gather at the observatory to share potluck dinner, good conversation, and telescopic views.  The sky was clear, which was the first clear Members Night since September!  And boy what a clear night it was.  Crystal clear, decent seeing, not a single little cloudlet.  It was going to be a good night.  We had at least 20 members present, if not more, including several new members.

Before dinner, I pulled out the club's 60mm Lunt hydrogen-alpha scope to check out the sun.  No sunspots, but once the etalon warmed up, I could see a few prominences rising up off the surface.  I found a pressure tube setting where I could see the granularity and the prominences at the same time, which was awesome.  I connected my ZWO ASI1600MM Pro camera to it next, and first I imaged the granularity at a short exposure time, and then I did two longer exposures to see the prominences.

To composite the short and long exposures together after I averaged & sharpened the video sequences in RegiStax (click here for a tutorial), I followed this tutorial, which was pretty easy.  Now, the resulting image is monochrome, since I'm using a monochrome camera, and the hydrogen alpha filter only passes a single wavelength of light: a deep red centered on 656.3 nm.
So this is actually one of the earlier steps in the combination process, where you take the difference image between the short-exposure and long-exposure images in order to line them up.  But it looked so cool, I had to save it!

In order to make a color image that is pleasing to look at, however, many solar astrophotographers color the grayscale image to be the color we expect the sun to be: sort of an orangish-yellowish ball.  In fact, the sun's light peaks in the green part of the spectrum (why the grass is green and our eyes are most sensitive to green), but the sun won't look green.  The first time I imaged with the H-alpha scope, I found a color balance that produces this pleasing color.

Colorized hydrogen-alpha image
Date: 7 July 2018
Object: Sun
Camera: ZWO ASI1600MM Pro
Telescope: Lunt LS60THA 60mm pressure-tuned (500mm FL)
Accessories: N/A
Mount: Celestron NexStar SE
Frames: 1: 597/2006 (short exposure)
2: 1234/2001 (long exposure)
Exposure: 1: 7.5 ms
  2: 45 ms
ISO/Gain: 300
Stacking program: RegiStax 6

The color balance settings I use in Photoshop, under Image -> Adjustments -> Color Balance

The glow around the edges is from the fact that at the longer exposure time, the bright light from the edges of the sun's disk will bleed over into neighboring pixels because they are saturated.  Those prominences came out really nice!  This was a fun experiment.  But only the first experiment of the day.

The club's 5-inch Vixen refractor that I've been using so much in the last year was set to be used by club members for training on it that night, so I decided to do the experiment I've been wanting to do since I got the Celestron Advanced VX last fall: attempting to image on my 8-inch Schmidt-Cassegrain, using my Borg 76mm refractor to guide.  I wasn't sure if it was going to work because the weight was pushing it for an astrophotography setup - 13 lbs for the C8, 4 lbs for the Borg, and about 2 lbs for the camera, guide camera, filter wheel, and field flattener all together.  This makes for a total of about 19 lbs, and the payload capacity of the AVX (not including the counterweights) is 30 lbs.  The rule of thumb for astrophotography is you don't want to exceed about half of the payloard capacity of your mount.  Plus, since the Borg rides atop the C8, I was worried about it sagging, as well as flexure.  But I wanted to test it out!
Please ignore the disaster of cables.

Once it finally did get dark, one of my fellow club members, John, had offered to show me how polar alignment with the QHYCCD Polemaster worked.  He brought his laptop over and we got it attached to the polar scope port of my AVX using the same adapter he has for his own AVX.  We went through the procedure with a small crowd of other interested people watching, and it went smoothly.  It was pretty easy, and it can be used on all sorts of mounts, including those little sky trackers you throw a DSLR with a lens onto.  I still think the SharpCap program's method is faster, but this is great too.  

Once that was done, I aligned, calibrated the autoguiding program PHD, and started taking test images (see this tutorial on guiding).  It was already 11 PM by this point, since it doesn't really get dark until after 10 PM at least, so I picked a target that was bright enough to do short exposures on, but was also small enough to take advantage of the fact that I was using my C8: M57, the Ring Nebula.  Now, I did have a focal reducer on the C8 - I wanted the best chance of success, and a shorter focal length takes longer to show tracking errors.  The Ring ended up a little small, since with the f/6.3 focal reducer the effective focal length shrinks from 2032mm to 1280mm, which thus reduces magnification.  But it was still a good size, with some cropping.  I took a 2-minute subframe, and then a 5-minute - and the stars didn't look too bad!  Very exciting.

2-minute raw subframe, zoomed in

5-minute raw subframe, zoomed in

The stars aren't perfectly round, but there may be some settings I can tweak in PHD to make the guiding better.  The seeing also wasn't spectacular that night, which affects guiding.  But I would still call this experiment a success - the guiding looked a lot better than I thought it might!  My fellow club members were amused by my shouts of joy at how well this was working.

Auto-guiding software PHD, or "Push Here Dummy"

Since it was getting later in the evening and I had to be up at 7 AM the next morning, I only had about half an hour if I wanted to get any images that night.  It's been a long time since I've had a long-focal-length telescope I could use reliably - since I got my CGE Pro mount last May, it's too hard to set up my 11-inch for just a single night, and I've been having problems with it anyway.  Having the 8-inch SCT work on my AVX mount is a huge boon - it means I'll be able to do long-exposure, high magnification imaging on a mount that doesn't suck to set up and tear down.  I miss imaging galaxies and planetary nebula!  I decided to conduct a third experiment that night then - super-short exposure astrophotography.  The ZWO ASI1600MM Pro is well-suited for this endeavor with its high sensitivity and low read noise.  So I set the gain to the "lowest read noise" setting (which is its highest setting of 300 - you get low read noise at the cost of higher dark current and reduced dynamic range), and chose 10-second exposure times.  Now, normally when people do this (and I have seen some incredible images of planetary nebula using this method), they take many hundreds of subframes, and do an image-quality ranking to take the best so much percent, just like the "lucky shot" technique of planetary imaging, as a way to beat atmospheric turbulence.  I didn't have time for hundreds, but I did get a total of 111 frames (one downside of Sequence Generator Pro is that it takes several seconds to download an image, as opposed to SharpCap's ability to display images in a fraction of a second).  The result isn't too bad!
Date: 7 July 2018
Object: M57 Ring Nebula
Camera: ZWO ASI160MM Pro
Telescope: Celestron C8
Accessories: f/6.3 focal reducer, Astronomik LRGB Type 2c 1.25"
Mount: Celestron AVX
Guide scope: Borg 76ED
Guide camera: QHY5
Subframes: 
   L: 26x10s (4m20s)
   R: 28x10s (4m40s)
   G: 26x10s (4m20s)
   B: 31x10s (5m10s)
   Total: 111x10s (18m30s)
Gain/ISO: 300
Stacking program: DeepSkyStacker 3.3.2
Stacking method (lights): Median kappa-sigma clipping
Darks: 0
Biases: 20
Flats: 0
Temperature: -25C (chip)

Now, keep in mind that I was using my 0.63x focal reducer, which makes the field-of-view much larger, so the nebula was actually fairly small in the full-size image.  But with 16 megapixels to throw around, you can afford to crop images.  This is because the pixel resolution is a lot smaller than the real resolution you'll get with atmosphere - my ZWO on the 8-inch with the focal reducer yields a resolution of 0.61 arcsecs/pixel (calculated with my favorite calculator here), and the seeing is usually 2-3 arcsecs of blurring where I live.

I would like to point out a few really exciting things about this image that make me love my ZWO ASI1600MM Pro even more.  The first is the white dwarf star at the center of the nebula.  It has a magnitude of 14.8, which is quite dim, making the star difficult to see visually in many telescopes.  This camera is sensitive enough that you could see it in the single 10-second frames!  Not only that, but in the stacked images, you can make out magnitude 15.4 galaxy IC 1296 down and to the right of the Ring Nebula, and this is only 18 minutes of total exposure!

Another thing I'd like to show here is how easily you can see the differences in the color filters.  Since every image is monochrome on this camera, I have to label my images carefully to make sure I know which filter I used for it.  For some targets, it's hard to tell the difference between one filter and another, since the target might glow about the same in each of the colors (white light).  But the Ring Nebula exhibits interesting structure with where the colors are.
Stacked, stretched, and de-noised images for each of the filters.

Especially in the red frame, you can see very different parts of the nebula than the green and blue components, and even a little bit higher level of detail in the ring structure.  

All in all, I call this night successful!  Three experiments were accomplished with awesome results: compositing solar images, guiding my 8-inch SCT on my AVX mount, and doing super-short exposure imaging.  What an exciting night!

#145 - Friday, July 6, 2018 - A Colorful Black Eye

Finally, a clear night!  I needed to collect the color data for M64, the Black Eye Galaxy, to go with the luminance (all visible wavelengths) monochrome data I collected on June 15th.  It was a gorgeous night!  If a bit chilly - the humidity finally dropped around here after a thunderstorm rolled through, which was awesome, but it also brought cooler temperatures, down in the 60s at night.  Data collection went smoothly, but I couldn't stay out late for a second target because I had to be up early the next morning to work on a badge with one of my Girl Scouts.  Darn!

I went to go process the data, and discovered that somehow I had the gain set at 200 instead of the normal 139 (unity)??  So I had to throw the camera in the refrigerator again so that I could get it down to the -25C I needed to take some darks at (I could probably reach it from room temperature, but the only dark places in my house are closets, and it's a lot warmer in those than the rest of the house).  

After stacking, stretching, denoising, and flattening, I combined the LRGB frames all together into a color image (I'll be making a blog post on this shortly now that I've got a pretty good feel for the process).  It's not as sharp as I wish it would be, but it's not bad!
Date: 15 June 2018 (L), 6 July 2018 (RGB)
Object: M64 Black Eye Galaxy
Camera: ZWO ASI1600MM Pro
Telescope: Vixen 140mm refractor
Accessories: Astronomik LRGB 1.25" Type 2c filters
Mount: Losmandy Gemini II
Guide scope: Celestron 102mm
Guide camera: QHY5
Subframes: L: 77x60s (1h17m)
   R: 9x180s (27m)
   G: 10x180s (30m)
   B: 10x180s (30m)
   Total: 106 frames, 2h44m
Gain/ISO: L: 300
  RGB: 200
Stacking program: DeepSkyStacker 3.3.2
Stacking method (lights): Median kappa-sigma clipping
Darks: L: 20
   RGB: 25
Biases: L: 20
    RGB: 20
Flats: 0
Temperature: L: -15C (chip), 69F (ambient)
RGB: -20C (chip)

I learned while processing another image from the last week that you can denoise the RGB frames before combining them in order to reduce color noise later.  When it comes to LRGB stacking, the luminance frames are what gives you the sharpness and detail; the color frames don't need to have the sharpness nor resolution that the luminance frames do.  Your eye is much more attuned to changes in luminances than changes in chrominance.  Craig Stark, astrophotographer and software developer (the man behind apps PHD and Nebulosity) has a great presentation on some of the science behind astrophotography here, and in it he shows an example of an image where blurs chrominance and blurs luminance.
Blurring chrominance (the color data)

Blurring luminance

Because my color data is inherently higher in noise due to the fact that every frame is only collecting a fraction of the light (the specific band of wavelengths the red, green, or blue filter passes), and because I take fewer of them (Stark's presentation goes into why this is a good idea), I was getting a lot of color noise in my final image that was hard to get rid of without blurring the whole image.  But by denoising the red, green, and blue stacked images first before combining them, I was able to knock that noise down substantially without sacrificing the sharpness of the final image.  

Getting better step by step!




Saturday, June 30, 2018

#144 - Wednesday, June 27, 2018 - Mars in the Wee Hours

Right now, Mars is headed toward a very close pass with the Earth - it will be at opposition (opposite the Earth from the sun) on July 26th, and perihelion on September 15th (closest approach to the sun in its elliptical orbit).  Between these two events, it will come close to Earth's orbit indeed on July 31st, and provide excellent telescopic views all summer long.
Planet locations on July 31, 2018

As Earth and Mars go around in their orbits, Mars reaches opposition with the Earth every 26 months, since the Earth orbits the sun faster than Mars does.  Because planetary orbits are elliptical, opposition is not always in line with perihelion - you can see in the image above how far apart Earth's and Mar's orbits can get.  But every 15-17 years, opposition and perihelion occur close to each other, and we get a big, bright, beautiful Mars to see in the night sky.  The last time this happened was July 2003, which was a particularly close pass, even closer than this one, due to some tilting in the planet's orbits as well, and the tug of Jupiter.

When it is closer to Earth in its orbit, then it appears larger and far brighter than usual.

The " symbol after the number for diameter means arcseconds, which is a unit of apparent size.  There are 60 arcseconds in an arcminute, and 60 arcminutes in a degree.  For reference, the full moon is about half a degree (30 arcminutes, or 1800 arcseconds) across.  Distance here is measured in AU, or astronomical units, where 1 AU is the average distance of the Earth from the sun, or 93 million miles.  

Bottom line is, now is a great time to look at Mars through a telescope!  But you have to stay up late to do it - right now, it doesn't rise until 11 PM, so it's not high enough to see clearly through the atmosphere until about 2 AM.

In order to image it, this meant that I needed to get up in the middle of the night to set up my telescope.  So on Wednesday night, I set my alarm for 2:30 AM!  I got up, got dressed, and hauled all my gear downstairs that I'd set out in my living room before I went to bed.  It took about 20 minutes to get everything set up.  In addition to Mars, however, there was another fun sky event occurring that night - a close pass of the moon and Saturn!  They were only about a degree apart.  So before I set up my 8-inch Schmidt-Cassegrain to image Mars, I set up my Borg 76mm refractor to image those two together, which has a much larger field-of-view.  I was going to get a full color set of data on it with my ZWO camera, but they slipped behind the roof of my apartment building before I could finish recording the dataset.  So the image is monochrome luminance only.  But still really cool!
Celestron NexStar SE mount with my Borg scope on it and ZWO camera; tablet is on a folding table beside it.  Above the apartment building, you can see the bright moon and the little dot of Saturn down and to the right a little.  

Now, since the moon is far brighter than Saturn - with the moon at magnitude -12.4 and Saturn at magnitude 0, this means the moon is 91,252 times as bright - I had to take two different exposures in order to see both of them, a shorter exposure for the moon, and longer for Saturn.
Date: 27 June 2018
Object: Moon & Saturn
Camera: ZWO ASI1600MM Pro
Telescope: Borg 76mm apochromatic refractor
Accessories: Hotech field flattener, Astronomik L Type 2c 1.25" filter
Mount: Celestron NexStar SE
Frames: moon: 837/1000
    moon-saturn: 1 (SER file wouldn't load in RegiStax)
Exposure: moon: 2 ms
  Saturn: 60 ms
ISO/Gain: 0
Stacking program: RegiStax 6

For some reason, I couldn't get the video file with the Saturn-length exposure to load in RegiStax (it kept crashing), so I just took a single frame.  It's so small that you won't really be able to see the atmospheric distortion in a single frame anyway :)

After that was all done, I took off the Borg refractor and attached my 8-inch Schmidt-Cassegrain reflector, and screwed my Barlow lens onto the connector for my filter wheel that's attached to my ZWO camera.  But first, I put in an eyepiece so I could center Mars in the view rather than try to find it with the camera attached - and so I could take a look at it with my own eyes.  Unfortunately, there's a rather large dust storm happening right now on the Martian surface, so it's hard to make out fine details.  But the "seeing," or atmospheric stability (here on Earth) was very good - I put on my highest magnification eyepiece, which makes my system 333x, and it still looked good.  Good seeing makes for great pictures!
Date: 27 June 2018
Object: Mars
Camera: ZWO ASI1600MM Pro
Telescope: Celestron C8
Accessories: 2x Barlow, Astronomik LRGB Type 2c 1.25" filters
Mount: Celestron NexStar SE
Frames:  L: 1167/2000
   R: 1090/2003
   G: 797/2003
   B: 886/2000
Exposure: L: 8 ms
  R: 17 ms
  G: 25 ms
  B: 50 ms
ISO/Gain: L: 200
  RGB: 300
Stacking program: RegiStax 6

South is up in this image, and you can see the southern polar ice cap quite prominently.  You can also make out some geography, including Valles Mariners, or Mariner Valley, toward the left side, and some darker-colored areas toward the right.  When I was processing this in RegiStax, a weird sort of effect kept showing up on the right side, almost like ringing or something, but I haven't been able to get rid of it yet.  Maybe it's a weird artifact of using my Barlow or something.  Oh well.

I packed up around 4 AM, went to bed, and tried to grab a few hours of sleep before getting up for work, but I couldn't really fall back asleep.  So Thursday was a sleepy day!  But totally worth it!

Mars is on the left, with the full moon and nearby Saturn on the right.  The bright light in the lower part of the image is Planet X. 🤣

Sunday, June 17, 2018

#143 - Friday, June 15, 2018 - I'll Take my Chances

I haven't been out in a while - we've had a lot of clouds, and even nights that had potential to be clear still had the threat of high-altitude clouds.  In order to keep up with my 50 nights/year average, I need to get in 8 more nights before July 15th!  The forecasts for last night were showing things like "mostly clear," although Clear Sky predicted no clouds and 4/5 transparency.  Usually for Clear Sky, poor transparency actually means high-altitude clouds, which the regular weather forecasts will show as "clear."  Despite the "mostly clear" forecasts from the regular weather forecasts, I decided to head out anyway - sometimes, the high clouds will clear out after sunset, especially if they're only spotty and not a blanket, which these were.

Before I went out to the observatory though, the club had a solar observing public outreach event.  I brought out my Oberwerk binoculars with my Seymour Solar filters, and we also had a Lunt solar scope owned by the club, another pair of binoculars with solar filters over them, and a narrow but long refractor with an image of the sun projected onto a white surface a few inches behind the eyepiece.  Unfortunately, the sun was pretty boring yesterday (as it's been for a while) - no sunspots.  There was a plage visible in the solar scope, which is a bright region that usually is paired with the formation of sunspots.



I got out to the observatory a little after sunset, chatted with another club member who came out as well to take their chances with the clouds, and got set up.  I had a hard time finding a target - most of the summertime nebulae I'm dying to image with my new camera are too low still in the first half of the evening, and the couple of larger galaxies are too high to be able to see through the slit of the dome without getting cut off by the top of the slit (M51 and M101, for example).  The Pelican Nebula was just high enough to maybe be mostly un-mushified by the atmosphere, so I decided to give that a shot.  I wasn't sure how much I'd be able to see of it, since it's large and diffuse and I'm fighting a lot of light pollution.  As it turned out, I wasn't really able to get it at all.
2-minute subframe on the Pelican Nebula...it's there, somewhere...

So I found a galaxy that wasn't going to be *too* small - M64, the Black Eye Galaxy.  I use SkySafari to judge how things might come out.  You can add telescopes, cameras, and eyepieces, and then choose a combo and it will display the field-of-view.

There were several little collections of clouds, and a few bands that moved through, but mostly the area I was imaging stayed clear.  It's a little harder to tell when I cloud moves through a FITS image, the file type I save out from my ZWO camera, since they're very 'raw' types of files.  But I'm getting better at it.

No clouds

Clouds

And you can see a beautiful giant dust spot I need to go remove next time I'm out there.  

I took 60-second images because I think with the clouds there was a really thin haze that was scattering a lot of light from the surrounding towns, further increasing the effect of light pollution.  Also, I accidentally had the gain set to 300 instead of the unity setting of 139.  Of the 90 luminance frames I took, I was still able to keep 77 that at least looked like they didn't have clouds.  The final image came out a little noisy as a result of using synthetic flats, and it's just the luminance because that's all I had time to do last night, but on my next trip I'll get the red, green, and blue.

Date: 15 June 2018
Object: M64 Black Eye Galaxy
Camera: ZWO ASI1600MM Pro
Telescope: Vixen 140mm neo-achromat refractor
Accessories: Astronomik LRGB 1.25" Type 2c filters
Mount: Losmandy Gemini II
Guide scope: Celestron 102mm
Guide camera: QHY5
Subframes: L: 77x60s (1h17m)
Gain/ISO: 300
Stacking program: DeepSkyStacker 3.3.2
Stacking method (lights): Median kappa-sigma (2,5)
Darks: 20
Biases: 20
Flats: 0
Temperature: -15C (chip), 69F (ambient)

Once the luminance frames were done, it was 12:30, and there were still quite a few little clouds rolling through, and M64 was getting further and further to the west.  So I decided to call it a night.  But the luminance so far looks pretty decent!

M64 is an interesting galaxy.  It lies about 17 million lightyears behind the constellation Coma Berenices, home to a number of galaxies.  The "Black Eye" moniker comes from the fact that it has a very dark band of light-absorbing dust.  Probably the most interesting feature though is that this galaxy is made up to two counter-rotating disks, which is likely the result of a galaxy merger in the distant past.  

Saturday, June 2, 2018

Image Processing Method 2.0

For the past several months, I've been using a new workflow for processing my images, which has been working a lot better - I just haven't gotten around to writing it up yet!  The biggest change is not using DeepSkyStacker to do any of the post-processing.  I've been getting a lot less noise that way, and thus more detail and better color.  So I'll just dive right in!  I'll start from the top. (Go here for a tutorial on acquiring images with a DSLR.)

Software

First, let me point out that I am a Windows user.  There are tools out there for image processing on Macs, but you won't be able to utilize DeepSkyStacker to do your stacking.  I think Linux folks are mostly out of luck on the software front.  Although, someone's probably written some Python code to stack images. :)

Viewing

To see my images, I either use the built-in Windows Photo Viewer/Photos app in the case of DSLR raw files, or the free AvisFV app in the case of FITS files from astro cameras.  There are others out there, but these work well.  When viewing raw images in the default Windows viewer, wait a few seconds for the whole thing to render.

Stacking

Eventually, I'm going to get PixInSight.  Probably sometime this year.  But for now, I'm still using good ol' DeepSkyStacker, which is free.  They just came out with version 4.1.1, which also has a 64-bit version, which I am super excited about because I have often run into RAM limitations (32-bit applications are limited to 3.75 GB of RAM, and DSS is limited to only 2 GB unless you do this weird trick (not spam I promise!) to change a certain environment variable, which requires you to have Microsoft Visual Studio (I can confirm that the Community Edition does, indeed, work.)   However, I have run into problems with both the 32-bit and 64-bit versions of 4.1.1 - with either DSLR images or astro camera images, on both 32-bit and 64-bit, I'm getting weird "holes" in my images, all of these black pixels scattered throughout.  Using the exact same settings as the old version, and I even ran the same data through the old version just to check.  Something is definitely wrong.  So I'm sticking to 3.3.2 for now until I have time to get on their Yahoo group (who uses Yahoo groups still??) to work out the bug.  Results may vary.

Post-Processing

Photoshop.  Photoshop photoshop photoshop!  Until I get a proper astro-image-processing tool like PixInSight or Nebulosity, it is miles and miles better than GIMP, sorry folks.  The Camera Raw Filter in Photoshop CC is worth the $10.66/mo alone, not to mention all the rest of Photoshop, Lightroom, and Bridge that you get with your subscription.  And Noel Carboni's Astronomy Tools plugin for only $20. 

Pre-Processing

Before you touch any processing software, go through and check all of your light frames (the frames with your image!).  The main thing you'll want to look for is non-round stars.  Any streaking or bloating of your stars due to tracking or guiding errors will either a) be rejected by DeepSkyStacker or b) result in an image you're ultimately unhappy with due to bad stars and little detail.  It's better to have fewer, high-quality images than many low-quality images.  As they say, "Garbage in, garbage out!"

Streaky stars :(

Less streaky stars :)

The other thing you'll want to look for are passing clouds.  They'll dull your deep sky object (DSO) and cause a lot of noise in your images from the reflected light.  It's a lot easier to see them in DSLR images than astro camera FITS files, so it can also be helpful to check the sky often during your imaging session and pause imaging when a stray cloud floats through.

Passing satellites or airplanes (which are really cool, IMO) are not a showstopper.  Some of DSS's stacking algorithms do rejection, so they won't show up in your final image.  Keep 'em!  (And it's a good thing too, there's a satellite that passes through the Orion Nebula every stinking hour, I swear).

Stacking

I'm not going to get into all of DeepSkyStacker's settings here. I once set out on a research project to use all of its processing options on the same set of data and compare the results.  It was a long, tedious process...that I haven't finished.  So I mostly just stick to the defaults and recommended settings, with a few exceptions.

I will soon do a tutorial on how to process monochrome LRGB images, but for this tutorial, I'll process a set of DSLR images.  Let's process my fourth attempt on the Lagoon Nebula.

We'll take it from drab...
...to fab!


And pull out all of that glorious detail in the process.  Remember, image processing is all about revealing the photons that were in your image all along!

First, start by importing your lights, darks, flats, and biases.  Read more about what those are and how to get them here.  Note that DSS does not require darks, flats, and biases in order to work, but they will help make your images better.

Protip: use the keyboard shortcut Ctrl + A to select all (be sure to click on one of the files first to make that the active window).  I highly recommend splitting up your lights, darks, flats, and biases into separate folders.

After you've imported all your files, click the "Check All" button.  (Light frames are automatically unchecked when they're imported; DSS assumes you're going to check them for goodness there, but I find it clunky to use for that).

Now click "Register Checked Pictures."  I don't normally go here, but if it's your first time using DSS, or your images are coming out weird, you'll want to check what the "star detection threshold" is in the Advanced tab.  Usually you'll want 3-10%, they say, but I pretty much leave mine at 3-5%.  Basically this is the threshold that tells DSS that the little dot it's seeing is a star and not noise.  Pick a percentage and click the "Compute the number of detected stars" box, and it will register the first image and compute the number of stars it thinks it sees in it.  Look at the image for yourself and see if its number is about right.  For this image of the Lagoon Nebula, a 5% setting says it sees 1,891 stars.  That looks about right.  If it only said like 100, or said like 10,000, I'd be concerned and would change the threshold and try again.  But this looks good.  Now, hit Cancel, because I'm going to have DSS register & stack all in one step, which makes for an excellent time to get a cup of coffee or check Facebook. (Or both if you have a slow computer.)

Now, over on the left side of the screen where all of the useful buttons are, click "Stack checked pictures."  DSS will give you a summary of how many images you're stacking and their parameters (or a warning box reminding you to check your lights).  Take this opportunity to make sure that the ISO of your darks, flats, and biases all match that of your image frames, and that the exposure time of your dark frames matches that of your lights.  DSS will helpfully point out these problems for you in maroon text.

Click the "Recommended Settings" button.  This will bring up another helpful window with recommended settings that you can conveniently click on to change.  It will suggest you use bilinear debayering for short exposures, or AHD debayering for long exposures.  It'll give you some options for your darks, flats, and biases too.  

I'll walk through my recommended settings in a second.
After making your decisions (or panicking slightly at the number of choices presented to you that you have no idea what they mean), click OK.  Then click the Stacking Parameters button. 

This is where all of the options live.  Here's what I like to do:
  • Result tab
    • Standard Mode - uses the reference light frame to be the position to which all other frames are set to.  I use this one most often.
    • Mosaic Mode - stitches all of the image positions together into one large image.  I've used this one a few times, mainly for wide-field images that I took on a non-tracking tripod.  If your telescope tracks really well, this mode would produce the same size image as a single frame because there won't be any movement between frames.
    • Intersection Mode - this takes only the overlapping portions of all the frames.  Mainly useful if you have really noisy images, where the overhanging parts of the image will have fewer frames stacked, and will thus be extra-noisy and you'd probably crop it out anyway.
    • 2x and 3x drizzle run a super-resolution or interpolation algorithm of some sort that qaudruples or...nontuples? for 9?...the size of your image.  My 24 MP DSLR images are already pushing DSS to its limits, and it's already pretty oversampled anyway (the resolution of my DSLR on my 11-inch telescope is something like 0.3 arcsecs per pixel, while the atmospheric conditions in my home imaging location are rarely better than 2-3 arcsecs...) so there's not much of a point, it'll just get fuzzy, even if DSS didn't crash partway through.
    • I like to have it attempt to align the RGB channels in the final image.  It usually fails, but sometimes it works, which shortens my processing time a smidgen, so why not.
  • Lights tab
    • These are your stacking algorithms.  I usually alternate between "Median kappa-sigma clipping" with the default kappa = 2.0 and number of iterations = 5, and "Auto-adaptive weighted average."  I find that auto-adaptive works better on star-heavy extra-wide-fields like the Milky Way than media kappa-sigma clipping, but it won't always completely remove satellite and airplane trails.  Sometimes, the result of each of these algorithms produces an image that looks pretty much the same.  Experiment!
  • Dark, flat, and bias tabs
    • I use median-kappa sigma clipping for all.  Helps with cosmic rays.  You can mess around with hot pixel detection and removal and dark optimization - I haven't really messed with these yet, so I don't have an opinion.
  • Alignment tab
    • Leave automatic.
  • Cosmetic tab
    • Don't tick any boxes here - I hear bad things about it.
  • Everything else: defaults are good.
Now, finally...hit the OK button, twice!  Aaaaaand go get that coffee.  Or browse Facebook.  Or take a nap, if you're using a non-gaming desktop or laptop.  Or, go to work or bed and come back in a few hours if you're using a slooooow machine.  My homebuilt rig, "The Beast" I call it (really named Kepler, as part of my physicists/astronomers naming scheme), took 10 minutes to chew through 20 lights, 19 darks, 21 flats, and 20 biases, and it's got 16 GB of RAM, an Intel i7 quad-core (4th gen, admittedly - it's due for an upgrade this Black Friday), and a NVIDIA GeForce 1070  (although, I'm pretty sure DSS doesn't use any graphics card processing.  Stacking is mostly a linear math problem, not a vector problem).  

Once you're done waiting, you will get a result that is equal parts frightening and ugly.  But do not despair!  We're only halfway done.  You may even get something super dark, or super washed out.  Worry not.  Your precious photons are there, hiding in the shadows.  

Click the "Save picture to file" button over on the left.  Name it something useful, and select TIF - 16 bit.  I label mine in this format: objectname_attempt#_DSS#.  Object name is either Messier number or name for me, so this one is Lagoon; attempt # is the imaging attempt (each separate time I try to make a complete image, which is usually all in one night for my DSLR images, but can span multiple nights for my monochrome images); and DSS # is the version out of DSS.  Sometimes I'll go back and re-stack it, either without flats if they turn out to make it worse, or using different settings.  So for me, this would be Lagoon_4_5, since I've already processed it a few times in DSS.  Important: make sure you have "embed adjustments in the saved image, but do not apply them" checked, and not "apply adjustments!"  You will want to do your histogram stretching and other edits in Photoshop, not DSS.  

Post-Processing

All right, now the fun begins!  Open up Photoshop.  I'm doing this in Photoshop CC 2018, for reference.  Open up the image you just saved out of DSS.  It'll probably be even darker than the one you saw in DSS, since it was showing it with some adjustments made that I told you not to save.  Never fear, the image is indeed hiding in the darkness.  

Stretching

Go to Image -> Adjustments -> Levels (or just hit Ctrl + L if you're a shortcut lover like me).  You will see that the peaks - where all of your image data are - are quite narrow and off to the left.  The different color channels (red, green, blue) may or may not be separated, depending on the light pollution in your area, the composition of your target, whether you were using a filter, etc.  Since I used a light pollution filter (an Astronomik CLS filters to be specific), it's got a strong bluish tinge, as evidenced by the fact that the blue and green peaks are farther to the right than the red peak.

Basically what stretching is going to do is increase the width of the peaks (stretch them) so that your image data take up a wider swath of the available dynamic range of the image.  Light is represented in an image on a scale of black to white for each color channel.  The left end of the histogram is 0, or black.  The right end is shown in Photoshop to always be 255, even if it's a 16-bit image.  The source of the 255 is that most displays are 8-bit, and in binary math terms, 2^8 = 256 (255 because in binary, we start counting from 0, not 1).  In reality, it's stored as a value from 0 to 1, but it's easier and more precise to work in integer numbers on a scale that isn't too huge or too small.

To stretch the histogram, first drag the center slider (the gray point) to the rightmost edge of where your data is.  You'll see your image brighten.  Don't worry about "over-brightening" it at this stage.

Hit OK.  Open Levels again.  Now drag the left slider (the black point) up to the left edge of the data, and drag the gray point slider to the right edge again.  Hit OK.  Rinse and repeat until you don't really need to move the sliders in toward the data anymore - usually I do this 2-4 times.  

The goal isn't to fill the entire range, but just to widen your peaks.  If you imaged from a fairly dark location, and you imaged something smaller like a galaxy, your peaks will start out very thin indeed, since most of your image is black.  

Note: Only adjust the black and gray points, and don't adjust the white point (the rightmost slider).  This will cause your stars to saturate, which can lead to some weird visual effects later.  Just leave it where it's at.

If you have black parts of your image due to non-overlapping stacked region areas or things like that, go ahead and crop those out, and then do another levels adjustment or two, since it will prevent you from being able to move the black point all the way up to where your real data are.  

Color Balance

Open Levels again, but this time click the dropdown box next to "Channel."  In my image, the red peak is basically already at the lowest possible point, all the way over to the left.  So the only two we can adjust are the green and blue.  You'll ultimately want the peaks to be nearly on top of each other.  Of course, if you have an image that is dominated by one color (such as a red nebula), the red peak may end up being a little out in front of the green and blue.  Let's see where we end up.

For this image, I'm selecting the green channel first.  You'll see there's a huge gap between the left end of the histogram and where the data starts.  

We want to close this gap, since space is black, and we want our background to be nearly black (but not totally - we don't want to lose the very dim details the camera barely picked up).  So move the black point in toward the left edge of the data.  Moving the gray point in and out will change the width of the peak.  Do the same for the blue.  In order to color balance, you'll be bouncing around between the three color channels until a) the histograms mostly line up, and b) you get a color balance you mostly like (you don't have to get quite all the way there - there's another tool I use to get it much closer to how I want it later in the process).

I like to hit "OK" after making a few adjustments so that they save, and then keep working.  It's easier to undo things that way if you end up in a place you decide you don't want to be.

Your image will probably get fairly dark again in this process - worry not. It might get too dark to tell whether it's color balanced, so you can come back to this part later.

Curves

Next, go to Image -> Adjustments -> Curves (or hit Ctrl + M).  Here, instead of just adjusting the black and gray points, you mess with the luminance curve for either the image as a whole, or for each color channel.  Some people like to do their stretching here instead of in Levels.  

To brighten up the image, I usually grab the middle of the line and drag it upward.

Now I can see what's going on a little more.  You can make multiple adjustment points along this line, although I find that hard to do.  I'll usually make and adjustment, hit OK, and then come back in and make another adjustment.  The line will re-flatten each time, re-calibrating if you will on the new version of the image.

Now that I can see the image better, it's more obvious that I'm still not color balanced.  So I open up Curves again, and go to the red channel in the "Channel" dropdown.  I pull in the black slider to get rid of the background (don't pull in too far yet though, since you'll cut out dim data from your target), and then I drag the middle of the line up.  Now my image is redder!  But maybe a bit too red.  So I go into the green and blue and make some adjustments there too, moving the curve up and down, sometimes further to the left of center to get into the meat of the data.

This is the part where you get to just start messing around.  There is no formula for getting a scientifically accurate image here.  Astrophotography is a blend of science and art - for as many different astrophotographers are there are out there, you'll see as many different versions of the image celestial body.  Check out my brief treatise on "fake vs real" here.

Again, you don't have to get the color balance exactly right - there's another tool I'll point out later on that I use to get my final level of happiness on an image.


The Carboni Tools

I mentioned at the top of the post a set of tools for Photoshop by Noel Carboni called Astronomy Tools.  They are fabulous and totally worth the $20.  Plus, you can copy the files over to another computer of yours, if you're like me and have both a laptop and a desktop.  (The Creative Cloud subscription I have gives you two licenses - a blessing for when I go to star parties and can't take my desktop!).  Carboni's tools include a number of helpful macros, including "Light Pollution Removal," "Make Stars Smaller" (particularly useful for Schmidt-Cassegrains, which tend to make stars a little bloated), "Deep Space Noise Reduction," "Reduce Small/Large Blue/Violet Halos" (particularly useful for achromatic refractors, like the Vixen 140mm I frequently borrow from my astronomy club), "Lighten Only DSO and Dimmer Stars," and much more.  Because the Lagoon Nebula here is so big and bright, I'm just going to apply the "Deep Space Noise Reduction" tool.  I'd normally also do the removal of blue/violet halos, but for this image, because the nebula is so bright, it's actually going to create small "holes" around the stars, so I'm just going to leave it the way it is.

While the tools run, a number of temporary images or dialog boxes may appear.  There's no progress bar, so just be patient.  You can tell it's done when all of the temporary images, temporary layers, and dialog boxes are gone, and usually Photoshop will replace your cursor with a spinny wheel for some portions of the process.  To see what the action just did, click the History button over on the right (go to Window -> History if you don't have that button showing).  

You can step backward in time here to see how a recent edit changed the image.  Keep in mind that for the Carboni tools, or any other macros you have, it won't show it as the name of the action - it'll show all of the steps that action took.  So you'll need to skip back several steps, usually to just before a Paste or something like that.  The last thing I did was a Curves edit, so I'll go back to there to see what difference the Carboni tool made.  To see differences in noise, you'll want to zoom in.

Before the "Deep Space Noise Reduction" action

After the action

The difference is subtle, but there.  Now, let me show you real quick what I mean by the "holes" left from the blue/violet halo removal process.

Many of the stars in the image do see improvement, but in the brightest parts of the nebula, now I have these weird sort of greenish halos around the stars from where the blue was removed.  This process works great for smaller or dimmer DSOs, but isn't ideal in this image, at least in my opinion.  So I'll go into the History window and back up.

Camera Raw Filter

Basically, Camera Raw Filter is what sold me on a Photoshop subscription.  It is really meant to edit raw images - if you take images in raw format on your DSLR, it saves a ton more information, and you can literally edit the exposure time, contrast, color temperature, etc, as if you were changing the settings on your camera before taking the shot.  It's amazing.  I took an over-exposed image of some clouds over the mountains in Glacier National Park one time, but since it was a raw image, I just brought down the exposure, and got all the cloud detail and sky color back as if I'd taken the image with a lower exposure.  Bonus, I could select only the sky, and leave the mountains at the higher exposure so I could see them in the dimmer morning light.

Your astro image out of DSS isn't raw, but the Camera Raw Filter is still a powerful tool.

Go to Filter -> Camera Raw Filter (you'll need to install it via the Creative Cloud updater app), or hit Ctrl + Shift + A.  

There are several tools here.  First, I'll mess with the exposure a bit, just to see if I can get a little more dim detail without blowing out anything.  Small adjustments here.  Contrast as well.  Then I'll usually pull down Blacks a bit to get rid of the last bits of light pollution, although be careful with this if you are editing an image of a nebula that is likely to have very dim background nebulosity, or galaxies with dim disruption material, like the Whirlpool Galaxy.  

Clarity and Dehaze (recently moved from the Effects tab to the Basic tab, as of roughly this past April) can sharpen fine details.  Don't overdo it.  Zoom in if necessary.  

You can bump up Saturation a bit here.  Again, be careful!

Now, edit the color temperature.  By alternately adjusting Temperature and Tint, you can usually get to a really good balance.  I usually have a really hard time balancing galaxies, especially when I use my light pollution filter, but I've had pretty good success getting the stars to be white by adjusting these two sliders.  Sometimes I stumble upon a correct-looking balance in Levels, but usually not.  Here, I find it much more often, and more quickly.

Aaaand finally, click the Detail tab (the little mountains icon).  This is Photoshop's magical de-noising algorithm.  DSLRs are noisy as heck, and this tool will save the day!  First, it's imperative that you zoom in for this part - I usually just go to 100% (the zoom is down in the lower left corner of the window).  You can click the hand tool at the top of the window to pan around to find a good spot - pick somewhere with some fine detail.  Now, our brains are far more sensitive to luminance noise than color noise, so if you adjust the color noise slider, you won't see much of a difference.  In a tutorial I watched on this tool a while back, they said to move the Color slider to about the middle.  I still do this, and I haven't found a good reason not to yet, so I'll tell you to do it too.  Then, adjust the luminance slider.  Now, be mindful here - go too far to the right, and sure, all your noise will be blurred out, but your fine details will be too.  So you have to strike a balance.
No noise adjustment

Too far - fine details are lost

Just right!

When you're all done, hit OK.

Conclusion

Now, go back and look at one of your single frames, and compare it with the final result.  We have not added any false data, or performed voodoo magic (well, I take that back, I still kind of consider stacking to be some sort of magic) - this beautiful image was buried in the data all along!

Before


It just takes some work to coax the photons out of the noisy, light-polluted background!  And a little color balancing to overcome the camera's limitations.  And a little denoising.  And now we have this beautiful image!

Many amateur astronomers I've met who have tried their hand at astrophotography are quickly discouraged by poor results.  In the single frames they take, they can barely see the object, or the colors are all messed up, or there's so much light pollution, streaky stars, noise, etc.  But putting a lot of care into processing the data is almost more important than the care you put into acquiring the data.  Once you've got a stable setup, with or without autoguide capability, you've got to put some time into stacking and processing your images in order to make all the time and money you spent on your setup worth it.  And it is totally worth it - the image is really there, you just have to bring it out!  All of your hard work pays off when you get a jaw-dropping image of an object that really exists out there in space, whether that's a nebula or a galaxy or a cluster of stars.  And recall, this was taken with an entry-level DSLR, unmodified, from a fairly light-polluted location (I can barely see the Milky Way on a clear summer night)!  

Astrophotography is hard, but totally totally worth it!

If you have questions on anything, please comment and I'll add to the post, or message me on Facebook!