align_files
Register image files onto a reference image using StarAlignment, file-to-file, in batches. Output registered XISF files or compute registration matrix only.
Instructions
Register image files onto a reference image file with StarAlignment, file to file (no views are opened). Targets run in batches of at most batch_size (20 at most), one StarAlignment execution per batch. Registered files (.xisf) go to output_dir, which must lie inside /output (a relative path is resolved there) or the state folder. matrix_only: StarAlignment in OutputMatrix mode, reporting the registration per target without keeping any image file; its output directory is a temporary folder under /agentic/scratch/align_files that is deleted afterwards, and any file written there is listed. Per target the result gives the outputData values StarAlignment reports (output file, star pair matches, errors, transformation elements, as this PixInsight names them). Runs without geometry confirmation dialogs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Overwrite existing registered files (default false) | |
| batch_size | No | Targets per StarAlignment execution, 1 to 20 (default 20) | |
| output_dir | No | Folder for registered files: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder. Not used with matrix_only | |
| matrix_only | No | Compute the registration only; keep no image files (default false) | |
| target_files | Yes | Absolute paths of the files to register | |
| interpolation | No | StarAlignment pixel interpolation; omitted, PixInsight's default | |
| output_postfix | No | Suffix of registered file names (default "_r") | |
| reference_file | Yes | Absolute path of the reference image file | |
| distortion_correction | No | StarAlignment distortion correction; omitted, PixInsight's default |