Changeset 15083 for trunk/FACT++/scripts


Ignore:
Timestamp:
03/15/13 13:56:49 (12 years ago)
Author:
tbretz
Message:
Example for a schedule in the new style.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/schedule.js_template

    r14776 r15083  
    11'use strict';
    22
     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 },
    328
    4 // This list of objects is currently used by Main.js
    5 // to build up the nightly schedule for FACT.
    6 //
    7 // one can define some 'tasks' like: "STARTUP", "SHUTDOWN", "RATESCAN" and "DATA"
    8 // for the latter two, one should define a 'source' parameter as well.
    9 // This must be a string which is contained in FACTs list of sources.
    10 // The Ratescan can as well get ra and dec coordinates
    11 // In case one does not specify a task "DATA" is assumed.
    12 // example:
    13 /*
    14 var observations = [
    15     { date:"2013-01-09 21:05 UTC", task:'startup' },
    16     { date:"2013-01-09 21:20 UTC", task:'ratescan', source:'Dark Patch 3' },
    17     { date:"2013-01-09 21:21 UTC", source:'Crab'},
    18     { date:"2013-01-10 04:44 UTC", task:'ratescan', source:'Dark Patch 3'},
    19     { date:"2013-01-10 04:45 UTC", task:'data', source:'Mrk 421'},
    20     { date:"2013-01-10 04:44 UTC", task:'ratescan', ra:3.1415, dec:3.1415},
    21     { date:"2013-01-10 04:44 UTC", task:'shutdown'} ];
    22 */
     29 { date:"2013-03-14 20:05 UTC", measurements:
     30     [
     31      { task:'data', source:'Crab' }
     32     ]
     33 },
    2334
    24 // technical information.
    25 // the objects (i.e. the stuff in curly braces {})
    26 // in this list are used to create
    27 // instances of Observation-objects as defined in Object_class.js
    28 // so in case one is interested details of this interface, that is
    29 // the place to look.
     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 },
    3041
    31 var observations = [
    32     { date:"2013-01-13 19:05 UTC", task:'startup' },
    33     { date:"2013-01-13 19:10 UTC", task:'data', source:'Crab'},
    34     { date:"2013-01-13 23:50 UTC", task:'ratescan', source:'Dark Patch 3' },
    35     { date:"2013-01-14 00:00 UTC", task:'data', source:'Crab'},
    36     { date:"2013-01-14 04:30 UTC", task:'data', source:'Mrk 421'},
    37     { date:"2013-01-14 07:10 UTC", task:'shutdown'} ];
    38 //    { date:"2013-01-10 04:44 UTC", task:'ratescan', source:'Dark Patch 3'},
    39 //    { date:"2013-01-10 04:45 UTC", task:'data', source:'Mrk 421'},
    40 //    { date:"2013-01-10 04:44 UTC", task:'ratescan', ra:3.1415, dec:3.1415},
    41 //    { date:"2013-01-10 04:44 UTC", task:'shutdown'} ];
     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 },
    4248
     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 TracChangeset for help on using the changeset viewer.