LookAheadDdfBasisFunction

class rubin_sim.scheduler.basis_functions.LookAheadDdfBasisFunction(frac_total, aggressive_fraction, time_needed=30.0, RA=0.0, ha_limits=None, survey_name='', time_jump=44.0, sun_alt_limit=-18.0)

Bases: BaseBasisFunction

Look into the future to decide if it’s a good time to observe or block.

Parameters:
frac_totalfloat

The fraction of total observations that can be of this survey

aggressive_fractionfloat

If the fraction of observations drops below ths value, be more aggressive in scheduling. e.g., do not wait for conditions to improve, execute as soon as possible.

time_neededfloat (30.)

Estimate of the amount of time needed to execute DDF sequence (minutes).

RAfloat (0.)

The RA of the DDF

ha_limitslist of lists (None)

limits for what hour angles are acceptable (hours). e.g., to give 4 hour window around HA=0, ha_limits=[[22,24], [0,2]]

survey_namestr (‘’)

The name of the survey

time_jumpfloat (44.)

The amount of time to assume will jump ahead if another survey executes (minutes)

sun_alt_limitfloat (-18.)

The limit to assume twilight starts (degrees)

Methods Summary

check_feasibility(conditions)

If there is logic to decide if something is feasible (e.g., only if moon is down), it can be calculated here.

Methods Documentation

check_feasibility(conditions)

If there is logic to decide if something is feasible (e.g., only if moon is down), it can be calculated here.

Helps prevent full __call__ from being called more than needed.