uvex_transients.surveys.footprints.utils.galactic_box_MOC#

uvex_transients.surveys.footprints.utils.galactic_box_MOC(*, max_order: int, l_min: float, l_max: float, b_min: float, b_max: float, n_edge: int = 180) → MOC[source]#

Build a box bounded by constant Galactic longitude and latitude.

~mocpy.MOC.from_zone always draws ICRS edges, so it cannot bound a Galactic box. This builds a polygon instead, sampling each constant-latitude edge (a small circle) with n_edge points, enough to keep the chord error far below one cell at max_order.

Parameters:
  • max_order (int) – MOC resolution (HEALPix order).

  • l_min (float) – Galactic longitude range, in degrees.

  • l_max (float) – Galactic longitude range, in degrees.

  • b_min (float) – Galactic latitude range, in degrees.

  • b_max (float) – Galactic latitude range, in degrees.

  • n_edge (int, optional) – Points sampled along each constant-latitude edge. Default 180.

Returns:

The box.

Return type:

mocpy.MOC