uvex_transients.surveys.footprints.utils.union_of_galactic_boxes_MOC#

uvex_transients.surveys.footprints.utils.union_of_galactic_boxes_MOC(*, max_order: int, boxes: Iterable[dict]) → MOC[source]#

Registry-contract generator for the union of several galactic_box_MOC boxes.

Parameters:
  • max_order (int) – Forwarded to galactic_box_MOC.

  • boxes (Iterable of dict) – One dict of galactic_box_MOC keyword arguments (l_min, l_max, b_min, b_max, and optionally n_edge) per box.

Returns:

The union of every box.

Return type:

mocpy.MOC

Raises:

ValueError – If boxes is empty.