run_mgc
Correct gradients in plate-solved linear images using MARS reference data. Specify filter for mono images; color images use RGB bands automatically.
Instructions
Run MultiscaleGradientCorrection using the MARS reference database. The image must be plate-solved and linear; a mono image also needs the flux metadata run_spfc writes. For a mono image pass filter (L, R, G, B, Ha, OIII, SII); for a color image leave it out (R, G, B bands are used). MARS files default to the ones configured in PixInsight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Mono only. One of L, R, G, B, Ha, OIII, SII | |
| view_id | Yes | View ID to process | |
| mars_files | No | Absolute .xmars paths (default: from PixInsight settings) | |
| show_model | No | Also create the gradient model window | |
| gradient_scale | No | Gradient scale in pixels (default 1024) | |
| model_smoothness | No | Model smoothness (default 1) | |
| structure_separation | No | Structure separation (default 3) |