Getting started with AutoIntegrate

Install, add files, run, and find your results

In short: add the repository link to PixInsight, start AutoIntegrate from the Script menu, add your light files and press Run. The final image is called AutoRGB or AutoLRGB and it is saved to the AutoProcessed directory.

This page covers everything you see in Simple mode, which is how the script starts the first time. Prefer video? Watch the introduction video.

PixInsight repository link
https://ruuth.xyz/autointegrate/

On this page: Install · Start the script · Add files · Target type · Run · Results · Improve the result · Simple mode tabs · Next steps

1. Install

AutoIntegrate is installed and updated through the PixInsight update system.

  1. In PixInsight, open Resources / Updates / Manage Repositories.
  2. Click Add and paste https://ruuth.xyz/autointegrate/
  3. Click Resources / Updates / Check for Updates.
  4. Restart PixInsight to install the update.

PixInsight then checks for AutoIntegrate updates every time it starts. AutoIntegrate works with PixInsight version 1.8.9-1 or later.

PixInsight Manage Repositories dialog
Manual download, source code and the test repository

Releases can be downloaded from GitHub releases. Click Source code (zip) and unzip the file. The GitHub master branch has the latest development changes that are not yet released. A test repository at https://ruuth.xyz/test/autointegrate/ usually includes the latest changes from the master branch.

To run a downloaded script, open AutoIntegrate.js in the PixInsight Script Editor and press F9. AutoIntegrate needs the ImageSolver script from the PixInsight distribution. Copy the contents of PixInsight-install-directory/src/scripts/AdP to an AdP directory next to the AutoIntegrate directory.

2. Start the script

Start AutoIntegrate from the Script / AutoIntegrate menu.

Script menu

Simple and expert modes

The first time, the script starts in simple mode. Simple mode shows only the most important options, so you are not overwhelmed. Switch to expert mode at the top of the dialog when you want to see all options. You can switch back at any time. Options that you changed in expert mode still apply in simple mode.

Simple and expert mode selection

Built-in tutorials

AutoIntegrate has interactive tutorials that walk you through the dialog. The tutorial highlights the controls you need and explains what each one does. Start them from the Tutorials button in the main dialog. On first launch they are also offered on the welcome screen.

  • Getting Started: add files, choose a target type and run your first integration.
  • File Management: organize input and output files.
  • Processing Settings: cropping, gradient correction and stretching.
  • Comet Processing: process comet images.
Tutorials dialog

3. Add files

AutoIntegrate dialog with light files added

Add files using the buttons at the bottom of the Files tab.

Add files buttons

Which files work? All files PixInsight can open: FITS from astro cameras, RAW from DSLRs, calibrated or not. Calibrated files from remote telescopes like Telescope Live, iTelescope, Slooh and Deep Sky West work fine. OSC and RAW files are debayered automatically. If your files are already debayered, select None in the Debayer list.

How are filters recognized? The script reads the FILTER keyword from the file, or the filter letter at the end of the file name (for example ngc6514_R.fit). Files are grouped by filter in the file list so you can check that they were recognized correctly. If they were not, see adding filter files manually Expert mode.

4. Choose a target type (optional)

Target at the top of the dialog selects stretching settings that suit your target:

  • Galaxy: target is a lot brighter than the background.
  • Nebula: target fills the whole image or is not much brighter than the background.
  • Star cluster: like galaxy, clusters are often much brighter than the background.

Default uses the current settings, which work reasonably well in many cases.

Target type selection

5. Run

Press Run. Processing can take from minutes to hours depending on the number of files and your computer.

While the script runs, the preview shows a live flowchart of the processing steps and how long each one takes. Use the Show Flowchart checkbox to switch between the flowchart and the current image. Click New Flowchart before running to see what the script will do with your files and settings.

Messages are printed to the PixInsight Process Console. Use Cancel to stop processing.

Live flowchart during processing

6. Results

When processing is done, the final image is open in PixInsight and saved to disk. Output goes to subdirectories of the directory of your first light file, or the Output directory you set at the top of the dialog.

DirectoryContents
AutoProcessedFinal images, integrated images and the AutoIntegrate.log file.
AutoOutputIntermediate files. You can delete these after processing.
AutoMasterMaster calibration files, if calibration was done.
AutoCalibratedCalibrated light files, if calibration was done.

Images

Mono camera (LRGB, narrowband)Color camera (OSC, DSLR)
Final imageAutoLRGB or AutoRGBAutoRGB
StretchedIntegration_L_HT, Integration_RGB_HT, Integration_LRGB_HTIntegration_RGB_HT
Processed, still linearIntegration_L_processed, Integration_RGB_processedIntegration_RGB_processed
CombinedIntegration_RGB_combined
Integrated, unprocessedIntegration_L, _R, _G, _B, _H, _S, _OIntegration_RGB

The integrated images are useful if you want to continue processing manually. The final image is saved in XISF format. Check TIFF or JPG in Settings / Save final image files to also save it in those formats.

Other files that are created

7. Improve the result

Default settings give a good first image. If something does not look right, these are the simple mode options to try first. All of them are on the Settings tab unless noted otherwise.

If…TryRead more
Background is uneven or has a light pollution gradient Check Gradient correction on combined images. Gradient correction is off by default. GraXpert can be used instead, see the Tools tab. Gradient correction, options
Edges look bad, or channels do not cover the same area Check Crop to common area. Crop to common area
Image is too bright, too dark or stars are bloated Choose a target type or another Image stretching method. Image stretching, options
Image is noisy Use NoiseXTerminator, MLDenoise, GraXpert denoise or DeepSNR if you have them. Noise reduction, options
Colors look wrong Check Color calibration using SPCC or Use BackgroundNeutralization. Color calibration, options
Image could be sharper Use BlurXTerminator or GraXpert deconvolution. RC Astro tools, GraXpert
You want a starless image or separate star image Use StarXTerminator or StarNet2. Removing stars, options
You have narrowband data and want a different palette Select a palette in Narrowband processing, for example SHO, HOO or Foraxx. Auto picks one based on your filters. Narrowband palettes, options
You only want calibration or integration Use Calibrate only, Integrate only or Generate masters only. Run modes

To fine-tune the final image without running everything again, use the Enhancements tab. See Image enhancements.

Settings can be saved and after that they are remembered between runs. Use the reset icon (Set default values for all parameters) at the bottom left of the dialog to go back to default settings.

Simple mode tabs

TabWhat it is for
FilesLight and calibration files, debayering, file sorting and filtering.
SettingsMain processing options, external tools, narrowband palettes and saving the final image.
ToolsMLDenoise and GraXpert settings.
EnhancementsImprove the final image after processing: stars, colors, sharpening, curves and more.
InterfacePreview, flowchart and dialog settings.

Expert mode adds the Other, Preprocessing, Integration and Postprocessing tabs, with detailed settings for each processing step. The simple mode options page lists every option you can see in simple mode, and all options lists the rest.

Next steps

▶ LRGB video Mono camera with L, R, G and B filters. ▶ Narrowband video Ha, OIII and SII data and color palettes. Image calibration Bias, darks, flats, flat darks and master files. AutoContinue Fix one step manually and let the script continue from there. Known problems and tips Common problems and how to solve them. Processing in depth What each processing step does and how to adjust it in expert mode.
Start · Data guides · Help · Options · GitHub · Forum · Discord · Support development