MoonSeparationConstraint

class astroplan.MoonSeparationConstraint(min=None, max=None, ephemeris=None)[source]

Bases: Constraint

Constrain the distance between the Earth’s moon and some targets.

Parameters
minQuantity or None (optional)

Minimum acceptable separation between moon and target (inclusive). None indicates no limit.

maxQuantity or None (optional)

Maximum acceptable separation between moon and target (inclusive). None indicates no limit.

ephemerisstr, optional

Ephemeris to use. If not given, use the one set with astropy.coordinates.solar_system_ephemeris.set (which is set to ‘builtin’ by default).

Methods Summary

compute_constraint(times, observer, targets)

Actually do the real work of computing the constraint.

Methods Documentation

compute_constraint(times, observer, targets)[source]

Actually do the real work of computing the constraint. Subclasses override this.

Parameters
timesTime

The times to compute the constraint

observerObserver

the observaton location from which to apply the constraints

targetssequence of Target

The targets on which to apply the constraints.

Returns
constraint_result2D array of float or bool

The constraints, with targets along the first index and times along the second.