source: trunk/FACT++/scripts/schedule.js_template@ 19926

Last change on this file since 19926 was 15083, checked in by tbretz, 12 years ago
Example for a schedule in the new style.
File size: 1.7 KB
Line 
1'use strict';
2
3// This list contains the schedule for one or several nights.
4// The schedule consists of observations and measurements.
5// An observation is compiled by several measurements.
6// Most measurements (like RATESCAN) cannot be interrupted, but
7// will be finished at some point (like a single run).
8// A measurement which takes until the next observation is started is DATA.
9// Whenever a measurement is finished and the start time of a new
10// observation has passed, the new observation is started.
11// In an observation it makes only sense that the last measurment
12// is data. All previous measurement just take as much time as they take.
13// Note that after each measurement, a new observation might be started
14// if the start time of the new observation has passed. Thus there is,
15// strictly speaking, no gurantee that any other than the first measurement
16// of one observation will ever be excuted.
17// A list of observations must end with a shutdown.
18//
19// here is an example:
20//
21var observations =
22[
23 { date:"2013-03-14 19:55 UTC", measurements:
24 [
25 { task:'startup' }
26 ]
27 },
28
29 { date:"2013-03-14 20:05 UTC", measurements:
30 [
31 { task:'data', source:'Crab' }
32 ]
33 },
34
35 { date:"2013-03-14 23:58 UTC", measurements:
36 [
37 { task:'ratescan', ra:9.438888, dec:29.0 },
38 { task:'data', source:'Crab' }
39 ]
40 },
41
42 { date:"2013-03-15 00:45 UTC", measurements:
43 [
44 { task:'ratescan', ra:11.26888888, dec:28.4477777 },
45 { task:'data', source:'Mrk 421'}
46 ]
47 },
48
49 { date:"2013-03-15 03:30 UTC", measurements:
50 [
51 { task:'data', source:'Mrk 501'}
52 ]
53 },
54
55 { date:"2013-03-15 06:38 UTC", measurements:
56 [
57 { task:'shutdown'}
58 ]
59 },
60];
Note: See TracBrowser for help on using the repository browser.