Skip to content
This repository was archived by the owner on Nov 14, 2026. It is now read-only.
mates14Public archive

About

Pipeline for a wide-field sky monitor

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

makak

Pipeline for a wide-field sky monitor: Makak, the fixed wide-field camera (mi0315, Moravian G1-2000, ~57"/px, 10 s frames every 11.5 s) at Ondřejov pointing at the north celestial pole region, run by RTS2 on morpheus.

This repository is archived. It is "makak-reloaded" (January 2025), the second Makak pipeline. Since 2026-10-26 Makak is processed by asarina with pyrt, like the D50 and SBT telescopes. Nothing here is in use.

Where Makak is now

Everything Makak-specific is in the asarina repository, directory makak/; its README.md is the full description. What this repository did is done there by:

here (makak-reloaded) now (asarina + pyrt)
makak-crawl.py: watch for new frames asarina-watch --latest-only (makak/systemd/makak-asarina.service)
makak-reloaded.py: dark, solve, dophot per frame asarina-imgproc --makak with makak/etc/asarina.conf
smart_dark.py: dark model by temperature asarina's smart dark (smart_dark in the config, the model makak-dark-response.npy)
reprocess-script*.py: archive reprocessing asarina-reprocess (makak/bin/makak-reprocess.sh, makak/etc/reprocess-zeus.ini)
makak-plot.sh: the nightly graph makak/web/makak-plot.sh driven by makak/web/makak-web (makak-web.service)
— sky map (asarina-skymap --profile makak) and its HiPS (makak/bin/makak-hips.sh)

The products are the same as here: an ECSV per frame (ecsv/YYYYMMDD/), the nightly summary nght/mrYYYYMMDD.dat (and ...d.dat for dark frames), and the graph on lascaux (public_html/makak/makak.png, mrpng/, dat/). The asarina zeropoint is ~0.29 mag above this pipeline's (Gaia G instead of Sloan r).

Getting Makak working with asarina

On the machine with the camera (morpheus: Debian, RTS2 writing to /images):

  1. Install pyrt and asarina from their main branches as editable installs, e.g. git clone both into ~/src and in each run pip install -e . --break-system-packages --no-deps. They need astrometry.net (solve-field with index files for a wide field), SExtractor, gnuplot and python3-astropy-healpix (apt). Update pyrt and asarina together: asarina calls pyrt's command-line tools and may use options only a newer pyrt has (in 2026-11 an asarina passing -K to an older pyrt-field-solve failed every field-solve for nine days).
  2. Copy the deployment: in the asarina repository, makak/deploy.sh files puts makak/ (configs, scripts, units, dophot model) into ~/asarina+makak, the service's runtime directory. The dark model data/makak-dark-response.npy (48 MB) is not in git: copy it from an existing installation (it is the same file as makak-dark-response.npy of this pipeline).
  3. Install and start the units (root): makak/deploy.sh units copies makak-asarina.service and makak-web.service to /etc/systemd/system and restarts them. The first frame is field-solved; every accepted solution becomes the next frame's starting guess (state/mi0315.wcs).
  4. The graph uploads to lascaux with a key that lascaux allows only rrsync -wo ~/public_html/makak and reads the D50 meteo log from lascaux50 with one allowed only rrsync -ro /var/log.

After moving the camera no configuration changes: a frame that does not fit the last solution is field-solved. Still check the first night afterwards (matched stars per frame, IDNUM, in nght/mr*.dat, normally ~250-300): a guess that fits poorly can be accepted, as on 2026-11-07. Nights processed badly are redone with makak/bin/makak-renight.sh.

What is in this repository

  • makak-crawl.py, makak-reloaded.py, smart_dark.py: the realtime pipeline (January 2025, replaced 2026-10-26).
  • reprocess-script.py, reprocess-script1.py, reprocess-script2.py: the archive reprocessing of 2025, run on zeus by tools/do_reprocess.sh.
  • makak-plot.sh: the nightly graph with the fitted temperature and noise.
  • tools/cloud-match.py, tools/parameter_extractor.py: analysis of the nightly summaries (zeropoint against cloudiness; polynomial fits of the photometric parameters with Sun and Moon context). Copies are kept in asarina's makak/dev/.
  • tools/do_reprocess_new.sh: the first run of a night through asarina-imgproc (2026), the start of the transition.

About

Pipeline for a wide-field sky monitor

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages