Fundamentals · PixInsight 1.9.x

MultiscaleGradientCorrection (MGC)

MultiscaleGradientCorrection (MGC) compares the image with a reference map of the sky (MARS). Structures smaller than a selectable scale are taken from your own image, larger ones are matched to the reference.

Purpose

TaskSetting
remove gradients in fields with real large-scale emissiongradient scale 1024 to start
weight your own data more than the referencelarger gradient scale
WhyMGC rather than GradientCorrection?

judges by smoothness only: everything large-scale counts as gradient. MGC compares with a reference map and can thus distinguish real large-scale signal – Milky Way emission, extended nebulae – from gradients.

Principle

  • MARS is a reference of the sky made from broadband data. Image areas larger than the gradient scale are matched to it; smaller structures come from your own image.
  • For this comparison MGC needs the image’s brightness in absolute units, which SPFC (SpectrophotometricFluxCalibration) provides beforehand.
  • If the image differs spectrally from the broadband reference (e.g. with a line filter), a small scale also matches real differences to the reference.

Parameters

ParameterEffectTypical choice
Gradient scaleboundary between your image and the reference1024 (default)
Gradient scaleEffectRisk
smaller (e.g. 512)more thorough gradient removaldifferences from the reference are subtracted as gradient
1024balanced–
larger (1536–2048)your data also determine larger structureslarge-scale residual gradients possible

Operation

Prerequisites: Gaia DR3/SP and MARS data installed; image cropped (DynamicCrop); astrometric solution present.

  1. ImageSolver, if the solution does not come from .
  2. SPFC (SpectrophotometricFluxCalibration): choose the sensor’s QE curve and the filter curves used; Gray filter has no meaning for RGB images. SPFC only computes scaling factors for flux units – no colour calibration.
  3. Apply MGC with gradient scale 1024, preferably on a copy.
  4. Then colour calibration with .

Checking the SPFC result:

CriterionAssessment
Total sourcesseveral thousand per channel – a good basis
Dispersion / scale factorbroadband typically 1–3 %; with a line or multi-band filter higher (about 5–9 %) because SPFC does not know the filter – sufficient for gradient correction
Curves (sorted scale factors)flat over most stars; steep ends (faint or saturated stars) are normal

Typical applications

Multi-band or line filters on colour cameras

With a filter that emphasises emission lines (e.g. quad band-pass), the image differs spectrally from the broadband reference. Try a larger scale (e.g. 1536) so that less is matched to the deviating reference; compare two copies (1024 / 1536).

Comparing GC ↔ MGC

Preview on faint outer parts, drag it onto both results, 1:1, same STF. MGC often preserves faint structures slightly better; the background may stay slightly warmer, because extended emission is real signal. The background colour is set by colour calibration anyway.

What a good result looks like

Typical errors

ObservationCauseRemedy
Message “No reference data found”region not covered by MARSuse
MGC does not start or computes wronglySPFC missingrun SPFC first
Real structures weakenedscale too small, image differs spectrally from the referenceraise the gradient scale
Large-scale residual gradientscale too largelower the gradient scale

When to use it – and when not

Good forBetter another tool
broadband and OSC data with large-scale emissionpure narrowband masters → (MARS is based on broadband data)
when GC pulls nebula into the modelregion without MARS coverage → GradientCorrection or DBE
Used in

GradientCorrection · HaLRGB workflow · OSC workflow with a quad band-pass filter · SpectrophotometricColorCalibration (SPCC) · WeightedBatchPreprocessing (WBPP)