From deep-sky RAW files to a finished nebula photo
A faint nebula can be hard to see in a single exposure. Calibrate and combine the exposures first, then bring out the cloud without losing its faint edges or bright core.
Copy the originals and sort the frames
Back up your camera RAWs or original FITS files before importing copies into an astronomy processor. Sort the target exposures (lights) and calibration frames into separate groups. Keep track of the session, camera, filter, exposure, ISO or gain, readout mode and, if available, sensor temperature. Match calibration frames to each set of lights and make room for intermediate files. Use the unedited sensor data and leave any display stretch for preview.
Calibrate the lights before aligning the stars
Combine compatible calibration exposures into masters. A light-frame dark matches the lights’ exposure, ISO or gain, readout settings and sensor temperature as closely as possible. It corrects repeatable dark signal and hot pixels. An evenly illuminated, unsaturated flat records uneven sensitivity and dust shadows. Keep the filter, camera angle, focus and optical train as they were for the lights. Correct the flats’ electronic offset with compatible short bias frames when the camera and workflow support them, or with dark flats matched to the flats’ exposure and sensor settings. Build the master flat from the corrected flats. A master dark that still contains the bias already subtracts that offset from the lights. Check what each master contains before adding a separate bias correction. For a typical one-shot colour workflow, demosaic the calibrated data to RGB before star alignment.
Register and integrate the good frames
Blink through the lights to spot cloud, trailing, poor focus and badly framed exposures. Choose a sharp reference frame. Registration puts the same stars at the same positions, even after a small shift or rotation. Check the centre and corners for double or elongated stars. Integrate the accepted frames to improve the signal-to-noise ratio. An average with outlier rejection can suppress a satellite trail if enough clean frames cover those pixels. Frame selection deals with whole bad exposures, while rejection deals with discrepant pixels. Check the stack and any rejection maps your software provides before settling on settings.
Model the sky glow while the stack is linear
Save an unstretched stack, then work on a copy. Crop away low-coverage alignment edges before fitting the background. Inspect an identical display preview before and after correction. If the sky brightens towards one side, fit a simple background model from regions clear of nebulosity, star halos and dust lanes. Subtract the model for an additive gradient such as light pollution or moonlight. If the model shows the shape of the nebula or cuts a dark hollow around it, change the samples or simplify the fit. When gradients vary substantially between exposures, a processor that supports sequence background correction can model them before stacking.
Calibrate colour before applying a stretch
Balance a broadband colour image while the pixel values are still linear. Where supported, plate-solve the field and compare the observed stars with a catalogue using the appropriate sensor and filter profiles. Use a genuinely empty sky region when a tool asks for a background reference. In Siril 1.4, a typical path is Background Extraction when needed, then Spectrophotometric Color Calibration with a solved field and suitable equipment profiles, then a stretch. A screen AutoStretch only changes the preview. An applied histogram or asinh stretch changes the saved pixel values. If you used narrowband filters or mapped their channels to a palette, record the mapping with the finished image.
Reveal the nebula and check the export
Adjust the midtones in small steps and monitor the histogram. Keep the background above the black clipping point and protect the bright core and star colours from highlight clipping. At full size, look for dark rings around stars, smeared faint filaments and false colour after contrast, saturation or noise reduction. Keep the originals, the linear FITS stack and notes with the frame counts and settings. Save a high-bit-depth TIFF if you plan to continue in a photo editor. Export a separate sRGB JPEG or PNG for sharing, then reopen it in a colour-managed viewer and compare the shadows and core to the master.
Try it on one night of Orion data
Use your own M42 lights and matching calibration frames. In the tracked 400 mm example, take a trial subset of 24 lights from the 30-second set. If two are trailed, the 22 retained frames total 11 minutes. Compare one clean calibrated light with the stack at the same zoom and with the same preview settings. Look for finer background grain and single, round stars. Toggle the gradient correction with that same preview and check that the sky evens out while the faint wings keep their shape. If the core clips in the long exposures, calibrate and integrate the separate 5-second set, then align that stack to the deeper one for blending. Record the frames kept, exposure totals and stretch settings so you can repeat the edit.
Follow the same steps in Siril
For a one-shot colour set with compatible lights, darks, flats and bias frames, the Siril first-steps tutorial shows how to run the supplied OSC_preprocessing script from a working folder containing lights, darks, flats and biases subfolders. Check the script’s requirements against your camera and frames before running it. If you have dark flats or want to compare frame selections, follow Siril’s manual workflow and specify the masters and accepted frames yourself. Open the resulting linear FITS, use AutoStretch to inspect it, and save a separate working copy for the gradient, colour and stretch steps.