A tool for advanced removal of unwanted gradients from your images
Removes the background gradient (from light pollution, the Moon, dusk or dawn) from your stacked image. It verifies where the gradient comes from using the single frames, so only the unwanted signal is removed from the final image.
Windows, macOS and Linux. Stacked images from any program.
Stack as usual, YAN Gradient Remover does the rest
Stack wherever you like: Astro Pixel Processor, PixInsight, Siril or anything else. YAN Gradient Remover measures the gradient and subtracts it from your stacked image.
- Save the stacked image. It has to be linear, saved before stretching, DBE, LPC or any other gradient tool.
- Drop the object folder. The program finds the stacked image, the single frames of every session and their flats and darks. You only check what it found.
- The program checks the gradient in the single frames. From the time, site and astrometry of every frame it knows where the Moon, twilight and light pollution were. From the data it fits only how strong they are.
- Check and save. Next to the image you see how much gradient is left and how much faint structure survives. The result is a new file with a complete header. It stays linear, ready for further processing, and your image stays untouched.


What it does with your data
A wizard, step by step
With the wizard you choose how you want to correct the image, add the frames you need and the calibration frames, and set the object type and observing site. After computing you get our proposal for the final image, which you can still adjust for the best result.
- a mode for colour cameras and DSLRs and one for mono camera filters (LRGB and narrowband)
- every file shows at once whether it is there and whether it fits
- longer explanations under an “i” icon, so the screen stays clear
- in English and Polish


A gradient checked in the single frames
The nebula and the dust sit at the same place on the sky in every frame. The gradient changes: with the object's altitude, with the Moon and with twilight. YAN Gradient Remover uses that difference to tell them apart. Step by step, it:
- builds a sky model with light pollution, airglow, the Moon and twilight
- groups the frames by night and by side of the meridian
- subtracts the gradient when it can determine it correctly, and if not, tells you why

Signal protection you can see
YAN Gradient Remover smooths the rest of the background with a model that avoids bright objects, known dust and nebulae, and the areas you mark. The model is built from:
- the object type (galaxy, Hα region, dust, cluster, small nebula, reflection nebula, Milky Way)
- the SFD dust map, which protects IFN and dark nebulae
- the Hα map of the NSNS sky survey, which keeps faint Hα in the background
- the areas you mark with a click
The protection map shows in colour which parts of the frame are protected and why. After the correction you also see how much gradient is left and how much dust and emission was kept, and the loss map shows in per cent how much faint structure survived across the frame.


Mono filters and sessions
You enter the sessions for each filter separately, each with its own flat, dark flat and dark. That lets YAN Gradient Remover determine the gradient as precisely as possible and remove it.
As a result you get a separate image for each filter, and you can check the R, G and B channels together to verify the background colour.
You can also switch on background neutralisation, so the final image is ready for further processing right away.


Pure emission
Continuum subtraction removes from a narrowband image the light of stars and background that also shows in broadband, so that only the gas emission is left, e.g. Hα or OIII. For narrowband images YAN Gradient Remover uses it to protect the collected signal of the object as well as possible while removing the gradient.
If you like, you can also save the image after continuum subtraction as FITS or TIFF. It holds the pure emission signal of the filter, e.g. Hα, SII or OIII.

It checks your data
First, YAN Gradient Remover verifies the headers of the single frames and of the stacked image and tells you if anything is missing. It checks:
- the astrometry in the header, compared with the optics (astrometry that does not fit is not used)
- observation time, exposure time and filter (when they are missing, the program takes them from ASIAIR and N.I.N.A. file names)
- frames with clouds or stray light, found during the analysis
- whether the stacked image is already stretched
If any of these is wrong, you get a warning.
When astrometry is missing, the program offers to download the star database (1.5 GB) and then solves every frame and the stacked image itself (the only point where internet is needed).


What you need
Computer
Windows, macOS (12 or newer) or Linux. The more cores, the faster the analysis of the frames.
Focal length
150 mm or more. Shorter lenses give a frame wider than the program can plate solve and describe with its background model.
Stacked image
A linear FITS, TIFF or XISF from any program, saved before stretching, DBE, LPC or any other gradient tool.
Single frames
FITS lights with exposure time and observing site, in the header or in the file name. Flats, even one stacked flat, clearly improve the result.
Image alone
No single frames? The program still corrects the background with signal protection, only without what the frames tell.
Version 1.0.0
A free program for Windows, macOS and Linux. Feedback and bug reports: kontakt@yanastro.com.
Windows
Windows 10 or 11, 64-bit. The easiest way is the Microsoft Store: the program is signed, installs without warnings and updates itself.
You can also download the installer, which needs no administrator rights. It is not signed, so a blue SmartScreen window may appear during installation: click “More info” and then “Run anyway”. If Smart App Control is on in Windows 11, install the program from the Microsoft Store.
Get it from Microsoft Store Installer (84 MB)macOS
macOS 12 or newer, Apple Silicon (M1 and newer) or Intel. Open the .dmg and drag the program to Applications. The program is not signed by Apple yet. The first time, on macOS 15 and newer, open it, close the message, then click “Open Anyway” in System Settings → Privacy & Security. On older macOS, Control-click it, choose “Open” and then “Open” again. This is a temporary workaround until the program is signed.
Apple Silicon (112 MB) Intel (122 MB)Linux
x86_64. Unpack and run ./install.sh to add a menu entry, or start the program straight from the folder.
Star database
The program downloads it itself when it is needed. This file is for a computer without internet: choose it in the program with “I have the file…”.
Download database (1.5 GB)Checksums: SHA256SUMS.