Index: /trunk/FACT++/scripts/schedule.js_template
===================================================================
--- /trunk/FACT++/scripts/schedule.js_template	(revision 15082)
+++ /trunk/FACT++/scripts/schedule.js_template	(revision 15083)
@@ -1,42 +1,60 @@
 'use strict';
 
+// This list contains the schedule for one or several nights.
+// The schedule consists of observations and measurements.
+// An observation is compiled by several measurements.
+// Most measurements (like RATESCAN) cannot be interrupted, but
+// will be finished at some point (like a single run).
+// A measurement which takes until the next observation is started is DATA.
+// Whenever a measurement is finished and the start time of a new
+// observation has passed, the new observation is started.
+// In an observation it makes only sense that the last measurment
+// is data. All previous measurement just take as much time as they take.
+// Note that after each measurement, a new observation might be started
+// if the start time of the new observation has passed. Thus there is,
+// strictly speaking, no gurantee that any other than the first measurement
+// of one observation will ever be excuted.
+// A list of observations must end with a shutdown.
+//
+// here is an example:
+//
+var observations =
+[
+ { date:"2013-03-14 19:55 UTC", measurements:
+     [
+      { task:'startup' }
+     ]
+ },
 
-// This list of objects is currently used by Main.js
-// to build up the nightly schedule for FACT.
-//
-// one can define some 'tasks' like: "STARTUP", "SHUTDOWN", "RATESCAN" and "DATA"
-// for the latter two, one should define a 'source' parameter as well.
-// This must be a string which is contained in FACTs list of sources.
-// The Ratescan can as well get ra and dec coordinates
-// In case one does not specify a task "DATA" is assumed.
-// example:
-/*
-var observations = [
-    { date:"2013-01-09 21:05 UTC", task:'startup' },
-    { date:"2013-01-09 21:20 UTC", task:'ratescan', source:'Dark Patch 3' },
-    { date:"2013-01-09 21:21 UTC", source:'Crab'},
-    { date:"2013-01-10 04:44 UTC", task:'ratescan', source:'Dark Patch 3'},
-    { date:"2013-01-10 04:45 UTC", task:'data', source:'Mrk 421'},
-    { date:"2013-01-10 04:44 UTC", task:'ratescan', ra:3.1415, dec:3.1415},
-    { date:"2013-01-10 04:44 UTC", task:'shutdown'} ];
-*/
+ { date:"2013-03-14 20:05 UTC", measurements:
+     [
+      { task:'data', source:'Crab' }
+     ]
+ },
 
-// technical information. 
-// the objects (i.e. the stuff in curly braces {}) 
-// in this list are used to create 
-// instances of Observation-objects as defined in Object_class.js
-// so in case one is interested details of this interface, that is 
-// the place to look.
+ { date:"2013-03-14 23:58 UTC", measurements:
+     [
+      { task:'ratescan', ra:9.438888, dec:29.0 },
+      { task:'data',     source:'Crab'        }
+     ]
+ },
 
-var observations = [
-    { date:"2013-01-13 19:05 UTC", task:'startup' },
-    { date:"2013-01-13 19:10 UTC", task:'data', source:'Crab'},
-    { date:"2013-01-13 23:50 UTC", task:'ratescan', source:'Dark Patch 3' },
-    { date:"2013-01-14 00:00 UTC", task:'data', source:'Crab'},
-    { date:"2013-01-14 04:30 UTC", task:'data', source:'Mrk 421'},
-    { date:"2013-01-14 07:10 UTC", task:'shutdown'} ];
-//    { date:"2013-01-10 04:44 UTC", task:'ratescan', source:'Dark Patch 3'},
-//    { date:"2013-01-10 04:45 UTC", task:'data', source:'Mrk 421'},
-//    { date:"2013-01-10 04:44 UTC", task:'ratescan', ra:3.1415, dec:3.1415},
-//    { date:"2013-01-10 04:44 UTC", task:'shutdown'} ];
+ { date:"2013-03-15 00:45 UTC", measurements:
+     [
+      { task:'ratescan', ra:11.26888888, dec:28.4477777 },
+      { task:'data',     source:'Mrk 421'}
+     ]
+ },
 
+ { date:"2013-03-15 03:30 UTC", measurements:
+     [
+      { task:'data', source:'Mrk 501'}
+     ]
+ },
+
+ { date:"2013-03-15 06:38 UTC", measurements:
+     [
+      { task:'shutdown'}
+     ]
+ },
+];
