Changeset 18829 for trunk/FACT++/scripts
- Timestamp:
- 04/14/17 17:21:13 (8 years ago)
- Location:
- trunk/FACT++/scripts/doc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/doc/Local.js
r14704 r18829 18 18 * Zenith angle in degree (Zenith=0deg) 19 19 * 20 * @param {Date} [time] 21 * Time for which the coordinates are valid. 22 * The order of time and observatory is arbitrary. 23 * 24 * @param {String} [observatory] 25 * Observatory location for which the coordinates are valid. 26 * The order of time and observatory is arbitrary. 27 * 28 * 20 29 * @param {Number} azimuth 21 30 * Azimuth angle in degree (North=0deg, East=90deg) 22 31 * 23 32 * @example 33 * var date = new Date("2012-10-25 16:30 GMT"); // Date in UTC 24 34 * var local = new Local(12, 45); 25 * var sky = local.toSky(); 35 * var local = new Local(12, 45, date); 36 * var local = new Local(12, 45, "ORM"); 37 * var local = new Local(12, 45, "SPM", date); 38 * var local = new Local(12, 45, date, "HAWC"); 39 * var sky = local.toSky(); 40 * var sky = local.toSky(date); 41 * var sky = local.toSky("ORM"); 42 * var sky = local.toSky("HAWC", date); 43 * var sky = local.toSky(date, "SPM"); 26 44 * 27 * @author <a href="mailto:t homas.bretz@epfl.ch">Thomas Bretz</a>45 * @author <a href="mailto:tbretz@physik.rwth-aachen.de">Thomas Bretz</a> 28 46 * 29 47 */ … … 68 86 * 69 87 * @param {Date} [time=new Date()] 70 * Reference time for the conversion 88 * Time for which the coordinates will be tranfromed. 89 * The order of time and observatory is arbitrary. 90 * If none is given, the value given in the constructor is used. 91 * If none was given there, the default is used. 92 * 93 * @param {String} [observatory='ORM'] 94 * Observatory location as defined in nova.h as a string for which 95 * the coordinate conversion is done. 96 * The order of time and observatory is arbitrary. 97 * If none is given, the value given in the constructor is used. 98 * If none was given there, the default is used. 71 99 * 72 100 * @returns {Sky} 73 * A Sky object with the converted coordinates and74 * the corresponding time.101 * A Sky object with the converted coordinates plus a 102 * a correspnding object local of type {Local}. 75 103 */ 76 104 this.toSky = function() { /* [native code] */ } -
trunk/FACT++/scripts/doc/Moon.js
r14696 r18829 22 22 * 23 23 * @example 24 * var date = new Date("2012-10-25 16:30 GMT"); // Date in UTC 25 * var moon = new Moon(date); 24 26 * var moon = new Moon(); 25 27 * var local = moon.toLocal(); 28 * var local = moon.toLocal("HAWC"); 26 29 * 27 * @author <a href="mailto:t homas.bretz@epfl.ch">Thomas Bretz</a>30 * @author <a href="mailto:tbretz@physik.rwth-aachen.de">Thomas Bretz</a> 28 31 */ 29 32 function Moon(time) … … 61 64 * The conversion is done using libnova's ln_get_hrz_from_equ. 62 65 * 66 * @param {String} [observatory='ORM'] 67 * Observatory location as defined in nova.h as a string. The default 68 * is the FACT site ('ORM'). 69 * 63 70 * @returns {Local} 64 71 * A Local object with the converted coordinates and 65 * the corresponding time .72 * the corresponding time and observatory. 66 73 */ 67 74 this.toLocal = function() { /* [native code] */ } … … 100 107 * is converted to UTC and the times are calculated such that the 101 108 * Date (yy/mm/dd) is identical for all returned values. 109 * The order of time and observatory is arbitrary. 110 * 111 * @param {String} [observatory='ORM'] 112 * Observatory location as defined in nova.h as a string. The default 113 * is the FACT site ('ORM'). The order of time and observatory is 114 * arbitrary. 102 115 * 103 116 * @type {Object} … … 105 118 * @returns 106 119 * An object with the following properties is returned: time {Date} 107 * the provided time; rise, transit, set {Date} times of rise, set and 108 * transit; isUp {Boolean} whether the moon is above or below horizon 120 * the provided time; observatory {Date} the provided observatory location; 121 * rise, transit, set {Date} times of rise, set and transit; 122 * isUp {Boolean} whether the moon is above or below horizon 109 123 * at the provided time. If the moon does not rise or set, the properties 110 124 * rise, transit and set will be undefined. … … 112 126 * @example 113 127 * var date = new Date("2012-10-25 16:30 GMT"); // Date in UTC 128 * console.out(JSON.stringify(Moon.horizon()); 114 129 * console.out(JSON.stringify(Moon.horizon(date)); 130 * console.out(JSON.stringify(Moon.horizon(date, "SPM")); 131 * console.out(JSON.stringify(Moon.horizon("ORM, date); 115 132 */ 116 133 Moon.horizon = function() { /* [native code] */ } -
trunk/FACT++/scripts/doc/Sky.js
r14704 r18829 24 24 * var sky = new Sky(12, 45); 25 25 * var local = sky.toLocal(); 26 * var date = new Date("2012-10-25 16:30 GMT"); // Date in UTC 27 * var local = sky.toLocal(date); 28 * var local = sky.toLocal("ORM"); 29 * var local = sky.toLocal(date, "HAWC"); 30 * var local = sky.toLocal("SPM", date); 26 31 * 27 * @author <a href="mailto:t homas.bretz@epfl.ch">Thomas Bretz</a>32 * @author <a href="mailto:tbretz@physik.rwth-aachen.de">Thomas Bretz</a> 28 33 * 29 34 */ … … 62 67 * 63 68 * @param {Date} [time=new Date()] 64 * Reference time for the converstion. 69 * Time for which the coordinates will be tranfromed. 70 * The order of time and observatory is arbitrary. 71 * 72 * @param {String} [observatory='ORM'] 73 * Observatory location as defined in nova.h as a string for which 74 * the coordinate conversion is done The default is the 75 * FACT site ('ORM'). The order of time and observatory is arbitrary. 65 76 * 66 77 * @type Local 67 78 * 68 79 * @returns 69 * A Local object with the converted coordinates and70 * the conversion time .80 * A Local object with the converted coordinates, 81 * the conversion time and the observatory location. 71 82 */ 72 83 this.toLocal = function() { /* [native code] */ } -
trunk/FACT++/scripts/doc/Sun.js
r15358 r18829 10 10 * Namespace for functions returning astrometry information about the Sun. 11 11 * 12 * @author <a href="mailto:t homas.bretz@epfl.ch">Thomas Bretz</a>12 * @author <a href="mailto:tbretz@physik.rwth-aachen.de">Thomas Bretz</a> 13 13 */ 14 14 var Sun = { }; … … 33 33 * the Sun's disk at horizon is chosen (~-0.8deg). 34 34 * 35 35 * @param {Date} [time=new Date()] 36 36 * Date for which the times should be calculated. Note that the date 37 37 * is converted to UTC and the times are calculated such that the 38 38 * Date (yy/mm/dd) is identical for all returned values. 39 * The order of time and observatory is arbitrary. 40 * 41 * @param {String} [observatory='ORM'] 42 * Observatory location as defined in nova.h as a string. The default 43 * is the FACT site ('ORM'). The order of time and observatory is 44 * arbitrary. 39 45 * 40 46 * @type {Object} … … 55 61 * console.out(JSON.stringify(Sun.horizon("astro")); 56 62 * console.out(JSON.stringify(Sun.horizon(-12, date); // nautical 63 * console.out(JSON.stringify(Sun.horizon(-12, "SPM"); 64 * console.out(JSON.stringify(Sun.horizon(-12, "HAWC", date); 65 * console.out(JSON.stringify(Sun.horizon(-12, date, "ORM"); 57 66 */ 58 67 Sun.horizon = function() { /* [native code] */ }
Note:
See TracChangeset
for help on using the changeset viewer.