software to manage complicated the spherical geometries of galaxy surveys using a set of spherical polygons