David's astro utilities