run_wbpp
Start headless WBPP in a separate PixInsight instance to batch preprocess astrophotography frames from input folders. It writes to an output directory and returns a run ID.
Instructions
Start WeightedBatchPreprocessing (WBPP) headless in a separate PixInsight instance (PixInsight -n --automation-mode --force-exit) over input_dirs, writing into output_dir, and return a run id at once; wbpp_status reports the run. output_dir must lie inside /output (a relative path is resolved there) or the state folder. Only the WBPP parameters given are passed; WBPP's own settings apply to the rest. Interactive local normalization and frame selection are turned off so nothing waits for a click. optimize_darks and drizzle_scale are applied to every light group by a generated pipeline-builder script. extra_params passes further WBPP automation parameters by name (BPP-Automation.js lists them). Refuses while the GUI instance runs a command for this workspace, and while an earlier run_wbpp run of this workspace is running. Tools that use the GUI instance keep working while WBPP runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weights | No | Subframe weighting method, or none | |
| autocrop | No | WBPP autocrop | |
| keywords | No | Grouping keywords [{name, mode}], mode pre (calibration groups), post (integration groups) or prepost | |
| integrate | No | WBPP integrate | |
| reference | No | Automatic registration reference: one for all (auto) or one per value of reference_keyword | |
| rejection | No | Pixel rejection for lights (WBPP rejection_4) | |
| input_dirs | Yes | Folders WBPP scans recursively for lights, darks, flats and bias (WBPP dir=) | |
| output_dir | Yes | WBPP output folder: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder | |
| plate_solve | No | WBPP platesolve | |
| extra_params | No | Further WBPP automation parameters, {name: value} | |
| drizzle_scale | No | Enable drizzle on every light group at this scale | |
| optimize_darks | No | Set dark optimization on every light group | |
| frame_selection | No | Frame selection filters [{metric, value, compare}], compare less or greater (non-interactive) | |
| reference_image | No | Registration reference image file (WBPP referenceImage, manual reference) | |
| reference_keyword | No | Keyword for reference auto_by_keyword | |
| image_registration | No | WBPP imageRegistration | |
| local_normalization | No | WBPP localNormalization (run non-interactively) | |
| distortion_correction | No | WBPP distortionCorrection | |
| generate_rejection_maps | No | WBPP generateRejectionMaps |