AtNightConstraint

class astroplan.AtNightConstraint(max_solar_altitude=<Quantity 0.0 deg>, force_pressure_zero=True)[source]

Bases: astroplan.Constraint

Constrain the Sun to be below horizon.

Parameters:

max_solar_altitude : Quantity

Define “night” as when the sun is below max_solar_altitude. Default is zero degrees altitude.

force_pressure_zero : bool (optional)

Force the pressure to zero for solar altitude calculations. This avoids errors in the altitude of the Sun that can occur when the Sun is below the horizon and the corrections for atmospheric refraction return nonsense values. Default is True.

Methods Summary

Methods Documentation

compute_constraint(times, observer, targets)[source]
classmethod twilight_astronomical(**kwargs)[source]

Consider nighttime as time between astronomical twilights (-18 degrees).

classmethod twilight_civil(**kwargs)[source]

Consider nighttime as time between civil twilights (-6 degrees).

classmethod twilight_nautical(**kwargs)[source]

Consider nighttime as time between nautical twilights (-12 degrees).