This repository provides a FastAPI plate-solving service for Arcsecond, based on astrometry.net indexes and Neuromorphics Systems' astrometry Python package.
docker run --rm \
-p 127.0.0.1:8900:8900 \
-v arcsecond_astrometry_cache:/data/astrometry \
arcsecond-service-platesolver-astrometry:latestpython -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
python -m arcsecond_service_platesolver.main- Install Python 3.12+.
- Install Microsoft C++ Build Tools (Desktop development with C++).
- Install Rust (
rustup), becauseastrometrymay need a local native build when no matching wheel is available. - This project pins Windows installs to a Windows-compatible astrometry fork commit from
arcsecond-io/astrometry.
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install .
python -m arcsecond_service_platesolver.mainASTROMETRY_CACHE_DIR: explicit cache directory path (highest priority).ASTROMETRY_DATA_ROOT: root directory used to createastrometry_cacheunder it.HOST: bind host (default0.0.0.0).PORT: bind port (default8900).LOG_LEVEL: Uvicorn log level (defaultinfo).
Default cache path behavior:
- If
ASTROMETRY_CACHE_DIRis set, it is used directly. - On Windows, defaults to
%LOCALAPPDATA%\Arcsecond\astrometry_cache(or%APPDATA%fallback). - On Unix-like systems, prefers
/data/astrometry_cachewhen writable, otherwise falls back to$XDG_CACHE_HOME/arcsecond/astrometry_cacheor~/.cache/arcsecond/astrometry_cache. - If the selected location is not writable, falls back to the OS temp directory.