across.tools.visibility.constraints.galactic_bulge
Classes
Constraint that avoids observing too close to the Galactic Bulge. |
Module Contents
- class GalacticBulgeConstraint(/, **data)[source]
Bases:
across.tools.visibility.constraints.base.ConstraintABCConstraint 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.
- __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_]