Library of astronomy related routines