sherlockpipe.observation_plan.planner.MoonIlluminationSeparationConstraint

class sherlockpipe.observation_plan.planner.MoonIlluminationSeparationConstraint(min_dist, max_dist)

Bases: Constraint

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

__init__(min_dist, max_dist)

Parameters

min_dist~astropy.units.Quantity

Minimum moon distance when moon illumination is 0

max_dist~astropy.units.Quantity

Maximum moon distance when moon illumination is 1

Methods

__init__(min_dist, max_dist)

Parameters min_dist ~astropy.units.Quantity Minimum moon distance when moon illumination is 0 max_dist ~astropy.units.Quantity Maximum moon distance when moon illumination is 1

compute_constraint(times, observer, targets)

Computes the observability of the moon given a minimum distance to the moon between self.min_dist (for illumination = 0) and self.max_dist (for illumination = 1) by interpolating an intermediate distance from those two values following a linear regression.

compute_constraint(times, observer, targets)

Computes the observability of the moon given a minimum distance to the moon between self.min_dist (for illumination = 0) and self.max_dist (for illumination = 1) by interpolating an intermediate distance from those two values following a linear regression.

Parameters:
  • times – the times to compute the constraint for

  • observer – the observer to compute the constraint for

  • targets – the list of targets to compute the constraint for

Returns:

the positive mask for target being observable for the given times and observer given the constraint is matched