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

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