A Python implementation of the Solar Position Algorithm (SPA) for PyTorch.
Simple install using pip
python3.11 -m venv .venv
source .venv/bin/activate
pip install git+https://github.com/leaver2000/torch_spa@masterTimeseries comparison of the NOAA Solar Calculator and torch_spa
Globe plot of the solar position algorithm

