https://dev.aao.org.au/adacs-odc/freeman-2022b/-/blob/github-driftscanning/new_stuff/DriftScanning/GenerateCatalogue.py?ref_type=heads#L460-479