BiggSkyCLI Command-Line Manual

Run BiggSky’s stacking and deconvolution with no window: process a night of captures unattended, re-run a session from a job file, or drive BiggSky from a script, a capture program or an AI agent. BiggSkyCLI is included in the SSE Pro, DSO and Universe editions, and in the free trial.

Download as Markdown (.md) Compare editions Features

Driving BiggSky with an AI agent? Give it BiggSkyCLI-Manual.md: this manual as one Markdown file, written to be handed to an agent as-is. Section 11 tells it how to drive BiggSky – check the license, discover the parameters, dry-run, run, and read the results. The same file is installed beside BiggSkyCLI.exe.

1. What it is

BiggSkyCLI runs BiggSky's stacking and deconvolution with no window.

  • Targets: Lunar, Planetary, Solar and DSO. For DSO, --ops all is stack, then Remove Stars, then the decon with Use Starless, as the app's Do It All does: see Deep-sky in section 4.
  • Engine: it is the same engine the app uses. A compiled CLI run gives results byte-identical to the same run from MATLAB source.
  • One-step processing: stack then deconvolve, the CLI's equivalent of the app's Do It All for these targets.

Typical uses:

UseHow
Process a night's captures unattendedBiggSkyCLI process D:\Captures\2026-10-10 -t planetary --settings user
Deconvolve an AutoStakkert stackBiggSkyCLI process jupiter_AS4.tif -t planetary
Re-run a session with fixed, documented settingsa job file (section 9): BiggSkyCLI run night.json
Drive BiggSky from a script, capture program or AI agent--json events and exit codes (sections 10–11)

Requirements

  • License: the command line is part of the SSE Pro, DSO and Universe editions, and of the free trial. SSE Lite, SSE Free and Free do not include it. A commercial license includes it with Universe only. On a DSO license the lunar mosaic and derotate commands are still refused – those are solar system tools. solve (plate solving) and the deep-sky mosaic (mosaic -t dso) are deep sky: DSO and Universe only, so SSE Pro refuses them.
  • License activation: activate in the BiggSky app on the same computer, under the same Windows user account (on a Mac or Linux, the same user).
    • The license seat is tied to that account.
    • Running the CLI as another user, as a Windows service or as SYSTEM looks like a different machine.
    • To schedule runs, use Task Scheduler with "Run as" set to your own account.
  • Installation: the BiggSky installer puts BiggSkyCLI.exe beside BiggSky.exe, in C:\Program Files\BiggSky\application\, and both use the same MATLAB Runtime (R2026a on Windows; BiggSkyCLI version and the first --json line name it, and the hardware event says what a run will use). Nothing else to install. Beside them are BiggSkyClient.exe (section 3, "Server") and this manual as BiggSkyCLI-Manual.md. Add that folder to your PATH, or type the full path, to run it from any command prompt:
    "C:\Program Files\BiggSky\application\BiggSkyCLI.exe" version
  • On macOS the installer puts BiggSkyCLI.app beside BiggSky.app in /Applications/BiggSky/application/, with a BiggSkyCLI command that runs it, BiggSkyClient and this manual. The program inside BiggSkyCLI.app cannot be started by itself (it needs the MATLAB Runtime found for it), so always use the BiggSkyCLI command. In Terminal:
    cd /Applications/BiggSky/application
    ./BiggSkyCLI version

    Or add the folder to your PATH (in ~/.zshrc: export PATH="/Applications/BiggSky/application:$PATH") and type BiggSkyCLI anywhere. Everything in this manual works the same way. Paths are macOS paths (~/Captures/jup.ser), and quoting is the shell's ('My Captures/jup.ser').

  • On Linux the installer puts the BiggSky and BiggSkyCLI commands, BiggSkyClient and this manual in /usr/BiggSky/application/, and the programs themselves in its bin/. The commands find the MATLAB Runtime R2024b (in /usr/local/MATLAB/MATLAB_Runtime/R2024b, /opt/MATLAB/MATLAB_Runtime/R2024b or your home folder) and start the program. Always use them, not bin/BiggSkyCLI (which cannot start without the runtime on its library path) or bin/run_BiggSkyCLI.sh (which prints a banner on stdout and so breaks --json):
    /usr/BiggSky/application/BiggSkyCLI version

    Add the folder to your PATH (export PATH="/usr/BiggSky/application:$PATH" in ~/.bashrc) to type BiggSkyCLI anywhere. A runtime installed somewhere else: export MCRROOT=/path/to/MATLAB_Runtime/R2024b.

  • Start-up time: every invocation spends about 15–20 s starting the MATLAB Runtime. Pass many inputs to one call rather than calling once per file, or keep BiggSky running as a server (section 3).

2. Quick start

BiggSkyCLI license
BiggSkyCLI process D:\Captures\2026-10-10\jupiter.ser --target planetary
BiggSkyCLI process D:\Captures\2026-10-10 --target planetary --settings user
BiggSkyCLI process D:\Captures\Moon\*.ser -t lunar --ops stack
BiggSkyCLI process D:\AS4\jupiter_stack.tif -t planetary --ops decon
BiggSkyCLI process D:\Captures\Saturn\*.ser -t planetary --ops analyze
BiggSkyCLI process D:\Captures --recursive --target auto --dry-run

The last line is for a folder of mixed captures. It lists each one with the target it would use, and why, and processes nothing (Target auto, section 4).

  • With no --out, results go into a BiggSky folder beside each capture, the same place the app's "use image folder" setting puts them.

A ready-made script

On Windows, BiggSky installs BiggSkyProcess.bat and BiggSkyProcess.ps1 beside BiggSkyCLI.exe (C:\Program Files\BiggSky\application). The script works through a folder of captures in five steps:

  1. It asks for anything not given: the folder (a folder picker), the target (auto by default) and what to do (all, stack or decon).
  2. It runs a dry run, which lists each capture with its target and output folder.
  3. It processes only after you answer y.
  4. It derotates planets: captures whose names carry a WinJUPOS time and the planet (2026-11-21-0045_9-Saturn-L.ser, as SharpCap and FireCapture can write them) are turned to one time and combined. That gives one image per filter, plus RGB and LRGB from a monochrome camera's filters. The result goes in DRC\, beside the other results (derotate, section 3). -Derotate off skips it.
  5. It explains the exit code: what to fix after exit code 2, and report show and report send after a failure.
BiggSkyProcess.bat
BiggSkyProcess.bat D:\Captures\2026-10-10
BiggSkyProcess.bat D:\Captures\Moon -Target lunar -Ops stack
  • Starting it: double-click it, or drop a folder on it, and the window stays open at the end so you can read the results. In a terminal, give the folder and options.
  • Its options are -Target (auto, lunar, planetary, solar, dso), -Ops, -Settings (user, the default, or factory), -Out, -NoRecursive, -Derotate (auto, the default, or off), and -Yes (no question, for a scheduled task).
  • The .bat runs the .ps1 with -ExecutionPolicy Bypass for that run only, because Windows may not run PowerShell scripts otherwise.
  • Changing it: copy both files to a folder of your own first. An installer replaces the installed ones.
  • Which BiggSkyCLI it runs: BIGGSKY_CLI if set, else the BiggSkyCLI.exe beside it, else the installed one.
  • The command prints where each result went.

Asking an AI chatbot for help

An AI chatbot can write the commands for you, but only from what you give it. There are two ways to use one.

  • Claude Desktop with the BiggSky connector (BiggSky for Claude). Claude sees the folders you allow, shows you a plan, and runs BiggSky itself after you agree.
  • Any other chatbot (ChatGPT, Gemini, Copilot, or Claude in a web browser) cannot see your computer. It cannot see your files or BiggSky, nor read this manual where it is installed. When it doesn't know an option, it guesses one, and BiggSkyCLI refuses the command with exit code 2.

First check whether BiggSkyProcess (above) already does what you want. If you still need a chatbot, do this:

  1. Attach this manual to your question: BiggSkyCLI-Manual.md, in C:\Program Files\BiggSky\application. Attach that installed copy, because it matches your version, and the website's copy may describe a newer one. If the chatbot won't take an .md file, copy it to your desktop, rename the copy BiggSkyCLI-Manual.txt, and attach that.
  2. Say that the manual is for the version you have installed (it names it at the top; BiggSkyCLI version says which you have). Tell the chatbot to use only the commands and options in it, with BiggSky's default settings.
  3. Describe the captures:
    • the folder they are in;
    • what they are: lunar, a planet (which one), solar, or deep sky;
    • the camera, and whether it is monochrome or color;
    • the filters;
    • one file name as an example. A name often carries the time, the planet and the filter, and the chatbot can read them from it.
  4. Say how you will run the commands. For example: "I will type them myself in PowerShell, one at a time." Ask for plain commands rather than a script, ask for each process command with --dry-run first, and ask it not to use --json (that is for programs, not people).
  5. Say what you want at the end, such as "one color image, derotated", or "a stack and a decon of each capture".
  6. If a command fails, paste everything it printed back into the chat, including the exit code. BiggSkyCLI report show shows the errors of the last run that failed, with your paths described rather than named, so you can share it (section 13, Run reports).

An example question to send with the manual attached:

I have attached the BiggSkyCLI manual for the version of BiggSky I have installed. Use only
the commands and options in it, and BiggSky's default settings; do not guess any
others. I will type the commands myself in PowerShell, one at a time, so give me plain
commands, not a script, and do not use --json.

My captures: 14 SER files of Saturn in F:\Captures\2026-11-21, from a monochrome camera
through L, R, G and B filters, named the WinJUPOS way, for example
2026-11-21-0045_9-Saturn-L.ser.

1. The command to stack and deconvolve them all, first with --dry-run so I can check the
   list.
2. The command to derotate the results to one time and combine the filters into one color
   (LRGB) image, and where to find that image.

If you are the chatbot helping someone who will run what you write, these sections apply:

  • Writing a script for a person, in section 11. Ask before you write anything, use no --json, and dry-run first.
  • Target auto, in section 4, for a folder you cannot see.
  • derotate, in section 3, for planets.

3. Commands

CommandWhat it does
process <inputs...> [options]Stack and/or deconvolve each input. If the first argument is not a command, process is assumed.
run <job.json>... [options]Run one or more job files (section 9).
script <commands.txt> [--stop-on-error]Run a file of BiggSkyCLI command lines in one process (below).
params --target T [--expert|--all] [--settings …] [--json]List the named parameters (--set, --decon, --save) with their tier and resolved value for target T. Needs no license. params --command <tool> lists a tool command's options; params --command color (or params --list-presets) the Color presets and recipe fields; params --widgets lists the app controls --widget can set.
info, compare, render, sharpen, mosaic, derotate, dewarpmovie, solveTool commands (below).
profile list | show [NAME] | save NAME | pathSettings profiles (section 6). save takes --target, --settings/--config (a snapshot) or --set/--decon/--save values (an update), and --description.
equipment [list | scale <file|folder> | check | cameras [TEXT] | init <folder> | path]Your telescopes, optics, cameras and optical trains, and the plate scale they give a frame (section 6, "Equipment and plate scale"). Needs no license.
license [--json]Show the license status. Offline; never contacts the server.
LicenseCheck [--json]Validate with the BiggSky license server now, then save the result.
update [check | download | install] [--out DIR] [--dry-run]A newer BiggSky for this computer (section 12, Updating). Needs no license.
report [list | show [N] | send [N]]The redacted report BiggSkyCLI keeps of each run, and sending one to BiggSky support (section 13, Run reports).
versionPrint the version.
helpPrint the full usage.

Command names are not case-sensitive: LicenseCheck, licensecheck and license-check all work.

Scripts: several commands in one process

Every start of BiggSkyCLI.exe costs time before any work: the MATLAB Runtime starts, and the first command in a process then loads the app's settings, figures and the GPU. script runs a file of command lines in one process, so that is paid once:

# commands.txt - a night: decon the stacks, look at one, derotate them
BiggSkyCLI process D:\Night\PNG -t planetary -o D:\Night\out
BiggSkyCLI render D:\Night\out\PNG.mat --opt View=Decon --opt Format=JPG --opt Bits=8
REM one derotated image
BiggSkyCLI derotate D:\Night\out\DeconLRGB_View_16b --opt Mode=image
BiggSkyCLI script D:\Night\commands.txt --json
  • Each line is a whole command line, as typed at a prompt: it starts with BiggSkyCLI (or BiggSkyCLI.exe, or a path to it), and quoting is the command prompt's ("C:\My Captures\jup.ser", --set SuperRes="1 2"). Blank lines and lines starting with #, REM or :: are skipped. A script cannot run another script.
  • Every line is checked first. A usage error on any line (an unknown option, an unknown --opt name, a line that is not a BiggSkyCLI command) is exit 2 for the script, with its line number, and nothing runs.
  • The lines run in turn, each exactly as a separate call would: its own license check, log, record and result. --stop-on-error stops at the first line that does not exit 0.
  • With --json every line gets --json too. After each line comes a {"event":"script","line":…,"command":…,"exit":…,"seconds":…} event, and at the end a summary.
  • Exit code: 0 when every line exited 0, 1 when every line failed, 3 when some did, 2 for a usage error in the file.

Measured with the compiled exe, 7 commands (info, two renders, sharpen, compare, derotate to an image, decon of a stack):

separate callsone script
info6.2 s0.2 s
render (JPG)29.7 s3.3 s
render (PNG)30.1 s1.0 s
sharpen30.9 s1.4 s
compare6.7 s0.1 s
derotate53.8 s44.2 s
decon of a stack33.9 s19.3 s
total191.4 s76.5 s (60% less)

Short commands gain the most. A long stack or decon gains the same fixed ~15–25 s.

Server: BiggSkyCLI stays running (serve and BiggSkyClient)

A script needs every command known up front. When commands come one at a time – from an agent, a capture program, or a person at a prompt – run BiggSky as a server instead, and send it commands with BiggSkyClient.exe, a small program that sits beside BiggSkyCLI.exe and starts in a fraction of a second (on macOS and Linux, BiggSkyClient beside the BiggSkyCLI command):

BiggSkyClient process D:\cap\jup.ser -t planetary -o D:\out --json
BiggSkyClient render D:\out\jup.mat --opt View=Decon --opt Format=JPG
# macOS, in /Applications/BiggSky/application (Linux: /usr/BiggSky/application)
./BiggSkyClient process ~/Captures/jup.ser -t planetary -o ~/out --json
  • Same arguments, same output, same exit code as BiggSkyCLI. Swap the program name and nothing else changes: --json gives the same events, and the exit code is the command's.
  • The first command starts the server (BiggSkyCLI serve, hidden, about 6 s) and leaves it running; every later command skips the start-up. A server started by hand works the same: BiggSkyCLI serve in a window of its own.
  • Relative paths are from the folder the client runs in, as with BiggSkyCLI.
  • One command at a time. Commands sent while one runs wait their turn, in order.
  • Control:
