run_spcc
Calibrate color of linear astrophotography images with an astrometric solution via SpectrophotometricColorCalibration; supports narrowband filters and white reference selection.
Instructions
Run SpectrophotometricColorCalibration (SPCC). Requires the image to have an astrometric solution (run_plate_solve adds one) and to be linear (not stretched). Narrowband mode (narrowband_mode true) calibrates each channel as a narrow band: give the real filter centre and width per channel (red_/green_/blue_wavelength_nm and _bandwidth_nm; PixInsight's defaults are 656.3 / 500.7 / 500.7 nm and 3 nm for every band, wrong for a 5 nm H-alpha filter). The white reference matters for star colour: use a solar-type reference such as "G2V Star"; the default "Average Spiral Galaxy" makes a galaxy neutral and tints stars.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qe_name | No | Camera QE curve name (find_filters channel Q) | |
| view_id | Yes | View ID to calibrate (must be linear, must have a WCS/astrometric solution) | |
| narrowband_mode | No | Enable narrowband mode (default false) | |
| red_filter_name | No | Measured R filter curve name, as listed by find_filters. Set all three filters and qe_name together for a full calibration. | |
| white_reference | No | White reference name from PixInsight's database, e.g. "Average Spiral Galaxy", "G2V Star" | |
| blue_filter_name | No | Measured B filter curve name, as listed by find_filters | |
| red_bandwidth_nm | No | Narrowband mode: bandwidth of the red channel's filter in nm (PixInsight default 3) | |
| blue_bandwidth_nm | No | Narrowband mode: bandwidth of the blue channel's filter in nm (PixInsight default 3) | |
| green_filter_name | No | Measured G filter curve name, as listed by find_filters | |
| red_wavelength_nm | No | Narrowband mode: centre wavelength of the red channel's filter in nm (default 656.3) | |
| blue_wavelength_nm | No | Narrowband mode: centre wavelength of the blue channel's filter in nm (default 500.7) | |
| green_bandwidth_nm | No | Narrowband mode: bandwidth of the green channel's filter in nm (PixInsight default 3) | |
| green_wavelength_nm | No | Narrowband mode: centre wavelength of the green channel's filter in nm (default 500.7) | |
| white_reference_name | No | Same as white_reference |