source: trunk/FACT++/scripts/doc/Local.js@ 14697

Last change on this file since 14697 was 14675, checked in by tbretz, 12 years ago
Made sure that nobody tried to start a docu script.
File size: 2.6 KB
Line 
1throw new Error("Description for built in functions. Must not be included!");
2/**
3 * @fileOverview
4 * Documentation of Local class built into dimctrl.
5 */
6
7/**
8 * @class
9 *
10 * A set of coordinates on the celestial sphere.
11 *
12 * The class stores a set of coordinates on the celestial, i.e. local,
13 * sky. If the data was the result of a coordinate transformation, the
14 * corresponding time is stored in addition. Functions to convert to sky
15 * coordinates and to measure distances on th sky are included.
16 *
17 * @param {Number} zenithDistance
18 * Zenith angle in degree (Zenith=0deg)
19 *
20 * @param {Number} azimuth
21 * Azimuth angle in degree (North=0deg, East=90deg)
22 *
23 * @example
24 * var local = new Local(12, 45);
25 * var sky = local.toSky();
26 *
27 * @author <a href="mailto:thomas.bretz@epfl.ch">Thomas Bretz</a>
28 *
29 */
30function Local(zenithDistance, azimuth)
31{
32 /**
33 * Zenith distance in degree (Zenith=0deg)
34 *
35 * @constant
36 *
37 * @type Number
38 */
39 this.zd = zenithDistance;
40
41 /**
42 * Azimuth in degree (North=0deg, East=90deg)
43 *
44 * @constant
45 *
46 * @type Number
47 */
48 this.az = azimuth;
49
50 /**
51 * Time corresponding to ra and dec if they are the result of
52 * a conversion.
53 *
54 * @constant
55 * @default undefined
56 *
57 * @type Date
58 */
59 this.time = undefined;
60
61
62 /**
63 * Convert celestial coordinats to sky coordinates.
64 * As observatory location the FACT telescope is assumed.
65 * The conversion is done using libnova's ln_get_equ_from_hrz.
66 *
67 * @constant
68 *
69 * @param {Date} [time=new Date()]
70 * Reference time for the conversion
71 *
72 * @returns {Sky}
73 * A Sky object with the converted coordinates and
74 * the corresponding time.
75 */
76 this.toSky = function() { /* [native code] */ }
77
78 /**
79 * Calculate the distance between two celestial sky positions.
80 *
81 * The distance between this object and the provided celestial
82 * position on the sky is calculated. The returned value
83 * is an absolute distance (angle) between the two positions.
84 *
85 * @constant
86 *
87 * @param {Local} local
88 * Celestial coordinates to which the distance on the sky
89 * should be calculated. In principle every object with
90 * the properties 'zd' and 'az' can be provided.
91 * @param {Number} local.zd Zenith distance of the object
92 * @param {Number} local.az Azimuth of the object
93 *
94 * @returns {Number}
95 * Absolute distance between both positions on the sky in degrees.
96 */
97 this.dist = function() { /* [native code] */}
98}
Note: See TracBrowser for help on using the repository browser.