You will find here some software and code snippets written by myself which might be of use for you.
Check also my GitHub Account : https://github.com/mkretlow
terra.py : simple python script to compute geocentric parameters rho*cos(phi'), rho*sin(phi') (the parallax constants given in the obscodes file from MPC) from geographic (long, lat=phi, alt) coordinates.
hartmann.py : compute dispersion relation for a prism (spectrograph) using three known lines according to the Hartmann formulae. In German.