BiggSkyClient --statusIs a server running, and what is it doing: {"event":"info","topic":"serve","running":true,"state":"busy","command":…,"served":…}. Exit 1 when none is.
BiggSkyClient --cancelCancel the running command, as the app's Cancel button. Ctrl+C in the client does the same.
BiggSkyClient --shutdownStop the server.
--no-startFail (exit 1) rather than start a server.
--cli <path>The BiggSkyCLI.exe to start, if not the one beside the client (or set BIGGSKY_CLI). On macOS, BiggSkyCLI.app or the BiggSkyCLI command; on Linux, the BiggSkyCLI command.
--start-timeout SHow long to wait for a server it starts (default 300 s).
  • BiggSkyCLI serve options: --port N (default 52817), --idle-exit M (stop after M minutes with nothing to do; default never), --queue <dir> (below).
  • Its folder holds serve.json, serve.log and the cancel file: %LOCALAPPDATA%\BiggSkyCLI\ on Windows, ~/Library/Application Support/BiggSkyCLI/ on macOS, ~/.local/state/BiggSkyCLI/ on Linux (or $XDG_STATE_HOME/BiggSkyCLI/).
  • Security. The server listens on 127.0.0.1 only, never the network. Each request must carry a random token the server writes to serve.json in that folder, which only this user can read. One server per user; a second serve is refused (exit 2).
  • Its log is serve.log in that folder: every command, its exit code and time. On macOS and Linux, a server the client started also writes its console output to serve.out there, so a server that stops at start says why.

Measured with the compiled programs, the same 7 commands as the script table above, one BiggSkyClient call each:

separate BiggSkyCLI callsBiggSkyClient, warm server
info6.2 s0.2 s
render (JPG)29.7 s3.3 s
render (PNG)30.1 s1.3 s
sharpen30.9 s1.6 s
compare6.7 s0.2 s
derotate53.8 s46.1 s
decon of a stack33.9 s32.3 s first, then 12–19 s
total191.4 s85.0 s, plus 6 s once to start the server

The first decon in a server starts the worker pool; later ones reuse it.

Queue folder

BiggSkyCLI serve --queue D:\Night\jobs also watches D:\Night\jobs\queue\. Drop a file in it and the server runs it, in name order, between client commands:

  • a .txt is a script (one BiggSkyCLI line per line, as script); relative paths in it are from D:\Night\jobs
  • a .json is a job file (section 9)

The file moves to running\ while it runs, then to done\ (exit 0) or failed\, with its --json output beside it as <name>.ndjson. To add a file safely, write it under another name (.tmp) and rename it into queue\ when complete. D:\Night\jobs\cancel (any file of that name) cancels the one running.

Tool commands

Eight more commands work on images and projects BiggSky has made, without stacking or deconvolving them again. Each takes its own options as --opt Name=Value; BiggSkyCLI params --command <tool> [--json] lists them with their defaults and choices, and an unknown name is a usage error (exit 2). The common options (--out, --target, --settings, --render, --gpu, --workers, --json, --log) work as for process. info and compare need no license; the others are gated like process.

Every tool ends with one result event (section 11) listing what it wrote in outputs and what it measured in info. The processing tools also write a run record, <name>_<tool>_BiggSky.json, and a log beside their outputs.

CommandWhat it doesMain outputs
info <file|folder>...Describes, as JSON, what an image (size, channels, bit depth, statistics, a noise estimate), a capture (frames, size, bit depth, camera), a project (every dataset: frames, stack/decon/PSF/noise files, ROI, crop, stack and decon settings), a decon record (the .mat beside a decon when run from MATLAB source: settings, blind fit, PSF ROI, version) or a folder holds. A decon image also shows its outcome (section 8). A FITS or XISF file also shows matching: what dark and flat matching reads from it (master type, filter, exposure, temperature, gain, offset, camera, date) and, in source, where each value came from (header EXPTIME, XISF property Instrument:Sensor:Temperature, file name or unknown). A folder of FITS/XISF frames shows, from their headers (it looks inside subfolders, such as LIGHT\Ha): frames, per subfolder, filter and frame type, the count, exposures, hours, gains, offsets, readout mode, binning, camera, telescope, ccdTemp and setTemp ranges, nights, first and last DATE-OBS, airmass and altitude ranges, stars and hfr ranges when the capture program wrote them into the file names (stars21, 21stars, HFR2.4, 2.4HFR), and odd: frames whose gain, offset, readout mode, binning, camera, telescope or exposure differ from the rest (each splits a dataset or needs its own dark; {} when none do); and summary, for the whole folder, the hours per filter and in all, the nights, the object and a name for the project from it, the center and frames pointedElsewhere (more than 5′ from it; frames 0 when none are), pierSide counts, cooling (frames more than 3 °C from SET-TEMP, and on which nights), sampling (arcsec per pixel and field from FOCALLEN and XPIXSZ) and the capture software (SWCREATE). It lists the file names only when there are 20 or fewer, or with --opt Files=on. A value BiggSky does not know is null.info events, one per input
compare <a> <b>Pixel differences: identical, maxAbs, rms, relRmsPct, psnr, differingPct. --opt Diff=on writes the difference image.info; diff
render <image|project|folder>Renders data to a View image, as the app displays and saves it: the dataset's crop, white balance and the view's render mode (--render View=Mode).view: the PNG/JPG/TIFF
sharpen <image|project|folder>The app's Unsharp Mask (Amount, Radius in capture pixels, Passes, RollOff auto, halo Clamp) on the chosen view. A folder of images is sharpened frame by frame.sharpened (32-bit TIFF), view (PNG)
mosaic <tiles|folder>...Stitches two or more overlapping tiles (any order) into one image, as the app's Mosaic. With -t dso, deep-sky panels placed by plate solving (any rotation). CPU only.mosaic (16-bit PNG), mosaic32, layout
derotate <folder|images|project>Interpolate Decons to Movie (--opt Mode=movie) or Combine Decons to Image (--opt Mode=image): derotates timed planetary images. Jupiter, Saturn (globe and rings), Mars.frames + movie (MP4), or image
dewarpmovie <capture|project>A Dewarp Movie: a block of frames stacked on the side, drawn registered, dewarped and as the turbulence map.movie, dataset (.mj2), project
solve <image|project|folder>Plate solves a deep-sky image with ASTAP and compares its stars with Gaia DR3: where it points, scale, rotation, the zero point, the limiting magnitude, star size, and for a colour image the white balance from the stars' colours. DSO and Universe.info (the measurements); stars (CSV); plots (PNG)

info and compare

BiggSkyCLI info D:\out\BiggSky\jupiter.mat --json
BiggSkyCLI compare run1\DeconLRGB_32b\jup_DeconLRGB_32b.tif run2\DeconLRGB_32b\jup_DeconLRGB_32b.tif --opt Diff=on

