The AutoIntegrate script for PixInsight uses a JSON file to store calibration files and processing options. This file is used to save and restore the script's configuration, including all input files and settings.
The JSON format allows users to:
| Property | Type | Required | Description |
|---|---|---|---|
version |
Number | Yes | Format version number (currently 3) |
fileinfo |
Array | Yes | Array of file information objects for each frame type |
settings |
Array | Yes | Array of setting name/value pairs |
window_prefix |
String | No | Prefix added to generated window names (e.g., "test_") |
output_dir |
String | No | Script output directory |
star_alignment_image |
String | No | The star alignment image file |
best_image, reference_image, saved_measurements, and flowchartData), but these are not part of the input configuration.
The fileinfo array contains objects describing each frame type. There are typically four entries corresponding to the four tabs in the AutoIntegrate interface:
| Property | Type | Description |
|---|---|---|
pageindex |
Number | Tab index (0=Lights, 1=Bias, 2=Darks, 3=Flats) |
pagename |
String | Name of the frame type ("Lights", "Bias", "Darks", "Flats") |
files |
Array | Array of file entries (format varies by page type) |
filterset |
Null | Reserved for filter set information (typically null) |
Each light frame entry is an array with 5 elements:
| Index | Type | Description |
|---|---|---|
| 0 | String | Filename (can be full path or relative path) |
| 1 | Boolean | Enabled flag - whether the file will be processed |
| 2 | Number | Weight score (0 initially, normally populated by SubframeSelector during processing) |
| 3 | Boolean | If true this is the best image of all light images |
| 4 | Boolean | If true this is the reference image for the filter |
For Bias, Darks, and Flats, each file entry is a simpler array with 2 elements:
| Index | Type | Description |
|---|---|---|
| 0 | String | Filename (can be full path or relative path) |
| 1 | Boolean | Enabled flag - whether the file will be used in calibration |
The settings array contains configuration options as name/value pairs.
Possible names are listed in AutoIntegrate file AutoIntegrateGlobal.js in an array
this.par.
The value type depends on the the parameter type.
Each entry is a two-element array:
| Setting Name | Type | Example Value | Description |
|---|---|---|---|
| Use StarXTerminator | Boolean | true | Enable StarXTerminator processing |
| Use SPCC for color calibration | Boolean | true | Whether to use SPCC for color calibration |
| Image stretching | String | "Masked+Histogram Stretch" | Name of the image stretching method |
| Narrowband mapping | String | "HOS" | Narrowband mapping palette name |
| Narrowband R mapping | String | "H" | Narrowband mapping for the Red channel |
| Narrowband G mapping | String | "O" | Narrowband mapping for the Green channel |
| Narrowband B mapping | String | "S" | Narrowband mapping for the Blue channel |
JSON files can be created in several ways: