across.tools.visibility.constraints.galactic_bulge

Classes

GalacticBulgeConstraint

Constraint that avoids observing too close to the Galactic Bulge.

Module Contents

class GalacticBulgeConstraint(/, **data)[source]

Bases: across.tools.visibility.constraints.base.ConstraintABC

Constraint that avoids observing too close to the Galactic Bulge.

The Galactic Bulge is a crowded region with extremely high stellar density, making it difficult to observe individual sources. This constraint ensures observations avoid this region.

Parameters:

min_separation (float) – Minimum angular separation (degrees) required from the Galactic Bulge. Observations closer than this will be constrained.

__call__(time, ephemeris, coordinate)[source]

Checks if the coordinate is too close to the Galactic Bulge.

name: Literal[across.tools.core.enums.ConstraintType.GALACTIC_BULGE][source]
short_name: Literal['Galactic Bulge'] = 'Galactic Bulge'[source]
min_separation: float = None[source]
__call__(time, ephemeris, coordinate)[source]

Check if the coordinate is too close to the Galactic Bulge.

Parameters:
  • time (Time) – The time (not used for galactic coordinates).

  • ephemeris (Ephemeris) – The ephemeris (not used for galactic coordinates).

  • coordinate (SkyCoord) – The coordinate to check.

Returns:

Boolean array where True indicates the coordinate violates the constraint (is too close to the Galactic Bulge).

Return type:

npt.NDArray[np.bool_]