How SPOCK works đź’ˇ

1/ How spock.long_term_scheduler works

The SPECULOOS target list was contructed as described in Sebastian et al. 2020 and include 1657 photometrically classified late-type dwarfs. These targets are divided in three distinct programs:

The final product delivered by SPOCK are be daily scripts (ACP plans) for the SSO, SNO and SAINT-EX observatories. Before producing such files, SPOCK identifies which targets are the most interesting to observe at a given time, for how long and with which telescope while respecting the strategy agreed for each observation program. To do so, SPOCK relies on several criteria:

SPOCK ranks all targets by multiplying these four criteria to compute the target’s priority, which is simply defined as:

$priority = (SNR_{JWST})^{a} * (obs_{cov})^{b} * (r_{comp})^{c} * p + coordination$,

where $a, b, c$ are specific orders that we apply to each criteria based on their importance (higher order for planet detectability than completion ratio for instance) such that $a>b>c$. We note that coordination is the only additive criterion as coordination of observations between observatories has no incidence on our ability to observe a target nor on its interest for exoplanet search, such that a target with lack of coordination potential should not be discarded.

Once the priority of each target for a given day is computed, SPOCK picks the one with the highest score as the first target. Then, a function checks the observability window of the target, that is to say if it is observable all night, from sun set to mid-night, from mid-night to sun rise or from after sun set to before sun rise. In the latter scenario the target is discarded and the first target becomes the one with the second highest priority score (and so on) in order to avoid having short observations sequences of a second and third targets before and after the rise and set times of the first target. Then, another SPOCK function checks that the selected first target respects the moon distance and elevation constraint, and if not, this target is discarded and SPOCK picks the next target in descending order of priority as the first target. For all telescopes the moon distance constraint is set to a minimum of $30^{\circ}$ and the elevation constraint is set to a minimum of $25^{\circ}$ for SSO, SNO, TS/TN but a minimum of $28^{\circ}$ for Saint-Ex (decided by the consortium). We note that AstelOS also has an intrinsic elevation lower limit of $21^{\circ}$. Finally, if the selected target fulfils all these conditions it is scheduled and if not observable all night a second target is picked via the same selection process. As I mentioned in the description of the observability criterion, we avoid to observe more than two SPECULOOS targets per night to maximise on-target time and phase coverage. The exposure time for each target is computed using the SPECULOOS exposure time calculator (ETC) which is integrated in SPOCK in the form of a python class. The SPECULOOS ETC allows to compute the exposure time that will enable to reach a certain level of flux in a certain filter on a target, given its spectral type and magnitude (in either J or V), given the technical characteristics of the SPECULOOS telescopes (mirror size, focal ratio and coating) and cameras (quantum efficiency, temperature, gain, pixel scale, dark current, binning, read out noise) and given a set of conditions (seeing, airmass, moon phase, observatory altitude).

2/ How spock.short_term_scheduler works

Besides the three core programs detailed above, SPECULOOS dedicates 20\% of its observing time to external programs (and even up to 50\% in the special case of SAINT-EX with CHEOPS follow-up). For this reason, I developed another mode on SPOCK that allows to schedule the observation of external targets either for a defined period of time, with a given ephemeris or as long as physically possible. In that regard, SPOCK distinguishes four distinct cases of external programs:

The aim of the short_term_scheduler is to modify existing plan by inserting a new block (corresponding to a special or follow-up target). Almost every night 1 ou 2 targets are observed per telescope. In that regards, the existing night_block can be either situation A or situation B, see below:

situationsAB

Situation A

If we consider we are in situation A, four different modifications can happend when the new block is inserted.

situation_A1b

situationA2

situationA3

situationA4

Situation B

If we consider we are in situation B, three different modifications can happend when the new block is inserted.

title

situationB2

situationB3

Note: If you wish to update the number of hours observe on the TRAPPIST telescopes as well you need to have acces to the **Hours_observation_TS_TN** spread sheet. For this contact Elsa Ducrot (elsa.ducrot@cea.fr)