Skip to content

CLI Reference

Stéphane Pilloy edited this page Nov 29, 2026 · 2 revisions
Language: English | Français 🇫🇷

Command Line Interface (CLI) Reference

CassiniFlow.Cli is a fast, headless, multiplatform executable designed for night automation scripts, batch queue runners, and integration with external astronomical capture pipelines.


Command Syntax

CassiniFlow.Cli [options] [profile.pof] [input_file(s)]

Available Flags & Parameters

Flag Shorthand Description Default
-check -chk Enable planetary object detection in each frame. Off
-centre -ctr Center the detected object in the output frame. Off
-crop=N -c=N Crop output to a square bounding box of $N \times N$ pixels. Off
-cropx=W -cx=W Crop output width to $W$ pixels. Off
-cropy=H -cy=H Crop output height to $H$ pixels. Off
-offsetx=X -ox=X Shift crop center horizontally by $X$ pixels. 0
-offsety=Y -oy=Y Shift crop center vertically by $Y$ pixels. 0
-minsize=N -ms=N Reject frames where object size is smaller than $N$ pixels. 25
-overexposed=N -oe=N Reject frames with more than $N$ saturated pixels. Off (60)
-debayer=0..3 -db=X Enable debayering (0: GBRG, 1: BGGR, 2: RGGB, 3: GRBG). Off
-pb Protect Bayer pattern (aligns crop/offsets to even 2×2 pixels). Off
-quality -q Enable seeing quality estimation. Off
-quality=N -q=N Keep top $N$ sharpest frames. Off
-qpcnt=X Keep top $X%$ sharpest frames (e.g. -qpcnt=25). Off
-qweight -qw Apply quality weighting. Off
-qold Use original legacy Ninox quality algorithm. Off
-qhisto Use Peak Histogram quality algorithm. Off
-join -j Join Mode: Merge multiple input files into a single output SER. Batch
-ser Set output format to SER. Default
-fits Set output format to FITS. Off
-avi Set output format to AVI. Off
-outdir=PATH -od=PATH Specify custom output directory. ./cassiniflow_output
-cpu=PCT Limit maximum CPU usage percent (e.g. -cpu=75). Auto (70%)

Profiles (.pof)

CassiniFlow CLI can load predefined parameter sets saved from the GUI using .pof profile files:

# Apply a saved Jupiter configuration to all SER captures in a directory
CassiniFlow.Cli Jupiter_HiRes.pof "D:\Captures\2026-10-15\*.ser"

Practical Script Examples

1. Batch Preprocessing in PowerShell (Windows)

Get-ChildItem -Path "D:\AstroCaptures\*.ser" | ForEach-Object {
    Write-Host "Processing $($_.Name)..."
    .\CassiniFlow.Cli.exe -check -centre -crop=600 -debayer=2 -qpcnt=30 -ser -outdir="D:\Preprocessed" $_.FullName
}

2. Linux Bash Night Watcher

for file in /mnt/astro/captures/*.ser; do
    echo "Processing $file..."
    ./CassiniFlow.Cli -chk -ctr -crop=512 -debayer=2 -qpcnt=25 -ser -outdir="/mnt/astro/ready" "$file"
done

Clone this wiki locally