info options: Stats (on: image statistics and the noise estimate) and Datasets (on: a project's datasets, their files and settings). compare options: Tolerance (0: the largest absolute difference still counted as equal) and Diff (off: also write the absolute difference image as a 32-bit TIFF).

render

BiggSkyCLI render D:\out\BiggSky\jupiter.mat --opt View=Decon --render Decon=ArcSinh --opt Format=JPG --json
BiggSkyCLI render D:\AS4\jupiter_stack.tif -t planetary --opt Bits=8
OptionDefaultMeaning
ViewAutoAuto (Decon, else Calc, else Stack, else Frames), Frames, Stack, Decon, Calc. An image input is its Frames view.
Bits168, 16 or 32.
FormatPNGPNG, JPG (8-bit) or TIF (8, 16 or 32-bit).
Frame1A multi-frame dataset (a folder of images): which frame; 0 = every frame.
Dataset0A project input: the dataset (0 = the one the project has selected).
BorderCrop-1Pixels trimmed from each edge. -1 = as the app saves the view: the decon's guard band for Decon and Calc.
Rotate, FlipLR, FlipUD0, off, offTurn what is written clockwise by 90, 180 or 270 degrees, then mirror it left-right or up-down. The data and the project keep the camera's orientation.

The output is <out>\<name>_<View>_View_<bits>b.<ext> (a frame of a folder takes its file's name). Rendering a project's decon reproduces the decon's own View image to within 1 DN.

For an image input, set the stretch with --render Frames=<Mode> (and Frames.<Param>=<Value>), e.g. render pacman.tif -t dso --render Frames=CLAHE. The result's info.render gives the mode and parameters used, with any parameter you did not give at the target's default. (Fixed 2026-11-19: before then an image input rendered with the app's global render mode (Clip by default), whatever --render Frames=… said. From source only until the exe is rebuilt.)

sharpen

BiggSkyCLI sharpen D:\out\BiggSky\jupiter.mat --opt Amount=0.6 --opt Radius=3
BiggSkyCLI sharpen D:\out\BiggSky\DeconLRGB_32b -t planetary          (every image in the folder)
OptionDefaultMeaning
ViewAutoAs for render.
Amount0.5Peak gain − 1, 0 to 5 (GIMP's Amount for one pass).
Radius4.4Capture pixels, 0.3 to 50; scaled by the stack's SuperRes factor.
Passes11 to 10: peak gain (1 + Amount)^Passes.
RollOffautoFinest detail sharpened, 0.02 to 0.5 cycles/pixel. auto = where the signal falls to SNR 3 (the stack's noise when it has one, else the image's own floor).
ClampautoHalo clamp, % of the display range; -1 = off. auto is off on Planetary, where the clamp flattens fine structure such as Saturn's rings, and 2 otherwise.
ProtectSkyonFade the sharpening out on the sky and the night side, as the dialog's Protect sky, so the noise there is not sharpened. off = sharpen everywhere.
Frame0A multi-frame dataset: one frame, or 0 = every selected frame.
Bits16The View image's bit depth (8 or 16).
Dataset0A project input: the dataset.

mosaic

BiggSkyCLI mosaic D:\Moon\panels -o D:\Moon\mosaic
BiggSkyCLI mosaic p1.png p2.png p3.png --opt Blend=feather --opt Crop=covered

Options: Name (default <tiles folder>_Mosaic), Model (similarity | affine | translation), Blend (multiband | feather | none), Photometric (on), Vignetting (on), Margin (8 px), Crop (none | covered), Levels (0 = automatic), Interp (cubic | linear), Format (auto: a 16-bit PNG, plus a 32-bit TIFF for floating-point tiles; png or tif: 16-bit; tif_ps: a 32-bit floating-point TIFF scaled 0–1, which Photoshop and GIMP open). The result's info gives the registration error (registrationRmsPx), the tile gains and the vignetting.

Deep-sky panels (-t dso; DSO and Universe):

BiggSkyCLI mosaic D:\Heart\panels -t dso -o D:\Heart\mosaic
BiggSkyCLI mosaic h1.jpg h2.jpg h3.jpg -t dso --opt RA=02:32:42 --opt Dec=61:27:00

Each panel is plate solved with ASTAP, using the Settings tab's ASTAP path, database and time limits from your config (read only; with --settings factory, ASTAP is found where its installer puts it). The panels are placed by their solutions, so they may be rotated any amount against each other, and then lined up from the stars and nebula detail they share, as lunar tiles are. The solve starts from the files' headers (FITS, XISF, BiggSky TIFFs), else from --opt RA and --opt Dec (degrees, or hh mm ss / dd mm ss), else searches the whole sky. JPEG and PNG panels carry no position, so give RA and Dec for those. Model and Vignetting do not apply: the plate solve gives the geometry, and processed panels are flat-fielded. Besides the lunar fields, info gives each panel's solve (panels: ra, dec, scaleArcsecPx, rotationDeg, and how far the sky projection bends it), the mosaic's centre, scaleArcsecPx and wcs (CRPIX1/2, CRVAL1/2, CD1_1…CD2_2; x = column, y = row, 1-based), and localAlignMaxPx. Three 2-degree panels take under a minute. The mosaic runs on the CPU (--gpu does nothing), with the tile pairs matched on the thread pool (--workers). Six 16-megapixel tiles take well under a minute and a few GB of memory. The output was verified identical to the app's for the same tiles. The Mosaic manual explains the settings and how to capture the tiles.

derotate

BiggSkyCLI derotate D:\out\BiggSky\DeconLRGB_View_16b                    (a movie, 1 frame/min)
BiggSkyCLI derotate D:\out\BiggSky\DeconLRGB_View_16b --opt Mode=image --opt Time=03:30
BiggSkyCLI derotate D:\out\BiggSky\night.mat --opt Source=DeconLRGB_View_16b

The keys are two or more images whose names carry their time as WinJUPOS writes it: yyyy-mm-dd-hhmm_t (t = tenths of a minute, UT), e.g. 2023-10-29-0250_4_Jup….png. A good source is the decon View images of a night's stacks (process <folder of stacks> makes them). Give one image per time: several frames with the same time are not keys.

OptionDefaultMeaning
Modemoviemovie or image.
StepMin1Movie: minutes between frames.
TimemiddleImage: the time, hh:mm UT or yyyy-mm-dd-hhmm_t.
FPS10Movie frame rate; 0 = frames only. The MP4 is H.264 when ffmpeg is on the PATH, otherwise MATLAB's own writer.
Planetautoauto (a WinJUPOS .ims beside the keys, or the names' words), jupiter, saturn, mars, none. Mars needs an .ims.xml.
ClockrotationKey times from the measured rotation (or Jupiter's moons), or ims.
Moons, DiscMoonsonJupiter: moon and shadow transients, and moons on the disk.
ColorBoost1Color gain on the output (1 = none).
ColorBoostSmooth1.5Pixels the color is smoothed over before that boost (0 = each pixel as it is). Raise it to 3–5 if the boost shows magenta and green edges on fine detail. In the app, the derotate dialogs take the Expert row of the same name.
Lum, MaxDtMin, Qualityauto, 25, 1Saturn, Mars and mono Jupiter: the luminance filter, the time window, quality weighting.
Source, DatasetA project input: a decon folder to take the keys from, and the dataset.
Rotate, FlipLR, FlipUD0, off, offTurn the written frames, image and movie clockwise by 90, 180 or 270 degrees, then mirror it left-right or up-down. The data and the project keep the camera's orientation.
LimbautoMono Jupiter: how the outline is found. auto = the disk's ellipse, unless the ellipse's long axis lies more than 30 degrees from the bands (or from a given Pa). Then the disk is taken as trimmed by the phase, as seen from a spacecraft: the axis comes from the bands, the radius from the polar limbs, and the center from the polar and sunlit limbs. phase = always that; ellipse = never.
Pa, Radius, De, CenterX, CenterYmeasuredMono Jupiter, Saturn, Mars: the outline as given, in place of what is measured. Pa = the equator's angle in degrees, counterclockwise from the image's +x axis, as WinJUPOS's rotation angle (north is 90 degrees further). Radius = the equatorial radius in pixels. De = the observer's latitude on the planet in degrees (for a spacecraft, its sub-spacecraft latitude; otherwise the Earth ephemeris's). CenterX, CenterY = the disk's center in the first image, 1-based pixels; give both. Each one given overrides a WinJUPOS measurement; the rest are still measured. Radius and De are used exactly as given. On Jupiter, Pa and the center are a starting point that the mirror-symmetry refinement adjusts (by at most 4 degrees and 4 pixels), except on a phase-trimmed disk; on Saturn the ring fit refines them; on Mars they are used as given.
ColorMatrixnoneCalibrate the color with a 3x3 matrix in place of the automatic white balance: mono R, G, B, or color keys (Jupiter in color). Color keys from a decon first have the decon's white balance taken off, as its .json record gives it (whiteBalance); a key deconvolved before 2026-11-24 with Use White Balance ticked has no such record, so decon it again. Each channel is taken less its sky, then multiplied. Give nine numbers, row by row (rows = output R, G, B; columns = input R, G, B), or a Voyager preset: voyager1_ogb, voyager1_ogv, voyager2_ogb, voyager2_ogv (orange, green and blue or violet, named R, G and B, to linear sRGB in daylight). Use linear keys (Decon_32b), not View images: each View is scaled on its own.
ColorMatrixBalanceonAfter ColorMatrix: BiggSky's auto white balance again, on the calibrated color (one balance for every frame). The matrix sets how the bands mix, and the balance sets the overall color. off keeps the calibrated daylight color.
ColorMatrixSmooth3Pixels the color (not the detail) is smoothed over before ColorMatrix. A calibration matrix with large off-diagonal terms (the Voyager presets) turns a speck in one band, and the decon's slightly different ringing in each channel, into magenta and green spots. On the Voyager 1 Jupiter movie, 3 px cut them about 3x and left the cloud detail as it was. 0 = per pixel.

Outputs go to <out>\DRI_<StepMin>min\ (frames and MP4) or <out>\DRC\ (the image).

Spacecraft images (Voyager, Juno, Cassini…). Three things differ from a telescope's stacks, and derotate handles them:

  • The disk moves from frame to frame. The spacecraft's pointing wanders, so the disks can lie tens of pixels apart. When the shared disk mask would cut off part of a disk, each image is registered by its own disk. The log says "each registered by its own disc".
  • The phase trims the disk. At a phase angle of 20–30 degrees, the dark side's limb comes in more than Jupiter's flattening widens the disk. The plain ellipse would then put the pole along the bands. Limb=auto notices this ("Phase-trimmed disc" in the message) and measures the outline from the bands and the polar limbs.
  • De is not the Earth's. Without an .ims.xml, De comes from the Earth ephemeris. Give the spacecraft's sub-spacecraft latitude with --opt De= when it matters (it matters little near the equator).
BiggSkyCLI derotate D:\Voyager\Decon_View_16b --opt Mode=image --opt Planet=jupiter --opt Rotate=180
BiggSkyCLI derotate D:\Voyager\Decon_32b --opt Mode=movie --opt Planet=jupiter --opt MaxDtMin=1 --opt ColorMatrix=voyager1_ogb

For 8-bit spacecraft frames, --opt MaxDtMin=1 is usually better than the default window. Each frame is then turned from each filter's nearest image instead of a blend of the images within 25 minutes, so the detail stays sharp. A blend helps noisy stacks, and these images are not noisy.

The Voyager color matrices are fitted from the cameras' published filter responses. They are right in method, but the red-green balance rests on the orange and green bands' calibration (5–10% absolute). Orange and green overlap, so a 5% error moves red from greenish to orange-tan. Mono images through filters (Jupiter R, G, B; Saturn; Mars) are combined per filter: Mode image writes each filter's image and the color one, listed in outputs.products, with outputs.image the color image. --opt Planet=none registers and averages without turning anything – the way to compose one R, G, B set, or derotated stacks after their decon.

dewarpmovie

BiggSkyCLI dewarpmovie D:\Captures\jupiter.ser -t planetary --opt Layout=pair --opt Frames=100
OptionDefaultMeaning
StartbestFirst frame, or best: the block with the best mean frame quality (the frames are analyzed first).
Frames200Frames in the block (at least 10).
Layoutquadfused (registered, colored by the turbulence), map, pair (registered | dewarped), register (registered | map), triple, quad (all four).
Portrait, Binoff, 1Stack the panels vertically; bin by 1, 2, 3, 4, 6 or 8.
Style, MagMaxthe stack table'sMap style (light/dark) and scale; default from AlignDewarpMap* (--set).
Labels, Key, Titleon, on, BiggSkyPanel labels, color key, caption.
MovieFormat, FPSMPEG-4, 25Also Motion JPEG AVI, Uncompressed AVI, GIF, PNG.
AddDatasetonAlso the lossless .mj2, added to a saved project.
KeepWork, Reuseoff, onKeep the block's stack; reuse a kept one (another layout in seconds).

Outputs go to <out>\DewarpMovie\. The project's own settings are not changed. The frames are toned by the Frames view's render (--render Frames=…).

solve

BiggSkyCLI solve D:\Astro\M101\BiggSky\M101_L_Stack_32b.tif --settings user --json
BiggSkyCLI solve D:\Astro\M101\BiggSky\M101.mat --opt Dataset=4 --opt Plots=on
BiggSkyCLI solve stack.tif --opt RA="14 03 12" --opt Dec="+54 20 56" --opt Scale=0.26

Does what the app's Plate Solve button on the Analyze tab does. In order:

  1. ASTAP plate solves the image. It starts from where the image says it points: the frame headers (RA/DEC or OBJCTRA/OBJCTDEC), the position BiggSky writes into a stack TIFF, an earlier solution, or another dataset of the project. With none of these it searches the whole sky, limited to 60 seconds. When ASTAP is not installed or cannot solve the image, astrometry.net is tried, if it is turned on (see Online plate solving, below).
  2. The Gaia DR3 stars in the field are fetched. This needs the internet once per field; after that the field is cached and reused offline.
  3. Gaia's stars are matched with the image's and the result is measured.

ASTAP, its star database, the Gaia service and the cache folder come from the app's Settings tab (Plate Solving and Color Calibration) with --settings user. With the factory settings, ASTAP is found where its installer puts it.

Online plate solving is off unless you turn it on. With Use online plate solve (PlateSolveOnline) on in the app's Settings tab (Plate Solving), and AstrometryNetKey set to the API key of your nova.astrometry.net account (My Profile there), BiggSky falls back to astrometry.net when ASTAP is missing or fails. ASTAP on this computer is always tried first.

  • What is sent: only the stars' positions and brightness found in the image (an astrometry.net "x,y list", marked not public), never the image.
  • Waiting: up to PlateSolveOnlineSeconds (300), the server's queue included.
  • Your own server: AstrometryNetURL can point to a local server with the same API, such as ANSVR's http://localhost:8080/api/.
  • Where it applies: every plate solve that falls back: solve, and the deep-sky star white balance (see Color in section 4).
  • The CLI reads it from your settings, so --settings user is needed; the factory settings keep it off.
  • How to tell it was used: the log and solvedFrom say astrometry.net (job N, K stars sent; ...).

When ASTAP fails and online solving is off, the error says how to turn it on. When both fail, it gives both reasons (ASTAP: ...; astrometry.net: ...).

OptionDefaultMeaning
ViewAutoAuto takes the linear Stack, else Decon, else Calc, else Frames. A stack is the better photometry: a decon moves flux between scales.
Frame, Dataset1, 0For a folder of frames, which frame; for a project, which dataset (0 = the selected one).
RA, Decfrom the headerA start position, in degrees or hh mm ss / dd mm ss, for an image whose header has none. Give both or neither.
Scalefrom the headerPlate scale in "/px (FOCALLEN and XPIXSZ, or the equipment file, otherwise).
StarsonWrite <name>_<View>_Stars.csv: every Gaia star in the image (position, G, BP−RP, measured magnitude, S/N, used / rejected / undetected, and why), then the image's stars Gaia does not list.
PlotsoffWrite <name>_<View>_StarFlux.png, _StarDepth.png and, for a colour image, _StarColor.png.
ColoronFor a colour image, fit the stars' colours to Gaia. Off measures the luminance only. A narrowband image (SHO, HOO, Ha) gets no colour fit: Gaia's colours are broadband, and info.color.error says so.
GaiaonOff: the plate solve alone (centre, scale, rotation, field, WCS), no Gaia comparison.

The result's info holds the measurements:

  • Where and how big:
    • center (ra, dec in degrees, and as text);
    • scaleArcsecPerPixel, rotationDeg, fieldDeg;
    • wcs, the solution;
    • solvedFrom, where the start position came from.
  • Stars:
    • gaiaStars, detected, used;
    • notInGaia: point-like sources on clean sky that Gaia does not list, such as hot pixels, asteroids, satellites or a galaxy's knots.
  • Zero point:
    • zeroPoint, colorTerm, zeroPointRms. The zero point is the Gaia G magnitude of a sun-like star giving a flux of 1 in the image's units, so compare like with like: stacks with stacks.
  • Depth:
    • limitHalfDetected: the G magnitude where half of Gaia's stars are detected. It is null, with limitHalfDetectedBeyondGaia true, when the image is deeper than Gaia's G 19.5 end.
    • limitSNR5: where a star reaches S/N 5.
  • Star size: hfdPixels, hfdArcsec.
  • Colour (colour images): color.rgb, the R:G:B gains that make a sun-like star white, as the deep-sky white balance uses them, with color.stars and color.rmsMag.

The ASTAP solution is written to the log as soon as it is found (ASTAP: RA ... Dec ..., 0.740"/px, rotation ..., from the header) and to <name>_<View>_WCS.txt (outputs.wcs: FITS WCS cards, CRPIX, CRVAL, CD).

When Gaia does not answer, the plate solve is kept: the result succeeds with the solution alone (info.gaia says why there is no comparison) and a warning. A field too dense to fetch in time is asked again for brighter stars first (G < 17, then < 15): the Large Magellanic Cloud has over a million Gaia stars in two degrees. Each archive gets StarColorTimeout seconds (30; Settings, Color Calibration). The message names each archive and what it answered, and whether the field was in the cache.

Which star catalogue. When an ASTAP star database is installed (D80, D50, V50 and so on), the stars come from it. It is on this computer, covers the whole field, and needs no internet.

  • Which database: V50 when it is installed, because it has star colours and its V magnitudes match an image's stars more closely. Otherwise D80, or the deepest one installed. When both are installed, D80 also decides what counts as "not in the catalog", because it lists more faint stars. The ASTAPDatabase setting picks one.
  • What the info shows: catalog names it (for example ASTAP V50), and catalogBand is its magnitude band: V for V05 and V50, BP for the D databases.
  • Field names: the gaia* fields keep their names, but hold that catalogue's stars and magnitudes. With a D database the zero point has no colour term, because D databases have no star colours.
  • In the star list: the rows have the database as their source (v50, d80), and their magnitude is in catalog_mag.
  • Colour images: the colour fit still fetches Gaia, because it needs Gaia's star colours.
  • Labels: labels lists the named objects in the image, such as M101/NGC5457 or IC1848. It also gives the variable stars' names, and how many variable and comparison stars there are. The objects come from OpenNGC, which ships with BiggSky (NGC, IC, Messier, Caldwell and others; by Mattia Verga, CC BY-SA 4.0). The variable stars come from the variable_stars.csv file that ASTAP installs.

Gaia DR3 is fetched instead when no database is installed, or when StarFieldCatalog is set to Gaia (Settings, Plate Solving). Gaia adds BP−RP colours for the colour term, and fainter stars where the sky is dense.

Wide fields with Gaia (wider than about 0.6°): Gaia's online archives time out on large circles near the Milky Way, so Gaia is fetched in seven 0.3° patches. Outside them, the ASTAP database fills in.

  • What the info shows: gaiaCoverage (the share of the image Gaia covers), gaiaPatches, and localCatalog (database, stars, detected).
  • What uses Gaia only: the zero point, depth and colour are measured inside the patches.
  • Sources no catalogue lists (notInGaia, status not in the catalogs): counted only where a catalogue was read.

If the image cannot be solved at all, the result fails (exit 1) with the reason, for example: "ASTAP found no solution within 60 s", or "no RA/Dec in the frames … and PlateSolveBlindSeconds is 0". --target defaults to dso.

4. Inputs

process accepts any mix of these:

InputTreatment
Capture: .ser, .ser.mj2, .ser.zip, .aviStacked, then deconvolved (--ops all). A new one-dataset project is built for it, as File › New Project does in the app.
Single image: .tif, .fits, .png, … (e.g. an AutoStakkert stack)Deconvolved only. A single image has nothing to stack. With --ops stack or --ops analyze it is skipped and counted as success.
BiggSky project .matProcessed with its own settings and dataset (--dataset N picks one). Its target comes from the project unless --target is given. The project file is never rewritten unless you pass --save-project on.
FolderIts .ser/.avi captures. Subfolders are included only with --recursive. BiggSky's own outputs (a BiggSky folder below the one given, *_Align1.ser) are skipped; the folder given, and those above it, may be named anything, so …\BiggSky\Stack_16b is a valid input.
Folder of images, no capturesOne input: a multi-frame dataset of its images, in name order, each deconvolved – the app's Process Frames (e.g. a night's AutoStakkert or WinJUPOS stacks). Each frame gets its own PSF ROI and decon; the decons are listed in outputs.decon and added to the saved project as <name>_Decon. Output: <folder>\BiggSky. --frames off takes each image as its own input instead. Checked against the app: 6 of 7 frames of a Jupiter series identical.
Wildcard: D:\cap\*.ser, 2024-10-19-101*.ser, D:\cap\**\*.aviThe matching files; ** searches subfolders too. BiggSky's own outputs are skipped, as for a folder.
Folder, with --target dsoOne input: a night or a target of light frames, subfolders included (a N.I.N.A. LIGHT\<date>\... tree). See Deep-sky below. With --multi, one input per subfolder instead.
Wildcard, with --target dso: D:\Astro\Bodies\*One input per matching folder (BiggSky output folders skipped), and any matching project .mat.

How the inputs are run:

  • Each input is processed on its own, one after another, with its own project, log and run record.
  • Mono RGB filter sets (planetary, lunar, solar): each filter's SER is stacked and deconvolved independently; the CLI does not merge them. Deep-sky filter sets are combined into color: see Deep-sky.
  • Inputs that don't work: an input that does not exist, or a file that cannot be read, counts as a failure. The other inputs still run.

Target auto

--target auto gives each capture or image its own target, for a folder that holds lunar, planetary and solar captures together:

BiggSkyCLI process D:\Captures\2026-10-10 --recursive --target auto --dry-run
  1. The names: the file's name, then its folder's, then the folder above. The nearest one that names a single target decides:
    • lunar: Moon, Lunar, Luna, or a feature such as Tycho, Copernicus, Clavius or Terminator;
    • planetary: Planetary, Jupiter, Saturn, Mars, Venus, Mercury, Uranus or Neptune;
    • solar: Sun, Solar, Ha, H-alpha, CaK, Prominence or Sunspot.

    Only whole words count, so 2024-01-18-1757_6-Jupiter_Export.ser is planetary and Lunar_multiple\… is lunar.

  2. The first frame, when the names say nothing, or name two targets:
    • A disc on dark sky, clear of the frame's edges, is planetary: small, or up to half the frame when under 700 px across.
    • A frame the object fills, or whose edges it crosses, is the Moon or the Sun. The frame does not say which, so no target is guessed.

What you see:

  • The dry run shows each input's target and why, under its name: Lunar (auto: 'lunar' in its folder's name), all -> Lunar_single\BiggSky. The dryRun events carry target and targetWhy.
  • During the run, each input's status loading event and its log name its target.

An input it cannot tell is an error naming the file and the reason, and the exit code is

  1. Nothing runs until every input has a target: give that file its own --target, or put

the target in its folder's name.

  • Projects keep their own target.
  • Deep sky is never guessed: a deep-sky folder is one input, of light frames, so it needs --target dso.
  • Other commands: auto works with process and run ("target": "auto" in a job file) only; params, profiles and --freeze-settings need a real target.

Deep-sky (--target dso)

BiggSkyCLI process "C:\Users\me\Documents\N.I.N.A\M 92" --target dso --out D:\Results\M92

What happens, with no other input – the app's Smart Project, Apply Calibration, Analyze and Stack, in that order:

  • Datasets: the folder's light frames, with its subfolders, become one dataset per filter, split by exposure and gain as the app splits them (L, R_60sec, R_300sec…). Frames whose header or name says dark, flat or bias are skipped, and so are BiggSky output folders. --dataset N stacks only the N-th (the log lists them in order).
  • Already-stacked masters: a filter that is one image already stacked – a master from PixInsight, Siril, AstroPixelProcessor or DSS, one per filter – is that filter's stack. It gets no dark or flat (a master is calibrated) and no stack: Remove Stars, the decon and Color run on it as on a stack BiggSky made. By default (--stacked auto) a one-image filter counts as stacked when its header says so (IMAGETYP with Master, Integration or Stack, as PixInsight's Master Light; or NCOMBINE, STACKCNT or NSUBS above 1) or its name does (master, integration, stacked, _Stack, or 43 x 300s). --stacked on takes every one-image filter as its stack, for files whose header and name say nothing; --stacked off never does. A one-image filter that is not taken as a stack is left out, with a note in the log. Folders can mix the two: lights for one filter, a master for another. In the calibration event and the plan, a master's row has stacked: true, its file in stack, and (stacked) for the dark and flat. A 0–1 floating-point master is read at the app's scale (x 65535). Without the frames there is no measured noise model, so the decon draws one from the stack's own spectrum, and the Color step takes the classic colour path, not the V5 colour, which needs each filter's noise model.
    • A starless made elsewhere: a file in the folder with starless (or sxt, as in Ha-sxt.fits) in its name is not a light frame. It is paired with the master whose name it holds (letters and digits only, so Tarantula Ha 43 x 300s_starless.fits or BiggSky's own <project>_<master>_Starless_32b.fits both match), else with the only starless naming the master's filter (Ha, OIII, …). Remove Stars then uses it and runs no engine: the starless is brought to the master's units (a fit off the stars, so a 0–1 PixInsight file and a 0–65535 one both work) and the Stars layer is the master less it. The _Starless and _Stars datasets are made as usual, and the galaxies are not moved back (it is your own separation). The plan's calibration row names it in starless.
    • The same starless, denoised: a starless file whose name also says it was denoised (nxt, NoiseXTerminator, denoised or nr, as in Ha-sxt-nxt.fits) is paired the same way, and becomes the _Starless layer that the decon deconvolves. The Stars layer is still the master less the noisy starless: the master less a denoised one would put all the noise in the stars. Keep the decon's Denoise Image at 100 (the default): at 0 the decon sharpens the grain the other program left into specks. A denoised starless with no noisy one beside it is not used (the log says so). The calibration row names it in starlessDenoised, and --background corrects it with the master.
    • Vignetting: masters made without flats (or with poor ones) are darker toward the corners. --background auto divides the vignetting out and takes off the sky gradient before Remove Stars (below).
    BiggSkyCLI process "D:\Astro\Tarantula" --target dso --dry-run
    BiggSkyCLI process "D:\Astro\NGC 7000 masters" --target dso --stacked on
  • Several targets in one folder: folders that point at different targets (the OBJCTRA/OBJCTDEC or RA/DEC of their frames more than 0.3 of the field apart: mosaic tiles, a target saved inside another's folder) get datasets of their own, named after the target: Bodies\Tile 8739\LIGHT\OIII and Bodies\Tile 9034\LIGHT\OIII give Tile 8739_OIII and Tile 9034_OIII, as the app's Smart Project does. Frames in one folder are never split. For a project per target instead, give --multi (a project per subfolder) or a wildcard (D:\Astro\Bodies\*). Color is skipped, with a warning, for a project that holds several targets: it would merge two fields' filters.
  • Calibration: each dataset gets a dark and a flat from the app's calibration libraries (the project library, then the global one), as Apply Calibration chooses them: the dark of the same size, gain, offset and temperature, at the same exposure or interpolated between two; the flat of the same filter nearest the lights' date. The log warns when that flat is more than 30 days from the lights. Build the masters in the app (Process Calibration or Create Cal. Masters) and keep them in the library, or give them for the run:
  • Masters for this run: --calibration PATH adds master darks, flats and bias from a folder (searched with its subfolders), a file or a wildcard (.xisf, .fits, .fit, .tif). Each one's type comes from its header (IMAGETYP) or its name (masterDark_..., masterFlat_FILTER-OIII, as PixInsight names them); a flat's filter from FILTER or the name. --darks PATH, --flats PATH and --bias PATH say the type instead, for masters whose header and name do not. Repeat any of them. They go into the run's project library, searched before the app's; the app's library is not changed. The log lists each master and anything left out.
  • A master's temperature, gain and exposure come from its header (CCD-TEMP, GAIN, EXPTIME), else from the XISF properties PixInsight writes (Instrument:Sensor:Temperature, Instrument:Camera:Gain, Instrument:ExposureTime), else from its name: T-10C, TEMP_-5.5C or N.I.N.A.'s -10.00C, and Gain_125 or gain125. A dark whose temperature is still unknown can't be matched to the lights' temperature, and the run warns about it.
  • A dark for each frame's temperature: the stack matches a dark to each frame's own sensor temperature, so nights at -10 °C and at 15 °C in one filter each get the dark nearest their own. The plan shows the frames grouped by temperature (a new group where the temperatures jump by more than 3 °C) and the dark each group gets. A dark more than 5 °C from the frames is a strong warning: its dark current and hot pixels will not match. When no dark is within the tolerance, the right exposure at another temperature is preferred to the wrong exposure unscaled. Each dataset's darkChoice says why that dark was chosen, and darksConsidered lists every dark with its exposure, temperature, gain and offset and what became of it (used, not usable: gain 100, not 125, …).
  • Cooling check: frames more than 3 °C from their setpoint (CCD-TEMP against SET-TEMP) give a "Cooling WARNING": the cooler was off or couldn't keep up, which file names written with the setpoint hide. setTemp lists the setpoints seen.
  • See the plan first: --dry-run reads every frame's header and lists each dataset with its frames, exposure, temperature, dark and flat (the calibration field of the dryRun event), and the calibration warnings, without stacking anything or writing a file.
BiggSkyCLI process D:\Astro\Bodies -t dso --calibration "D:\Astro\Master calibration" --dry-run
BiggSkyCLI process D:\Astro\Bodies -t dso --calibration "D:\Astro\Master calibration"
BiggSkyCLI process D:\Astro\Bodies\* -t dso --darks "D:\Astro\Darks T -5C" --flats D:\Astro\Flats
  • Analyze, reference, weights: every frame is analyzed (stars, HFR, offset), the stack is registered on a sharp frame near the middle of the night's pointing, and each frame is weighted by transparency, seeing and noise. Frames with doubled stars (a mount jump) or without the reference's stars (cloud, a failed registration) are left out, and the log says which.
  • Output: one <name>_<dataset>_Stack_32b.tif per dataset, the project (<name>.mat, which holds the calibration it used) and the run record.
  • The name: <name> is --name when given (or "name" in a job file). Otherwise it is the input folder's name, except that a folder called LIGHT, Lights or Light_Frames (N.I.N.A.'s layout, the same for every target) takes the frames' OBJECT header (NGC 1579), else the folder above it. Any folder below the input whose name contains BiggSky (BiggSky, BiggSky_v0_6_8, BiggSky-MCP) is skipped, so a target's folder can be given with its earlier results inside it.
  • Remove Stars and the decon (--ops all, and --ops decon on a deep-sky project): as the app's Do It All, the stack goes through Remove Stars, which makes <stack>_Starless and <stack>_Stars and two datasets, <name>_Starless and <name>_Stars. The stack dataset is then deconvolved with Use Starless ticked, unless --decon UseStarless=0 is given, and the Starless and Stars layers are deconvolved with it. The decon writes Stack_Decon_32b\ (the recombined image), Stack_Decon_Starless_32b\ and Stack_Decon_Stars_32b\.
    • --stars auto|builtin|starnet|starnet-gpu|starnet-cpu|rcastro|off chooses the engine:
      • auto (the default) tries the engines in order: RC-Astro StarXTerminator when it is installed and licensed; else StarNet when the app knows its program (--starnet FILE, or the StarRemovalPath setting, read from your config even with --settings factory, since it says where a program is, not how to process), on the GPU and then on the CPU; else the built-in separator. An engine that fails on an image hands it to the next one (StarXTerminator to StarNet GPU to StarNet CPU to built-in), with a line in the log. A StarNet GPU failure is remembered for the run, so the next filter goes straight to the CPU;
      • starnet is StarNet on the GPU, then the CPU; starnet-gpu and starnet-cpu use that one only;
      • rcastro and builtin use that engine only;
      • off skips Remove Stars, and the decon then uses a starless the project already has, or none.
    • --starnet FILE gives the StarNet program (starnet++.exe or starnet2.exe).
      • GPU: StarNet 2's GPU package needs cuDNN 9 beside starnet2.exe. The cuDNN of BiggSky's own MATLAB Runtime (9.7) fails on RTX 50 cards. Without one there, BiggSky puts the newest cuDNN 9 from NVIDIA's cuDNN installer (CUDA 12) beside a copy of the program in %LOCALAPPDATA%\BiggSky\StarNetGPU.
      • CPU: the same package's ONNX_CPU folder makes the CPU run, from %LOCALAPPDATA%\BiggSky\StarNetCPU. A CPU-only StarNet runs where it is.
    • --keep-galaxies on|off|auto: after the engine, every source measurably wider than a star (compact galaxies, galaxy cores and bulges, HII knots) goes back into the starless layer. Every engine puts these in the stars layer. auto (the default) follows the app's StarRemovalKeepGalaxies setting: 2 (auto, the default) turns it on when the stars' measured FWHM is 3 px or more, 1 always, 0 never. On the GalSim suite the Use Starless decon after it was 4–56% better at 3 px and wider and on colour, but up to twice as bad on undersampled stacks (1–2.5 px).
    • The catalogue star model (the app's StarRemovalCatalogModel setting: 1, on, by default; 0 off): after the engine, on a plate-solved stack, every star of ASTAP's star database on the image is drawn at its position and magnitude with the image's own PSF, measured from those stars, with its faint halo measured on the image. The halo the engine left in the starless is taken out, and the engine's own star cores are kept. On the Soul Nebula, StarXTerminator left 40–90% of a bright star's light at 13–35 px in its starless; after the model, 3–8 times less. The PSF is saved beside the layers as <stack>_StarPSF.mat, and the Use Starless decon deconvolves with it (the decon parameter DSOStarPSF: 1 by default; 0 = the field stars' own PSF). It needs ASTAP's star database (no network) and adds about a minute to a 20-megapixel image with the GPU.
    • --starnet-rgb on|off|auto: StarNet separates R, G and B together, as one colour image, instead of one filter at a time. The filters are registered to G first (unless they are on one grid already, as registered masters are), and each filter's stars are taken back to its own grid, so its starless keeps its own pixels. On M31 it left half the faint-star residue in one run instead of three. auto (the default) follows the app's StarNetRGB setting: 2 (auto, the default) turns it on when R, G and B all have a stack. With light frames the CLI stacks and separates each filter in turn, so it applies to masters (--stacked) and to projects whose filters are all stacked.
    • All four are job-file keys too ("stars", "starnet", "keepGalaxies", "starnetRgb").
    • StarNet 2's GPU build in the compiled CLI and app needs its CUDA/cuDNN DLLs beside starnet2.exe, as its README says: the MATLAB Runtime's own cuDNN reaches it otherwise, and on an RTX 50 it then fails. The log says so.
    • StarNet 2 and StarNet++ v2.0.2 need 512 px; a smaller stack is mirror-padded for them and cropped back.
  • Color (--ops all, after the decons): the app's Color step, as its deep-sky Do It All ends. The palette comes from the datasets' filters: RGB or LRGB from R, G and B (with L), SHO or HOO from the narrowband filters. It is the V5 colour: each filter's stack is flattened, the sky taken off, the filters' stars warped onto green, white-balanced from the stars' Gaia colours, and given one linear stretch.
    • What it writes (in Color\, listed under outputs.color, with an 8-bit JPEG beside each and <name>_ColorV5.txt, the step's log): <name>_Color_RGB_Stack_16b.tif, with L also _Color_LRGB_Stack and _Color_LRGB_Decon; for narrowband _Color_SHO_Stack / _Color_SHO_Decon (or HOO), plus the RGB one when the project has R, G and B; and _Color_Final_16b.tif.
    • Color_Final is the decon colour, else the luminance one, else the RGB stack colour. V5 takes a decon only from an L (or, for narrowband, Ha) dataset: with R, G and B and no L, the R, G and B decons are not in the colour, and Color_Final is the same image as Color_RGB_Stack. A warning says so.
    • Ha with R, G and B is not used by the V5 colour (no Ha blend yet): a warning says so, and the result's color.plan names the palette V5 made.
    • White balance: from Gaia when the stars match the catalogue and the white point (BP−RP 0.82) lies within the stars measured; else from the stars' own colours, with a warning naming the method and why Gaia was not used. A field reddened by dust has few stars as blue as the white point, and then falls back.
      • Use Gaia for star color (StarColorGaia, on by default; Settings tab, Color Calibration): getting Gaia's colours means a plate solve and fetching the field's stars over the internet. Off, nothing is fetched, and the stars in the image alone set the white balance, as when Gaia cannot be reached. The factory settings have it on, so turning it off in the app reaches the CLI with --settings user. The Color step and the auto white balance follow it; solve does not, since it is asked for.
      • Narrowband (SHO, HOO): no star colours are calibrated, since Gaia's colours, and the stars' own, need R, G and B. Each filter is stretched on its own, then given the palette's balance.
    • --color off stops at each filter's decon. --ops color runs the Color step alone, on a project that already has its stacks and decons (the app's Color button). A filter that is one image, such as a master opened in the app, is taken as its own stack, as --stacked does.
    • The dry run of a project with --ops color (or --ops all) plans the Color step: color in the dryRun event gives ok, the palette, the method (V5, or classic and why not V5), the channels (per filter: dataset, stack, starless and stars layers, decon) and considered (every dataset, and why it is used or not). When Color cannot run, a warning says why before anything is processed.
    • The Color recipe (the app's Color Settings dialog): --color-preset NAME starts from a preset, and --color path=value (repeatable) sets one of the recipe's choices. BiggSkyCLI params --command color lists the presets, with the filters each expects and yours (Color Settings' Save as), and every field with its values.
      BiggSkyCLI process D:\Astro\NGC7000\NGC7000.mat --ops color --color-preset nb-hoo --color palette=Foraxx --dry-run
      BiggSkyCLI process D:\Astro\M51 -t dso --color-preset galaxy-lrgb --color luminance.enhance.clahe=true
      • Presets: galaxy-rgb, galaxy-lrgb, galaxy-lrgb-ha, nebula-rgb-ha, nebula-lrgb-ha, reflection-nebula, open-cluster, globular-cluster, nb-sho, nb-hoo, nb-rgb-stars, ha-only and dust, by id or by name ("Narrowband SHO"); one of yours by its name (in %USERPROFILE%\BiggSky\ColorPresets\, or the folder BIGGSKY_COLOR_PRESETS names); or a preset .json. A preset sets only what defines it; the rest stays Auto.
      • Fields are paths, such as starless.palette (palette for short: one of the 8 palettes of the app's Palette dialog, or a palette .json saved from it), starless.look.preset, luminance.from (L, Ha, L+Ha), stars.from, prepare.background.mode and prepare.sky. They are checked before anything runs: a wrong name or value is exit 2, naming it.
      • What it goes on: a preset replaces the project's own recipe (the one Color Settings saved in it). --color alone goes on the project's own recipe, else on Auto. Weakest first: the project's recipe, the profile's "color" (section 6), --color-preset, --color.
      • The dry run shows the plan with the recipe: color.recipe in the dryRun event holds the preset, the path (V5 or classic), the decons the plan needs, applied (what the recipe changed), pending (what it asks for that this build cannot do), warnings (a choice this project cannot take, and what is used instead), questions (the choices BiggSky had to guess: each path, question, options, the auto answer and why), items (every decision with its reason), text (the same as lines) and recipe (the whole recipe, as a preset file holds it). A folder not stacked yet gives colorRecipe instead: the recipe as given, checked.
      • Records: the run record keeps the recipe as it was given (colorPreset, colorSet), so a re-run colors the same way, and its color.recipe repeats it. The log says Color recipe: preset nb-hoo; starless.palette=Foraxx.
    • One target per project: a project that holds several (see Several targets) is not colored, with a warning.
  • --ops analyze analyzes without stacking.

5. Options

OptionValues (default first)Meaning
--target, -tlunar | planetary | solar | dso | auto (also moon, planet, sun, deepsky)Required, except for a project that records its own target. auto (process and run): each capture's own target. See Target auto in section 4.
--opsall | stack | decon | analyze | colorall = stack then deconvolve (deep sky: stack, Remove Stars, decon, then Color over all the filters). analyze = frame quality and shifts only, no stack. color = deep sky: the Color step alone, on a project's stacks.
--colorauto | off, or path=value (repeatable)Deep sky, --ops all: the Color step after the decons (section 4, Deep-sky). off = stop at each filter's decon. path=value sets one of the Color recipe's choices, e.g. --color palette=Foraxx (section 4, The Color recipe). Job-file key color.
--color-preseta preset's id or name, yours, or a .jsonDeep sky: the Color recipe's preset, as the app's Color Settings (section 4, The Color recipe). params --command color lists them. Job-file key color.
--calibration PATHfolder, file or wildcard; repeatableDeep sky: master darks, flats and bias for this run, each one's type from its header or name (section 4, Deep-sky). Job-file key calibration: a path, a list of paths, or a list of {"type": "dark", "path": "..."}.
--darks PATH, --flats PATH, --bias PATHfolder, file or wildcard; repeatableThe same, every file taken as that type.
--multiDeep sky: each folder input is a project per subfolder (the app's Smart Project › Multi…). Job-file key multi: true.
--stackedauto | on | off; a bare --stacked = onDeep sky: a filter that is one image already stacked (a master) is that filter's stack: no calibration, no stack; Remove Stars, decon and Color as usual. auto = when its header or name says it is a master (section 4, Deep-sky). Job-file key stacked.
--starsauto | builtin | starnet | starnet-gpu | starnet-cpu | rcastro | offDeep sky: the Remove Stars engine before the decon (section 4, Deep-sky). starnet = GPU, then CPU. off = no Remove Stars.
--starnet FILEpathThe StarNet program for --stars starnet.
--backgroundoff | auto | vignette | gradientDeep sky: before Remove Stars, each stack's vignetting divided out and its sky gradient taken off, the corrected stack written as <stack>_Bkg_32b and used from then on (the original stays); a starless given with a master is corrected the same way. auto = the vignetting only when the sky falls off toward the edge (to under 0.95 of the centre), then the gradient; vignette always; gradient the gradient only. The vignette is measured, not assumed: the sky's level in thin rings round a fitted centre and aspect, then what is left at the edge; the gradient is a 2nd-order surface on the sky alone (per channel for colour). Default off: a flat-fielded stack needs none, and a gradient fit can take faint nebulosity with it. Job-file key background.
--starnet-rgbauto | on | offDeep sky, StarNet: separate R, G and B together as one colour image. auto = the StarNetRGB setting (by default on when R, G and B all have a stack).
--keep-galaxiesauto | on | offDeep sky: after Remove Stars, put what is wider than a star back in the starless layer. auto = the StarRemovalKeepGalaxies setting (by default on when the stars' FWHM is 3 px or more).
--out, -ofolderWhere results go. Default: <input folder>\BiggSky. May contain the tokens {inputDir}, {name}, {target}, {date} (today, yyyy-MM-dd) and {jobDir}, e.g. --out "D:\Results\{date}\{target}".
--settingsfactory | user | <BiggSkyConfig .mat>Which app settings the run uses (section 6).
--profile NAMEname, .json path, or noneA settings profile (section 6). Default: default.json, when it exists and no --settings is given.
--config <file.mat>BiggSkyConfig .matUse this config file instead of the app's own for this run (section 6). It takes precedence over the BiggSkyConfig2File.mat pointer, and the pointer is not changed. The license is read from it, --settings user means its settings, and license, LicenseCheck and --freeze-settings use it too. Command line only: not a job-file key.
--set Name=ValuerepeatableA stacking parameter (section 7), e.g. --set FramePercent=10, --set SuperRes="1 2". --set ForceBayer=rggb (or bggr, grbg, gbrg; off lets the file decide) debayers with that pattern whatever the file says – for a SER whose header says mono but holds raw Bayer data, or an AVI whose pattern is detected wrong. It sets the Stacking panel's Force Bayer checkbox and pattern; an explicit --widget for either wins.
--decon Name=ValuerepeatableA deconvolution parameter of any tier, e.g. --decon DenoiseImagePct=50, --decon ImageIterations=20, --decon PSF_SymPct=30.
--psf FILE.tif, .fits, .xisf, .png, or a decon record .matA PSF the deconvolution reuses in place of its blind fit, as the app's Dataset › Load PSF… (it ticks ReUse PSF). The path is taken relative to the current folder, or to the job file when it is a job-file key. The PSF must be sampled as the image is – a 2x SuperRes stack needs a 2x PSF, and nothing checks this. An odd-sized PSF is padded by one row and column so it stays centred. A loaded PSF clears any per-tile PSFs from an earlier tiled run.
--save Name=ValuerepeatableA Save Options setting, e.g. --save Data16=on, --save View8Format=PNG.
--render View=Mode, --render View.Param=ValuerepeatableHow a view's View images are stretched (section 7), e.g. --render Decon=ArcSinh, --render Decon.Gamma=1.2. Views: Frames, Stack, Decon, Calc.
--gpuauto | on | off; --no-gpuauto uses the GPU when MATLAB can use it. A bare --gpu means on. If you ask for on and there is no usable GPU, the CPU is used with a warning.
--workersauto | NCPU work (when not on the GPU) runs on N threads. auto = the performance cores, at most 8 before MATLAB R2025b. --workers 1 = one thread. Ignored on the GPU.
--formatfloat32 | int16Format of the deconvolved image.
--dataset Ninteger, list or allProject inputs only: which dataset(s) to process: --dataset 3, --dataset 2,3,4, --dataset all (every dataset that is not itself a decon result). Each is processed in turn; the outputs are lists.
--crop x,y,w,h | autoA crop ROI, applied before the stack and the decon, as the app's Crop to ROI: x,y = the 1-based top-left pixel, w,h = the size. auto = the app's Auto ROI on the first frame (Lunar/Solar: the most detailed square; Planetary: the disc and a margin). A crop that does not fit the frame is an error.
--framesauto | offHow a folder of images is taken (section 4).
--widget Name=ValuerepeatableSet any app control by its name – the escape hatch for a setting with no named parameter, e.g. --widget TiledProcessingCheckBox=1. params --widgets lists the controls with their factory values. The name's case is corrected; an unknown name is a usage error. Prefer named parameters: they are checked and documented.
--opt Name=ValuerepeatableA tool command's option (section 3).
--diag autoiterWrite the decon's auto-stop tests, at every check, to the log: why each decon stopped when it did.
--save-projectauto | on | off; --no-save-projectSave a BiggSky project of the result. auto = yes for captures, no for project inputs. A project input with --out is saved as a copy in --out.
--recursive, -rflagInclude subfolders of folder inputs.
--jsonflagMachine-readable output: one JSON event per line on stdout (section 11).
--dry-runflagResolve inputs, settings and output folders, check everything, and process nothing.
--verboseflagShow the engine's own console output instead of only logging it. Not for use with --json.
--fullpathflagPrint every path in full on screen. By default, paths under the inputs' folder are shown relative to it (section 8, Paths on screen). --json, the log and error messages always give paths in full.
--log <file>fileOne log for the whole run. Default: one log per input, beside its results.
--host <name>textName of the program calling BiggSkyCLI. Recorded in each run record.
--save-job <file.json>fileWrite this command line as a job file and stop. Nothing is processed.
--freeze-settingsflagWith --save-job: write into the job, by name, every parameter that --settings (or --config) and the profile change from the factory settings, plus "profile": "none", so the job stands alone (section 6).

Options may come before or after the inputs. --name=value and --name value are both accepted.

6. Settings: factory, user, frozen or a profile

A run's settings are built in layers. Later layers win:

app factory defaults  <  the target's per-panel defaults  <  --settings  <  --set / --decon / --save
--settingsWhat it meansWhen to use it
factory (default)The app's built-in defaults. Unaffected by anything changed in the app.Reproducible scripted runs.
userThe settings the BiggSky app last saved (when it closed) on this computer, including the per-target denoise settings, the per-target stacking table (Stack dropdown's Set Target and table edits, e.g. SaveNoiseMap) and the calibration libraries. With --config, that file's settings instead."Process the rest of the night the way I tuned it in the app."
a .mat pathA specific saved BiggSky config file.Several setting profiles.
frozenThe app's settings written into a job file as named parameters: every stacking, decon and save parameter whose value differs from the factory setting. Made by --freeze-settings or the app's File › Save Settings as Job File. The job then has no settings key (it is factory plus those values).A job that runs the same next month or on another computer, and says by name what is special about it. It does not carry the calibration libraries (darks, flats), or GPU and core choices.

user changes whenever the app saves its settings. If a run must stay repeatable, freeze the settings.

Profiles: the command line's own settings

The app saves its settings every time it closes, so --settings user changes whenever you use the app. A profile is the command line's own settings: a JSON file of named parameters (section 7) that the app never writes.

%USERPROFILE%\BiggSkyCLI\profiles\<name>.json

The folder follows BIGGSKY_PROJECTDIR when that is set, and BIGGSKY_CLI_PROFILES overrides it.

{
  "schemaVersion": 1,
  "description": "My planetary settings",
  "save":  { "Data16": true },
  "decon": { "DenoiseImagePct": 60 },
  "Planetary": {
    "stack": { "FramePercent": 15, "SuperRes": [1, 2] },
    "decon": { "ImageIterations": 20 }
  },
  "Lunar": { "decon": { "DenoiseImagePct": 30 } }
}
  • Sections: the top-level stack / decon / save / render apply to every target, and a Lunar, Planetary or Solar section (with the same four keys) applies on top for that target.
  • color (deep sky, top level only): the Color recipe for every deep-sky run (section 4, The Color recipe): a preset's name ("color": "nb-sho"), an object ("color": { "preset": "nb-sho", "palette": "Foraxx" }, keys nested or dotted), or a list ("color": ["nb-sho", "palette=Foraxx"]). { "palette": "Foraxx" } alone makes every narrowband run Foraxx and leaves the rest to the project. A run's own --color-preset replaces it; its --color path=value goes on top.
  • Validation: names are checked when the profile is read. A profile with an unknown name is refused (exit 2), with the file and the name in the message.
  • The default profile: default.json is used for every run that gives neither --profile nor --settings. Asking for the app's settings explicitly is never overridden by a default. --profile none turns it off for one run.
  • Order, weakest first:
factory  <  --settings  <  profile  <  job file / command line

Making and changing profiles:

BiggSkyCLI profile save default -t planetary --settings user          # snapshot the app's settings
BiggSkyCLI profile save default -t lunar --config D:\cfg\Lunar.mat    # ... or another config file's
BiggSkyCLI profile save default -t planetary --decon DenoiseImagePct=60   # change one value
BiggSkyCLI profile save default --save Data16=on                      # a value for every target
BiggSkyCLI profile list
BiggSkyCLI profile show default
BiggSkyCLI profile path
  • A snapshot (--settings or --config) replaces that target's section with every named parameter that differs from the factory settings. A snapshot was verified to resolve to exactly the app's settings.
  • An update (only values typed) changes those values and keeps the rest of the section.
  • Other sections of the file are always kept.
  • From the app: tune the settings in BiggSky, close it (it saves them), then snapshot them with profile save NAME -t <target> --settings user.

Using one: --profile NAME on the command line, or "profile": "NAME" in a job file (a .json path is relative to the job file). params --profile NAME shows what it resolves to.

A run record names the profile used ("profile"). Its job already holds the profile's values (with "profile": "none"), so re-running the record does not depend on the profile still existing or being unchanged.

Which config file

The app keeps all its settings, and normally the license too, in one config file. BiggSkyCLI finds it the way the app does:

  1. <user folder>\BiggSkyConfig2File.mat (a pointer), if it exists, names the config file.
  2. Otherwise the config is <user folder>\BiggSkyConfig2.mat.

The user folder is %USERPROFILE%, or BIGGSKY_PROJECTDIR if that environment variable is set.

--config <file.mat> overrides both, for that run only:

  • The pointer: BiggSkyCLI never rewrites it, so the app keeps using its own config.
  • LicenseCheck --config F: saves the refreshed license into F. It leaves the pointer, and the user folder's BiggSkyLicense.mat, exactly as they were.

The license token is read from the config. If the config holds no license at all, the BiggSkyLicense.mat that activation saves is used instead, which is the same recovery the app makes at startup. That file is looked for beside a --config file first, then in the user folder.

A license still only works on the computer and Windows account it was activated for. Pointing --config at a copy of another machine's config does not license this one.

Equipment and plate scale

BiggSky works out the plate scale (arc-seconds per pixel) of your frames for Analyze, star sizes and the deep-sky stacker. It takes the scale from your equipment file when it can, and from the frame header (FOCALLEN and XPIXSZ) when it cannot.

  • Equipment file: <user folder>\BiggSky\equipment.json lists your telescopes, optics (barlows, reducers), cameras and the optical trains made from them. A train is one telescope, its optics and one camera.
  • Camera catalog: BiggSky ships with the pixel size, sensor size and Bayer pattern of common astronomy cameras. Your cameras name a catalog model and add what you have measured.
  • Folder marker: a file named biggsky.json in a folder, such as {"train": "J90-ASI1600"}, says which train took every frame below that folder. The nearest marker wins, so a telescope folder inside another one can have its own. Markers travel with the data when you copy it to another computer.
  • Without a marker, the frame header picks the train: focal length and aperture first, then the camera name.
  • SER captures carry no focal length. They need a marker, or a camera that only one of your trains uses.

Commands (none needs a license):

CommandWhat it does
equipment init <folder>Writes a starter equipment file from the frame headers in the folder (one frame per subfolder is read). It never overwrites a file; it writes equipment.proposed.json beside an existing one
equipmentShows the files in use and the plate scale of each train
equipment listLists telescopes, optics, cameras and trains
equipment scale <file or folder>Shows which train took the frames, the plate scale, and where each number came from
equipment checkLists problems in the equipment file
equipment cameras [TEXT]Searches the camera catalog
equipment pathShows where the files are

--equipment <file> (or the BIGGSKY_EQUIPMENT environment variable) uses another equipment file. When a train's scale and the header's disagree by more than 2%, the scale command and the log say so: check the barlow or reducer, the binning, or the folder's marker.

7. Parameters

Every setting that changes a result has a name, so nothing needs the app's internal control names.

  • There are three sections, matching the app's panels. Each has its own option and its own job-file key.
  • Names mean the same thing everywhere: on the command line, in job files, in params and in run records.
SectionOption / job keyWhat it covers
Stacking--set / "stack"The Stack tab: its panel controls and its parameter table.
Deconvolution--decon / "decon"The Deconvolution panel (Algorithm, Color, Run, Tile), the WB tab's white balance, and the Expert table.
Save Options--save / "save"The Save Options panel. It applies to both stacking and decon output.

Each stacking and decon parameter belongs to one tier. All tiers are accepted; the tier only says how specialized a parameter is.

TierWhat it isListed by
StandardWhat the panels show: frames %, auto frames, super-res and calibration; iterations, denoise, decon %, color boost, luminance, tiles, white balanceparams
ExpertThe parameter tables (the decon Expert table, the stack table)params --expert
AdvancedExpertTuning that only makes sense with the measurements behind it, plus A/B switchesparams --all

BiggSkyCLI params --target planetary shows every Standard parameter and Save Option with its current value, and with --settings user (or --config) marks what differs from the factory setting. With --expert or --all, each regular Expert-table row is followed by a line or two saying what it does, the same help the app's Expert table shows. --json lists every tier with its name, tier, label, kind, choices, value and factory value, and help where there is one.

Unknown names are refused before anything runs (exit 2), so a misspelled parameter never silently does nothing.

Stacking (--set), Standard

NameApp controlPlanetary default
FramePercentFrames %25 (used when AutoFrames=0)
AutoFramesAuto1: BiggSky picks the frame count from the quality curve
SuperResSuper Res1, or a list such as "1 2" for several stacks. Each stack is deconvolved, as the app's Do It All does (section 8).
AutoFlat, AutoDarkAuto Flat, Auto Dark0
FixHotPixelsFix Hot/Cold Pixels-1: a map of the camera's hot, warm and flickering pixels, found once from all the frames and repaired in each. 1 and 2 filter every frame instead; 0 is off.
FixPatternNoiseFix Pattern Noise1
StackSuffixSuffixempty. Tags the stack, and so its decon, once (<name>_Stack2_<suffix>_F1709_Decon_32b.tif), and the run's project, record and log (section 8).
Derotate, DerotateAvgDerotate, Avg #0
AutoCrop, CoverageAuto Crop, Coverage %1 and 100: the area every stacked frame covers. See Stack size below.

Stack size. Two settings decide how much of a capture that drifts ends up in the stack:

You wantAutoCropCoverage
Tight: only what every frame covers (the default)1100
Loose: everything at least that % of the frames cover, which can be larger than one frame (a lunar drift scan)1e.g. 50
Same: the capture's own size, the planet centered on its frame-quality centroid0not used
  • Loose and same average each pixel over the frames that really cover it, so the edges are noisier: noise grows as 1/sqrt(coverage), 1.4x the center's at 50% and 2x at 25%. The noise model records it, so the decon allows for it.
  • A single time point only. A Dataset ROI crop overrides both.

Deconvolution (--decon), Standard

NameApp control
PSFIterations, ImageIterationsPSF Iter., Image Iter. (-1 = automatic on that stage)
AutoIterationsAuto Iter.
DenoisePSFPct, DenoiseImagePctDenoise PSF / Image (%)
DeconPctDecon % (strength)
MoreDeconMore Decon
ColorBoostColor Boost (1 = off)
PSFFromLuminance, LuminanceOnly, ChannelAlignmentPSF from Luminance, Process Luminance Only, Channel Alignment
Tiled, TileSize, TileOverlap, MaskBackgroundTiled Processing, Tile Size (native pixels), Overlap, Mask Bkg
Background, CaptureGammaBkg, Capture Gamma (1 = none)
BlendDecon, BlendDeconPctBlend Decon %, and the amount
ReusePSFReUse PSF
PSFFromROIPSF from ROI. On by default, off when Tiled is on (each tile then fits its own PSF).
StarsOnly, UseStarlessStars Only, Use Starless (DSO; off for Lunar, Planetary and Solar)
DeconSuffixSuffix (the Decon panel's own). Empty by default. An extra tag on the decon, View and PSF names and folders (Decon_<suffix>_32b). For a decon-only run of an image or a project, this is the suffix to use: StackSuffix there tags nothing.
WhiteBalance, AutoWhiteBalance, AutoBackgroundThe WB tab: Use White Balance, Auto W.B., Auto Background (the old name BackgroundBalance still works)

The per-target defaults come from the app's own target handler. For example, Lunar processes luminance only, so its decon is Decon_32b rather than DeconLRGB_32b.

The blind PSF is fitted where the app's Do It All fits it (PSFFromROI, on by default):

  • Lunar and Solar: an automatic square on the most detailed part of the disk, sized from TileSize and the SuperRes scale. The log line PSF ROI 562x562 at [75 63] shows it.
  • Planetary: the disk plus a margin, which the decon picks itself (PSF ROI chosen from the image).
  • Tiled (--decon Tiled=1): PSFFromROI goes off, as ticking Tiled Processing does in the app, and each tile fits its own PSF. --decon PSFFromROI=1 keeps it on. The app then fits one PSF on the square and reuses it for every tile, but the CLI does not do that two-pass run yet.

Up to v0.5.34 no CLI decon used the lunar square, so lunar results differed from the app's.

Save Options (--save)

NameApp controlDefault
Data32, Data32Format32 bit Dataon, TIF (also TIF PS, FITS, XISF, MAT)
Data16, Data16Format16 bit Dataoff, TIF (also FITS, XISF, PNG, MAT)
View8, View8Format8 bit Viewoff, TIF (also FITS, XISF, PNG, JPG, MAT)
View16, View16Format16 bit Viewon, TIF
View32, View32Format32 bit Viewoff, TIF PS
UseImageFolder, SubFoldersUse Image Dir, Sub-Diron
CreateProjectCreate Projecton
AutoSaveAuto Save (Settings tab)on

On/off values may be written on/off, 1/0 or true/false. --format float32|int16 is a shorthand for Data32 or Data16; --save wins over it.

View images vs Data images. The 8/16/32-bit View images are the result as the app displays it: stretched with the render settings and white-balanced, and ready to share. The Data images are the unstretched values, for further processing. Command-line runs write both. The View images use the render settings the app saved when the run uses --settings user (or --config), and the app's defaults for a new dataset otherwise.

Render (--render): how the View images are stretched

Each view has a render mode and that mode's parameters. These are the app's Render tab settings, kept per view (Frames, Stack, Decon, Calc) and per target. They decide how the 8/16/32-bit View images are stretched. They never change the Data images.

BiggSkyCLI process jup.ser -t planetary --render Decon=ArcSinh --render Decon.Gamma=1.2
"render": { "Decon": { "Mode": "ArcSinh", "Gamma": 1.2 }, "Stack": { "ClipHigh": 0.05 } }
ModeParameters (planetary defaults)
ClipClipLow 0.1, ClipHigh 0.01, Gamma 1
SoftClipClipLow, ClipHigh, DisplayLow 10, DisplayHigh 90, Gamma
AutoRange, FullRange, Range8bit, Range16bitGamma
ManualRangeMin, Max, Gamma
LinearMaxPercent 100
DirectMax 1
ReinhardKey 0.18, Gamma 1.5, ClipLow 1, Offset 10
LogarithmicMinThreshold 10, ClipLow, ClipHigh 0.1, Gamma
ArcSinhStretch 5 (50 for DSO), ClipLow 0.1, ClipHigh 0.1, Gamma 1, ColorPreserve 1
CLAHESource (Clip, ArcSinh or Reinhard; Clip for planetary, lunar and solar, ArcSinh for DSO), ClipLimit 0.005, NumTiles 8, Distribution (uniform, rayleigh or exponential; exponential, rayleigh for Lunar/Solar). DSO also has Stretch 5 and ClipHigh 0.001, which set the ArcSinh (or Clip) source's own

params --json lists them with the exact defaults for the target (renderModes). The modes and defaults come from renderModeDefaults, the same definition the app uses.

How render settings apply:

  • Modes and parameters: --render View=Mode sets the mode; --render View.Parameter=Value sets a parameter. Parameters you don't give keep their current value if the mode is unchanged, and otherwise come from the new mode's defaults.
  • Unknown names: a parameter the mode doesn't have, an unknown mode or an unknown view is refused before anything runs (exit 2). If you give a parameter without a mode, it is checked against the mode that view will have under the run's settings.
  • Profiles: profile save refuses a parameter without a mode if the factory mode for that view doesn't have it, e.g. --render Decon.Key=1 (Key is Reinhard's). Give the mode as well: --render Decon=Reinhard --render Decon.Key=1.
  • What a run starts from: each view starts from what the app would use. That is the dataset's own render settings if it has them, else the Render tab's Default for the target and view, else the target's default. --settings user and --config bring in the app's saved Defaults.
  • Layering: in profiles and job files, a layer that changes a view's mode replaces that view from the layers below. Another mode's parameters never mix in.
  • What a run records: every view's mode and parameters, in params.render.

One home per parameter (changed 2026-10-11)

Nine decon parameters used to exist twice: as a panel control and as an Expert-table row. Which one counted depended on the parameter. For example, with Expert on, the table's denoise percentages were silently ignored.

Each now lives in its panel control only, and the Expert table no longer shows those rows. The decon always took the iteration counts and Auto Iter. from the controls, so no result changed.

The old table names DeTunePercent, SaveToImgDir and SaveFramesSubDir are still accepted and are applied to their new homes (DeconPct, UseImageFolder, SubFolders).

Renamed parameters

A parameter that is renamed keeps working under its old name, on the command line, in profiles, in job files and in run records, so nothing written for an earlier version breaks:

Old nameNew name
SharpenAmount, SharpenRadius, SharpenHaloClamp, SharpenPasses, SharpenRollOffUnsharpAmount, UnsharpRadius, UnsharpHaloClamp, UnsharpPasses, UnsharpRollOff (the decon's post-sharpen rows, named after the Unsharp Mask dialog they belong to)
BackgroundBalanceAutoBackground (the WB tab)

8. Output

Results are laid out exactly as the app lays them out, under the output folder:

<out>\
  Stack_16b\<name>_Stack2_F0100.tif                   the stack
  Decon_32b\ or DeconLRGB_32b\<…>_Decon…_32b.tif      the deconvolved image
  Decon_32b\ or DeconLRGB_32b\<…>_Decon…_32b.json     what that decon did
  Decon…_PSF_32b\<…>_PSF_32b.tif                      the PSF
  NoiseMap\<name>_<dataset>_F0100_NoiseModel.mat      the noise model
  Analyze\<name>_<dataset>_StackAnalyze.csv / .png    frame-quality analysis
  <name>.mat                                          a BiggSky project of the result (opens in the app)
  <name>_BiggSky.json                                 the RUN RECORD
  <name>_BiggSkyCLI_<yyyyMMdd_HHmmss>.log             the engine log

With a suffix, the last three carry it: <name>_<suffix>.mat, <name>_<suffix>_BiggSky.json and <name>_<suffix>_BiggSkyCLI_….log. That is StackSuffix when the input is stacked and DeconSuffix when it is deconvolved, both if both are set. So a suffixed run does not overwrite an earlier run's project and record. A project input's own --save-project copy keeps the project's name. The stack's suffix appears once in the stack and decon names, and the noise model and analysis names carry it too (<name>_Frames_<suffix>_F1709_NoiseModel.mat).

Paths on screen. Without --json, the CLI prints the inputs' folder once, then every path under it relative to that folder:

Dry run - 8 input(s) in 1 job(s), nothing processed.
In D:\Captures\2026-10-10:
  Lunar_single\21_36_12_Export.ser
      Lunar (auto: 'lunar' in its folder's name), all -> Lunar_single\BiggSky
  • The folder is the one holding every input named on the command line or in the job file. When that is only a drive (inputs on D:\Captures and D:\Scratch), every path is in full.
  • Relative paths are shown for the inputs, the dry run's output folders, the log, and each result's files.
  • In full: --fullpath prints every path in full. --json events, the log, run records and error messages always give paths in full.
  • Run record (<name>_BiggSky.json). It contains:
    • the BiggSky version, the time (UTC), the input, the target, the license product and GPU use
    • the job exactly as it applied to this input
    • params: every resolved stacking and decon parameter, and the decon controls actually used
    • outputs and seconds
    • decon: for each decon, its auto PSF and image iteration counts, why the image loop stopped (stop) and the PSF ROI it used – so a run can be judged without the log
    • on failure, ok: false and error

    It is also a job file: BiggSkyCLI run <name>_BiggSky.json repeats that input with the same settings.

    • Exact repeats need one thread. With --workers 1, a re-run was verified byte-identical.
    • The default thread pool (--workers auto) gives results that differ between runs by rounding: at most 1 DN, 0.0002% rms.
  • Frame analysis (_StackAnalyze.csv). One row per frame, in capture order, with a header:
    • Frame: 1, 2, …
    • Quality: the stacker's score. It grows with brightness squared, so Quality / Brightness^2 is the score with the light taken out.
    • Brightness: planets, the light above 10% of the frame's peak, over the frame's median, per pixel of the frame; other targets, the frame's mean level. NaN when the frames were analyzed by an earlier version and not analyzed again.
    • Stacked: 1 for a frame chosen for the stack. With a frame sweep, the largest stack's frames; with time points, every time point's so far.

    Up to v0.6.0 this file was one column of quality with no header.

    --ops analyze runs only this part, as the app's Analyze button does: it always measures the frames again, and writes this file and its plot. Stacked is then the frames the frame rule would keep from the whole capture, because no stack runs and time points do not apply. A later stack or analysis of the same dataset replaces both files. The project and record are <name>_Analyze.mat and <name>_Analyze_BiggSky.json, so an earlier full run's stay as they are. For a project input, add --save-project on to keep the measurements in the project.

  • Decon outcome (<decon name>.json, beside each decon). Plain JSON, written by every run from the app and from the command line, for every decon except a tiled one:
    • psfIterations, imageIterations (one per channel when the channels are deconvolved separately; the count the auto-stop chose, which can be below the loop it stopped at), and whether the PSF was reused (psfReused, psfFrom)
    • stops: each loop that stopped automatically, in order, with its stage, iterations, reason and noiseBandwidth. The last with stage image is why the decon ended.
    • psfTwoStage: the limb-fit edgeSigmaPx and the interiorWiden the data supported
    • psfROI: the PSF ROI actually used, when one was chosen
    • whiteBalance: a color decon's gains on R, G, B (1 1 1 when none), so a color matrix can take them off
    • deconFile, stack, noiseModel, dataset, version, saved

    info <decon image> --json includes it as deconOutcome.

  • Log. All engine output goes here. When a run fails, read the log; the console only says that it failed.
  • Decon timing. Every decon ends its log section with a Decon timing: table, the same one the app writes to its log. The first line gives the image size, whether it was tiled (tile count, size and overlap), the GPU or CPU it ran on, the CPU workers, and the wall time. Then each stage's time, slowest first: the blind PSF fit, the image decon and the stars pass (each split into setup and RL iterations, with the iteration count), the denoise, the noise model, the synthetic noise draw, the Wiener filter, the field-star PSF, tile stitching and the tile audit, saving, and other. The times are exclusive: a stage's time leaves out the stages inside it, so the rows add up to the wall time. Each row says whether it ran on the GPU or the CPU. In a tiled run on CPU workers, the workers' tile times are in a column of their own. note: lines under the table record a GPU failure that moved the work to the CPU, and the app turning on Tiled Processing because the GPU's memory is short.
  • A SuperRes list (--set SuperRes="1 1.5") makes one stack per scale, and each is deconvolved in the same run, with its own noise model, as the app's Do It All does: one decon, PSF and View image per stack. The 1.5x files carry _SuperRes15 in their names. In the project each scale is a dataset of its own (Frames_Stack, Frames_Stack_SuperRes15), after the capture's Frames. (Up to v0.5.33 only the 1x stack was deconvolved.) A frame sweep (--set FramePercent="5 10") still deconvolves only the largest stack; outputs.stack lists every stack of the sweep.
  • Time points (--set MultiTimePoint=1 --set MaxClipTimeSec=60: one stack per 60 s clip; MultiTimePoint=5 stops after the first 5) make one stack per clip, …_Stack2_T01_F….tif and on, each named with WinJUPOS-style time (2025-01-01-2317_5-U-…), and each is deconvolved with its own noise model, as the app's Do It All does (Process Frames on the time-point dataset). outputs.stack and outputs.decon list every one, and the record's decon has one entry per time point. (Up to v0.5.42 only the last time point was deconvolved.)
  • Existing outputs with the same names are overwritten, as in the app. That includes the run record: a later run on the same input name and suffix into the same folder – for example a decon-only run on the saved project (process <name>.mat --ops decon) with no DeconSuffix – replaces <name>_BiggSky.json, so the record always describes the images the last run wrote (the stacking settings are also kept in the project). To keep both records, give the later run another --out or copy the record first. With a SuperRes list there is no need for that second run any more.

9. Job files

A job file is JSON. It has optional shared defaults, then a list of jobs, each with its own inputs and any option from section 5 as a key.

{
  "schemaVersion": 1,
  "description": "Jupiter and the Moon, 2026-10-10",
  "_comment": "keys starting with _ are comments",
  "defaults": {
    "target": "planetary",
    "settings": "user",
    "out": "D:/Results/{date}/{target}/{name}"
  },
  "jobs": [
    { "inputs": ["Jupiter/*.ser"], "stack": { "FramePercent": 15, "AutoFrames": 0 } },
    { "input": "Moon", "target": "lunar", "ops": "stack", "workers": 6 }
  ]
}
BiggSkyCLI run night.json
BiggSkyCLI run night.json --dry-run
BiggSkyCLI run night.json --out D:\Elsewhere --set MinFrames=3 --json

The keys:

  • inputs (or input for one), recursive, target, ops, out, settings, profile, gpu, workers, format, dataset, saveProject
  • stack, decon and save, each an object { "Name": value } of the named parameters in section 7
  • render, an object keyed by view: { "Decon": { "Mode": "ArcSinh", "Gamma": 1.2 } }
  • color (deep sky): "auto", "off", or the Color recipe (section 4, The Color recipe): a preset's name ("nb-hoo"), an object { "preset": "nb-hoo", "starless": { "palette": "Foraxx" } } (keys nested, or dotted as "starless.palette"), or a list ["nb-hoo", "palette=Foraxx"]. A job's own preset replaces the defaults' recipe, and its other choices go on it. Run records write the recipe as colorPreset and colorSet, which are keys too.

Rules:

  • Without jobs, the top level is a single job.
  • Relative paths are relative to the job file's folder, so a job file can sit beside its captures and move with them. Paths typed after run stay relative to the current folder.
  • Values may be numbers, text, true/false, or lists ("SuperRes": [1, 2]).
  • Strict checking. All of these are refused before anything runs, with exit 2 and a message naming the file and entry (e.g. night.json jobs[2]: …):
    • an unknown key (other than _ comments)
    • a bad value
    • an unknown parameter name
    • an unknown {token} in out
    • a missing inputs
    • invalid JSON
    • a newer schemaVersion than this BiggSkyCLI reads
  • Options typed after run override the file. --set, --decon and --save add to the file's parameters rather than replacing them. --color-preset replaces the file's Color recipe; --color path=value adds to it.
  • One numbered list. All jobs' inputs are numbered together as [k/N], and one summary covers the whole run.

There are three ways to make a job file:

  1. From a command line: add --save-job night.json. Add --freeze-settings to embed the app settings.
    BiggSkyCLI process D:\Captures\*.ser -t planetary --settings user --set FramePercent=10 --freeze-settings --save-job night.json
  2. From the app: File › Save Settings as Job File…. It saves:
    • a frozen copy of the app's settings
    • every stacking parameter and control that differs from the target's defaults
    • the Expert decon entries, if Expert is on

    Its input is the current capture. Replace it with a folder or wildcard to process a whole session.

  3. From a run record: any <name>_BiggSky.json.

Only settings that differ from the defaults are written, so a job file reads as a list of what is special about the run.

10. Exit codes

CodeMeaning
0Every input succeeded. Also returned for --dry-run, --save-job, params, license when licensed, version and help.
1Failure: every input failed, nothing was found to process, or an internal error.
2Usage error: a bad option, value, parameter name or job file. Nothing was run.
3Some inputs succeeded and some failed.
77Not licensed: no license, expired, the wrong tier, not activated for this user or machine, or the license lapsed part-way through a batch. The same code RC-Astro uses. Nothing further was run.

11. Machine interface (--json)

With --json, stdout carries only JSON objects, one per line, each flushed as it is written.

  • Errors are events on stdout too, and stderr stays empty.
  • The engine's own output goes to the log file, never to stdout.
  • Unknown keys and event types may be added in later versions. Ignore what you don't recognize.

Every object has an "event" field.

eventFieldsWhen
info / topic: "version"cliVersion, schemaVersion, runtime (the MATLAB Runtime release, e.g. 2026a), features (what this build has: solve, mosaic-dso, name, stacked, solve-gaia-off, color-one-frame, color-plan …; a caller checks a request against it, since builds can share a version number)Always the first line.
info / topic: "update"current, latest, newer, os, release, installer (the download link), page, lastInstallupdate, once (section 12, Updating). Its result adds download, installer, sha256, signer, started and note.
info / topic: "reports", "report"reports: n, file, time, exit, command, first; report: file, textreport list; report show (section 13, Run reports). report send ends with a result: sent, file.
info / topic: "hardware"runtime, deployed, gpu (its name, or empty when the run is on the CPU), gpuMemoryGB, cpuCores, workers (auto or a number), threadCap (8 before R2025b, else empty)process and run, before the first input.
info / topic: "calibration"input, datasets: per dataset name, frames, exposure, temp (median, °C), dark, flat, groups (per temperature group: temp, frames, dark), darkChoice (why that dark), darksConsidered (every dark: file, exposure, temp, gain, offset, verdict), setTemp (the setpoints in the headers), stacked (true: one already-stacked master, used as the stack; --stacked), stack (that master's file) and starless (a starless image given with it, else empty)Deep sky, once the datasets are built, before stacking. datasets and groups are always lists, even with one entry.
info / topic: "license"valid, product, license, expires, daysLeft (null = perpetual, or unknown when not valid), email, seat, reason (when not valid)Before processing.
info / topic: "jobFile"files, jobsrun, after the job files are read and checked.
info / topic: "dryRun"file, files, input, job (index), out, resolved (the job for this input), gpu, and for a deep-sky folder calibration (as in the calibration event)--dry-run, one per input.
info / topic: "jobSaved"file--save-job.
info / topic: "profile"job, name, file, default, applied (how many values it added)A profile was applied to a job.
info / topic: "profiles", "profileSaved"; profilethe profile list / the saved file / a profile's sectionsprofile list, profile save, profile show.
info / topic: "licenseCheck"reached, saved, serverMessage, errorLicenseCheck.
paramstarget, settings, and stack, decon, save: lists of {name, tier, label, kind, choices?, value, factory}params --json.
statusphase: loading (with input), stacking, analyzing, stars (Remove Stars), decon, color, skipped (with message)Lifecycle of each input.
progressstage (stack/stars/decon/color), done (0–100, of the current step), eta (s, optional), message (the step, e.g. "Stacking images (812/2000)…Pass 1"), overall (0–100, of the whole input) and overallEta (s) when the input has several stepsDuring processing. Throttled to about 5% steps or one per second. done restarts at 0 for each step (loading, analysis, pass 1, pass 2, decon), so read message to tell the steps apart. overall never goes back. It weighs the steps roughly (deep sky: a decon about three stacks, Color about four; otherwise a stack twice a decon), and once a step has finished it also moves with the time spent in a step that reports little (a decon reports once, at its start), so overallEta is an estimate. Each input's last progress, just before its result, has overall 100.
warningmessageNon-fatal, e.g. the license expires within 7 days, there is no GPU, a calibration warning (Dark WARNING ..., Flat WARNING ...: the dark's temperature unknown or far from the frames', a flat months from the lights), Color skipped, or an error the engine caught and carried on from ("caught and carried on: …"; a run can still end ok).
errormessage, optional input, optional codeFatal for that input, or for the run.
resultok, input, outputs {stack, decon, psf, noisemap, noisemodel, color [list], other [list], project, record}, decon [list], secondsOne per input. An output is a path, or a list of paths for a SuperRes list, --dataset list or Process Frames (stack, decon, psf, noisemodel). other lists only files this input wrote. decon (always a list): per decon dataset, psfIterations (null when the PSF is not fitted blind, as deep sky's field-star PSF), imageIterations, stop (why the image loop stopped), psfROI, psf (deep sky: the field stars it came from), starsIterations and starsStop (deep sky's stars pass), seconds (the decon's wall time), timing (the first line of its Decon timing: table: size, tiling, GPU or CPU) and stages [list] (stage, seconds, workerSeconds, calls, iterations, device, slowest first).
result (tools)ok, command, input [list], outputs (per tool: view, sharpened, mosaic, layout, frames, movie, image, diff, record …), info (what it measured), secondsOne per tool run (section 3).
info / topic: "file"file, infoThe info command: one per input.
summaryfiles, ok, failed, skipped, secondsEnd of process or run.

In a run with more than one input, status, progress, warning, error and result also carry file and files (1-based index and total). In a deep-sky input with several datasets, status, progress and warning also carry dataset (its name), datasetIndex and datasets (1-based index and total), so a four-filter run says which filter each stack, Remove Stars and decon belongs to.

Example (one capture, trimmed):

{"event":"info","topic":"version","cliVersion":"v0.5.30","schemaVersion":1}
{"event":"info","topic":"license","valid":true,"product":"BIGGSKY_UNIVERSE","license":"PERPETUAL","expires":"Perpetual","daysLeft":null,"email":"…","seat":"1 of 1 (Max 3)"}
{"event":"status","phase":"loading","input":"D:\\Downloads\\2024-01-18-1810_6-Jupiter.ser"}
{"event":"status","phase":"stacking"}
{"event":"progress","stage":"stack","done":43.8,"eta":2.2,"message":"Stacking Analyze..."}
{"event":"progress","stage":"stack","done":100,"message":"Stack Pass 1 (100/100)..."}
{"event":"status","phase":"decon"}
{"event":"progress","stage":"decon","done":60,"eta":15}
{"event":"result","ok":true,"input":"D:\\Downloads\\2024-01-18-1810_6-Jupiter.ser","outputs":{"stack":"…\\Stack_16b\\…_Stack2_F0100.tif","decon":"…\\DeconLRGB_32b\\…_DeconLRGB_32b.tif","psf":"…","noisemodel":"…","other":["…StackAnalyze.csv","…StackAnalyze.png"],"project":"…\\2024-01-18-1810_6-Jupiter.mat","record":"…\\2024-01-18-1810_6-Jupiter_BiggSky.json"},"seconds":42.2}
{"event":"summary","files":1,"ok":1,"failed":0,"skipped":0,"seconds":42.3}

Guidance for automation and AI agents

To have an AI agent drive BiggSky, give it this manual as one Markdown file: BiggSkyCLI-Manual.md, installed beside BiggSkyCLI.exe and published at biggsky.com/BiggSkyCLI-Manual.md. It is written to be handed to an agent as-is. These rules are the ones to follow:

  1. When your program reads the output, pass --json, and parse stdout line by line. Never parse the human-mode text; its wording can change. A script that a person runs and watches is different: see Writing a script for a person, below.
  2. Check the license first: BiggSkyCLI license --json.
    • If valid is false, report reason to the user. Exit 77 is never fixed by retrying.
    • Run LicenseCheck only when the user asks (e.g. after renewing). It contacts the license server and rewrites the app's saved config.
    • Never run LicenseCheck while the BiggSky app is open.
  3. Discover parameters, don't guess them: BiggSkyCLI params --target <t> --json. Use only names from that list. Prefer Standard-tier names; reach for Expert and AdvancedExpert only when the user asks for that tuning. For a tool command, params --command <tool> --json; for app controls, params --widgets --json.
  4. Look before you process, and check after, without MATLAB or an image viewer:
    • info <file|project> --json tells you what an input is (a capture's frames, a project's datasets and their files, a decon record's settings and stop reasons).
    • render <result> --opt Format=JPG --opt Bits=8 gives you a View image to show the user (or to look at yourself); its path is result.outputs.view.
    • compare <a> <b> --json says whether two results differ, and by how much – re-runs, settings A/B tests, CLI against app.
    • The run record's decon entries say how each decon stopped.
  5. Dry-run first: --dry-run --json resolves every input and output folder and runs every check without processing. Show the user what will happen before starting a long batch.
  6. Don't pay the start-up per command. Every BiggSkyCLI.exe call costs 15–30 s before any work. Use BiggSkyClient with the same arguments (section 3, "Server"): the first call starts a server, later calls take 0.2 s for a quick command. When the commands are known up front, BiggSkyCLI script <file> --json does the same in one process.
  7. Check for a default profile: BiggSkyCLI profile list --json. If default exists, every run without --settings/--profile uses it; pass --profile none for factory settings.
  8. Prefer a job file for anything non-trivial. It is reviewable and repeatable, and it becomes part of each run record. Write it, validate it with run job.json --dry-run --json, then run it.
  9. Use the exit code as the verdict: 0, 1, 2, 3 or 77 (section 10). For per-input detail, read the result events, or the ok field of each <name>_BiggSky.json.
  10. Check the outputs exist on disk at the paths in result.outputs before using them.
  11. On failure, read the log named beside the record. The error message is a summary only.
  12. Don't touch the user's files beyond what was asked:
    • Write to a --out folder the user chose.
    • Do not pass --save-project on for a project input unless the user asked to update that project.
    • Outputs with the same names are overwritten.
  13. Run one BiggSkyCLI at a time. Runs are GPU- and memory-heavy. Two at once have not been tested, and the second will compete for the same GPU. The server runs one command at a time by design: send the next when the last has answered, or queue them. Don't run BiggSkyCLI.exe beside a busy server.
  14. Budget time. Each BiggSkyCLI.exe invocation spends about 15–20 s starting up (BiggSkyClient to a running server: none). Measured examples (single-threaded on the CPU, before --workers defaulted to auto):
    • stack plus decon of a 2000-frame color SER at 5% of the frames: about 40 s on the CPU
    • a 4000-frame mono SER at 5%: about 15 s on the GPU
    • a lunar SER at 10%: about 33 s on the GPU

    Runs using the full frame count, and large lunar frames, take minutes.

  15. To cancel a command sent with BiggSkyClient, run BiggSkyClient --cancel (or press Ctrl+C in the client): the command stops at its next check, reports "Cancelled." and exit 1, and inputs not yet run are skipped. The server stays up for the next command. A BiggSkyCLI.exe run is canceled by ending its process. Partially written outputs may remain for the input that was running.
  16. Use --host <your-name> so each run record says which program made it.

Writing a script for a person

When a user asks you to write a script, a PowerShell .ps1 or a batch file, that they will run, you usually cannot see their computer or their files.

Start from BiggSkyProcess (section 2, A ready-made script). It is installed beside BiggSkyCLI.exe and already follows the rules below. Often it does the job as it is, with the right -Target and -Ops. If it doesn't, have the user copy it somewhere of their own and change the copy. Otherwise follow these rules:

  1. Ask before you write it. Never assume a target from a folder's name. Ask:
    • what the captures are: lunar, planetary, solar, deep sky, or a mix;
    • whether to stack and deconvolve, or stack only;
    • whether to use the app's saved settings (--settings user);
    • where the results should go.

    If they don't know, or the folder is a mix, use --target auto, which makes the dry run show each capture's target, so the user can check it.

  2. No --json. The script's reader is the person, and the human output is written for them:
    • the dry run lists each input, relative to the folder it prints once, with its target and output folder;
    • progress is a line per step, or per 10% of each input, with the time left;
    • each result lists where its files went.
  3. Dry run first, then ask. Run the same command with --dry-run. Then ask the user to check that list (in PowerShell, Read-Host) before processing. Exit code 2 from the dry run means something must be fixed first, such as an input --target auto could not tell: stop and show the message.
  4. Let the user change the choices. Make the folder, the target and the operations parameters with sensible defaults, rather than fixed in the script.
  5. Use the exit code (section 10). After a failure, tell the user that BiggSkyCLI report show shows what went wrong, and that BiggSkyCLI report send sends it to BiggSky support (section 13, Run reports).

A minimal PowerShell script:

param(
    [string]$Folder = (Read-Host 'Folder of captures'),
    [ValidateSet('auto', 'lunar', 'planetary', 'solar')]
    [string]$Target = 'auto'
)
$cli = Join-Path $env:ProgramFiles 'BiggSky\application\BiggSkyCLI.exe'
& $cli process $Folder --recursive --target $Target --settings user --dry-run
if ($LASTEXITCODE -ne 0) { Write-Warning 'Fix the problem above first.'; exit $LASTEXITCODE }
if ((Read-Host 'Process these? (y/n)') -ne 'y') { exit 0 }
& $cli process $Folder --recursive --target $Target --settings user
if ($LASTEXITCODE -ne 0) { Write-Warning 'Something failed: run "BiggSkyCLI report show" to see what.' }
exit $LASTEXITCODE

12. Licensing details

  • Every check is offline. The license stored by the app (a token signed by the BiggSky license server, kept in the config file or in BiggSkyLicense.mat; see section 6) is verified on each run, along with this machine's hardware and this user account. BiggSkyCLI contacts the license server only in LicenseCheck, getkey, activate, update and report send.
  • Expiry is checked before every input, so a batch or a process left running stops cleanly when the license lapses. The inputs not yet run are reported as skipped, with exit 77.
  • Within 7 days of expiry, every run warns: "run BiggSkyCLI LicenseCheck". After renewing a subscription, run LicenseCheck, or open the app and press Validate, to fetch the new expiry.
  • Moving the computer's clock back does not extend a license.

Updating

BiggSkyCLI update                  is there a newer BiggSky?
BiggSkyCLI update download         download it and check the installer
BiggSkyCLI update install          ... and open the installer
  • update (or update check) asks the BiggSky update server, as the app's Check for Updates does. It names the latest version for this computer's OS and MATLAB Runtime, so an R2026a build is offered the R2026a installer, never one that would download a second runtime. The update event gives:
    • current, latest and newer;
    • os and release;
    • installer, the download link;
    • page, the download page;
    • lastInstall, the last installer update install opened: waiting, installing or finished, with its exit code.
  • update download downloads the installer:
    • It goes to --out DIR, or by default %TEMP%\BiggSkyUpdate\<version>, and is unpacked.
    • On Windows, the installer must carry a valid signature from KB Imaging Solutions LLC; on macOS, a valid code signature. One that doesn't is deleted, and the command fails (exit 1).
    • The result gives download, installer, sha256 and signer.
  • update install does all that, then opens the installer once BiggSkyCLI has exited:
    • The installer is BiggSky's own, in its own window. You accept its license and Windows' permission prompt there; update agrees to nothing for you.
    • It refuses while the BiggSky app is open, or while BiggSky's server is busy: an installer cannot replace a program that is running.
    • An idle server is stopped. If the command came through the server (BiggSkyClient, the MCP connector), that server stops after answering. The next command starts it again, from the new version.
    • --dry-run does everything but open the installer.
    • On Linux the installer needs root and a terminal, so the result gives the command to run.
  • Exit codes: 0 when up to date or done, 1 when the server, the download or the signature check failed, 2 for a wrong action.

Running an installer yourself. First close the BiggSky app, and stop BiggSky's server:

BiggSkyClient --shutdown

The installer cannot replace a program that is running, and it does not say so. It replaces the others and leaves the running one at the old build. The MCP connector's server stops by itself after an hour unused.

From v0.6.8, BiggSky and BiggSkyCLI tell you when this happened. Each installer carries BiggSky-build.json: the size and SHA-256 of each program it installs. At start, the app shows "BiggSky install incomplete", and every BiggSkyCLI command gives a warning, when a program in the application folder does not match it. The message names the program and says what to do: stop the server and run the installer again. With an older installer, check instead that BiggSky.exe, BiggSkyCLI.exe and BiggSkyClient.exe in C:\Program Files\BiggSky\application have the same date and time.

13. Troubleshooting

Run reports

Every BiggSkyCLI run, a line of a script or a command sent through the server included, leaves a short report on this computer, in %LOCALAPPDATA%\BiggSkyCLI\reports. The newest 50 are kept. A report has:

  • the version, the MATLAB Runtime and Windows;
  • the start time, how long the run took, and the exit code;
  • the command line as BiggSkyCLI received it;
  • for script and run, the script or job file (its first 200 lines);
  • every error and warning;
  • the engine's exceptions from the run;
  • the lines of each run log that say error, warning or failed.

A PowerShell or batch script that calls BiggSkyCLI is not BiggSky's to read: only the command lines that reached BiggSkyCLI are in the report.

No file names. Every path is replaced by its shape: <path 2> plus a line such as path 2: D:, 4 levels, .ser, file, spaces. The shape says:

  • the drive, or relative or network share;
  • the depth and the extension;
  • file, folder, MISSING, or a wildcard with its match count;
  • spaces, commas or shell characters;
  • a QUOTE inside it, which is what PowerShell leaves when a path ends in \ before its closing quote;
  • a trailing slash, non-ASCII characters, or a long path.

The names in those paths are then hidden wherever else they appear. A word that is neither an option nor a path, often the rest of a path the shell split at a space, is described the same way.

BiggSkyCLI report                  list the recent runs, newest first, with their exit codes
BiggSkyCLI report show [N]         print report N (1 = newest; default: the newest that failed)
BiggSkyCLI report send [N]         send it to BiggSky support

send uploads that one report through the license server to BiggSky support's folder for your license, as the app's error reports go. It needs a license key and an internet connection. Nothing is sent otherwise.

SymptomCause, and what to do
Exit 77, "No BiggSky license on this computer for this user"Open the BiggSky app once, under this Windows account, and activate.
Exit 77, "<file> holds no license, and there is no BiggSkyLicense.mat…"The --config file has no license. Use the app's own config, or put the BiggSkyLicense.mat beside it.
Exit 2, "Config file not found" / "is not a BiggSky config file"Check the --config path. It must be a BiggSkyConfig .mat saved by the app.
Exit 77, "activated for a different BiggSky installation or Windows user account"Run BiggSkyCLI as the user who activated BiggSky. Not as a service or SYSTEM.
Exit 77, "expired on …"Renew, then BiggSkyCLI LicenseCheck.
Exit 77, "… does not include the BiggSky command line"The license tier is SSE Lite, SSE Free or Free. The CLI needs Universe, SSE Pro or DSO.
Exit 2, "unknown stacking / deconvolution / Save Options parameter(s)"Check spelling with BiggSkyCLI params --target … --all.
Exit 2, "a target is required"Add --target (or "target" in the job). Only project inputs can omit it.
A result is missing from outputsRead the log. Single images are deconvolved only. --ops stack writes no decon.
--gpu on warns "no usable GPU"This MATLAB release cannot use this GPU (e.g. RTX 50-series needs the R2026a build). The run continues on the CPU.
Slow on the CPU--workers auto is the default. Check the record's gpu field, and whether --workers 1 was set.
BiggSkyClient: "the server stopped at start (exit 77)"The server checks the license when it starts. Run BiggSkyCLI license to see why. On macOS and Linux the client also names serve.out, the server's own output.
Linux: "BiggSkyCLI needs the MATLAB Runtime R2024b, which was not found"Run the BiggSky installer again (it fetches the runtime), or export MCRROOT=/path/to/MATLAB_Runtime/R2024b.
Linux: bin/BiggSkyCLI stops naming a missing .so, or --json output starts with "Setting up environment variables"That is the program itself or MCC's run_BiggSkyCLI.sh. Use the BiggSkyCLI command in /usr/BiggSky/application.
macOS: BiggSkyCLI.app/Contents/MacOS/BiggSkyCLI dies with "Library not loaded: @rpath/libmwlaunchermain.dylib"The program inside the bundle cannot be started by itself. Use the BiggSkyCLI command beside the bundle.
BiggSkyClient hangs with no outputA long command is running, or another client's command is ahead of it. BiggSkyClient --status shows what the server is doing.
BiggSkyCLI serve: "already running for this user"One server per Windows user. Use it, or BiggSkyClient --shutdown first.
BiggSkyCLI serve: "Port 52817 … is in use"Another program has the port. Use --port; the client reads the port from serve.json.

14. Not in this version

  • The app's Color step for planetary, lunar and solar filter sets. Planets ARE combined into color: captures of Jupiter, Saturn or Mars through L, R, G and B filters, named with their WinJUPOS times, become RGB and LRGB images with derotate --opt Mode=image (section 3), which also turns them to one moment. Deep-sky Color is in too (section 4, Deep-sky).
  • Process Frames on one capture file (a SER deconvolved frame by frame, unstacked), and a frame sweep deconvolved frame by frame (a folder of stacked images, and a time-point series, are supported).
  • A tiled decon with PSF from ROI switched back on does not do the app's two-pass run (one PSF on the ROI, reused for the tiles).
  • Derotate Stacks (time-point stacking with derotation) beyond what --set Derotate=1 does.
  • A watch folder that processes captures as they arrive (the server's queue folder runs command files, not captures).
  • Graceful cancel of a BiggSkyCLI.exe process (use the server and BiggSkyClient --cancel), and running several BiggSkyCLI processes or servers at once.

BiggSkyCLI is installed with BiggSky and needs no license of its own: activate SSE Pro or Universe in the app. See also the full BiggSky manual, the Mosaic manual and the Wavefront manual.