run_mgc
Correct gradients in plate-solved linear PixInsight images using the MARS reference database via MultiscaleGradientCorrection; mono images require a filter.
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); a mono image without filter is refused, since MGC would then fit its model against a MARS band that is not the image's. For a color image leave it out (R, G, B bands are used). MARS files default to the ones configured in PixInsight.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"view_id": "<view_id>"
},
"name": "run_mgc"
}
}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) |