astrophotography/session-scripts
laurence 5286a2e81b Processing and analysis code for remote-telescope imaging sessions
The scripts that processed the NGC 5128 session of 2026-07-21 previously
lived inside the data directory and addressed it with absolute paths.
Code and data are now separated: the code lives here, and a session is
located at runtime through the ASTRO_SESSION environment variable.

layout.py is what makes that work. It maps a FILENAME to the
subdirectory that file belongs in, using the same rules the session
directories are organised with, so a script can go on asking for
'master-Red.fit' or '_stars.npz' without any call site knowing the
directory structure. Anything unrecognised resolves to the session root,
which is visible and correctable rather than silently wrong.

restructure.py reorganises a flat session directory into that layout. It
is idempotent and dry-run by default.

The 50 session scripts are kept as they were run rather than tidied into
a library. They were written in sequence as the work went along, several
of them by parallel agents, and they show it - but they are the honest
provenance of a published set of results, and the productionised pipeline
should be able to reproduce those results exactly.

Verified before committing: all 51 files compile without warnings, and
verify_core.py, closeup.py and triptych.py were run end to end against
the reorganised session, correctly finding inputs across calibrated/,
stacks/masters/ and final/ and writing outputs back to the right places.
2026-07-21 15:29:49 +01:00
..
analyse.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
annotate.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
closeup.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
compose.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
depth.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
enhance.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
final.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gaia_colours.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-bwtrial.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-classify.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-complete-inner.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-complete.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-detect.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-fetch-vizier.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-gaia-astrom2.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-plots.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
gc-validate.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
hdr.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
layout.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_cavs.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_check.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_common.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_detect.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_fig_moving.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_fig_transient.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_finalise.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_gccheck.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_link.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_mpc.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_sensitivity.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_shiftstack.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_transient.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
mo_vet.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
original.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
rename.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
restructure.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_common.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_dust.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_iso.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_limits.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_model.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_prep.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_profile.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_render_tail.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
sb_residual.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
solve.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
stack.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
starless.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
triptych.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
unzip.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00
verify_core.py Processing and analysis code for remote-telescope imaging sessions 2026-07-21 15:29:49 +01:00