AUTOSTACK 2.1 — USER GUIDE
==========================

IMPORTANT: extract ALL the contents of the .zip into a folder before
starting AutoStack (see README_FIRST.txt). Starting it from inside the
archive causes the error "Failed to load Python DLL".

AutoStack stacks your FITS subframes automatically by driving Siril.
You do not need to install anything other than Siril: no Python, no
libraries.


LANGUAGE
--------

AutoStack opens in English when Windows is in English, and in French
otherwise. Click "English" or "Français" at the top of the window to
change it: the choice is remembered and applied after a restart. The
reports (rapport.txt, RESUME.txt) are written in French.


FIRST LAUNCH
------------

The application is not digitally signed, so Windows will show:

    "Windows protected your PC"

Click "More info", then "Run anyway". This is normal and safe.

Your antivirus may also flag the file. This is a common false positive
for this kind of application. You can check that the file is the one we
published by comparing its fingerprint with the one in the supplied
SHA256.txt file:

    Get-FileHash -Algorithm SHA256 .\AutoStack_v2.1.4.exe


REQUIREMENTS
------------

- Windows 10 or 11
- Siril 1.4.4 or later, installed
- The individual FITS files gathered in one folder (one or several
  nights of the same target, with the same settings: exposure, gain,
  filter)


WHAT AUTOSTACK DOES ON THE INTERNET
-----------------------------------

- Online Gaia (ticked by default): Siril queries a star catalogue
  (VizieR, CDS Strasbourg) to register the subframes and calibrate the
  colours. If that server does not answer, AutoStack retries twice, then
  still produces the image, without colour calibration. It says so
  clearly in the final window and in the report: the image is then less
  colourful, which is not a problem with your installation. Run it again
  later to get the calibration.
- Local Gaia catalogue (optional, about 1 GB): if Siril has installed it
  on your computer (Siril_Catalog_Installer tool, supplied with Siril),
  AutoStack uses it first. It works without the Internet and avoids
  outages of the online server. If it is not installed, AutoStack
  automatically uses the online server. The report states which of the
  two sources was used.
- Once a day, AutoStack checks nightastro.fr to see whether a new
  version exists; if so, a window offers it at launch. Nothing from
  your images or folders is sent. Without a connection, nothing happens
  and no message appears.


HOW TO USE IT
-------------

1. Extract the folder you received (see above), then run the program
   inside it.
2. "What do you want to stack?": leave "Photos" selected (or "A video",
   see below), then "Choose a folder…": select the folder containing
   your FITS files.
3. "Output": leave the default setting, or choose another location.

   Important: processing writes up to 16 times the size of your FITS
   files. If your images are on an SD card or an almost full disk,
   choose another disk here.

4. "Start stacking".
5. Follow the progress bar, step by step.

At the end:

- the exact path of the results is shown in the window;
- if a warning applies (for example colours not calibrated), it appears
  in a yellow box, and in the report;
- "Open results" opens the right folder directly;
- "Calibrate colours" can only be clicked if colour calibration failed
  (catalogue server): it redoes it afterwards;
- "Send feedback" opens the feedback form in your browser.


CREDIT ON THE IMAGES
--------------------

By default, AutoStack adds a small "AutoStack · nightastro.fr" credit at
the bottom right of the PNG preview and the TIFF. FITS files are never
modified. To leave it out, untick the matching box in step 3 of the
window: the choice is remembered.


FILES PRODUCED
--------------

In the results folder:

- *_MASTER_LINEAR.fit    the master, still linear, with the final WCS
                         if plate solving succeeded
- *_COLOR_LINEAR.fit     colour-calibrated version (PCC)
- *_LIGHTROOM_16bits.tif for your own processing
- *_PREVIEW.png          for previewing and sharing
- rapport.txt            summary, with the capture times of each night
- rapport_detaille.txt   full details, with the Siril logs


SAFETY OF YOUR IMAGES
---------------------

AutoStack never works on your original files: it makes copies. The
SHA-256 fingerprint of each original is computed before processing,
checked before the results are published, then checked a second time
afterwards. If any original had changed, processing would stop and tell
you.


LIMITS OF THIS VERSION
----------------------

- several nights possible for the same target, provided exposure, gain
  and filter are identical;
- instruments: Seestar S30 Pro, S50 Pro, S50, S30, DWARF II, DWARF mini,
  DWARF 3 and Celestron Origin;
- deep sky, and videos of the Moon, the Sun and the planets;
- no darks, flats or offsets;
- mosaics: detected automatically (see below).


MOSAICS (since 2.0)
-------------------

AutoStack detects a mosaic by itself: the Seestar "_mosaic_sub" folder,
or subframes whose sky positions are too far apart for a single target.
If your device stores each panel in a separate folder, simply choose
the folder that contains them all.

The panels are then assembled over the full field, without automatic
cropping. Two conditions:
- the Gaia star catalogue must answer (online or installed locally):
  without it, AutoStack cannot place the subframes and stops with a
  clear message;
- allow about 32 times the size of your FITS files in disk space.


MOON, SUN AND PLANET VIDEOS (since 2.0)
---------------------------------------

At the top of the window, choose "A video", then "Choose the video…"
and select THE raw video file (for example the "…-RAW.avi" file in the
Seestar Lunar_video or Planetary_video folder), and start processing.
The results are written to an AutoStack_Resultats folder next to the
video.

AutoStack uses raw videos: the "-RAW.avi" files the Seestar records next
to the MP4s, and the .ser files from planetary cameras (FireCapture,
SharpCap, ASICap…), mono, colour or Bayer pattern, 8 or 16 bits. MP4s
are compressed and lose fine detail: they are not used.

For each video, AutoStack rates the sharpness of every frame, keeps the
best quarter, aligns these frames, stacks them and sharpens the
details. Processing takes from a few seconds to a minute, without the
Internet.

The result is most spectacular on the Moon. With a Seestar, planets
stay small: the image is enlarged 3 times for display. If the planet is
white and burnt out in the video, lower the exposure: a saturated area
cannot be recovered.


IF SOMETHING GOES WRONG
-----------------------

Click "Send feedback". The button stays available even when processing
has failed — that is exactly when your report is most useful to us.

If possible, attach:

- rapport_detaille.txt, or rapport_detaille_echec.txt if processing
  stopped;
- the *_PREVIEW.png image if one was produced;
- a short description of what looked wrong to you.

If processing stopped before producing any file, simply copy the
contents of the log shown at the bottom of the window.

Feedback form:
https://nightastro.fr/autostack-retour/


AND IF YOU DON'T LIKE THE RENDERING
-----------------------------------

AutoStack produces a single rendering, the one used to see straight
away whether the night produced something. Since 0.9.40 it applies a
light saturation (+35%) that mainly affects the target and spares the
sky background. This rendering cannot be adjusted: that is not
AutoStack's job.

To work on the image, open the *_MASTER_LINEAR.fit file in Siril. It is
still linear, it contains the WCS if plate solving succeeded, and you
have all of Siril's tools for stretching, colour and noise. The 16-bit
TIFF also works very well in Lightroom or Photoshop.

In other words: AutoStack stacks, Siril processes.
