1 |
< |
{ SCCSid "$SunId$ LBL" } |
2 |
< |
|
1 |
> |
{ RCSid: $Id$ } |
2 |
|
{ |
3 |
|
Source distribution coordinates (degrees). |
4 |
|
|
5 |
|
Theta is measured from the negative z-axis. |
6 |
|
Phi is measured from the positive x-axis (0 degrees) |
7 |
< |
towards the negative y-axis (90 degrees). |
7 |
> |
towards the positive y-axis (90 degrees). |
8 |
|
|
9 |
|
srcB_vert and srcB_horiz are angles |
10 |
|
used in type B photometry. |
39 |
|
cylcorr(v) = A1 * v / cylprojection; { cylinder correction } |
40 |
|
|
41 |
|
src_theta = Acos(Dz) / DEGREE; { 0-180 } |
42 |
< |
src_phi = mod( Atan2(Dy, -Dx) / DEGREE, 360 ); { 0-360 } |
42 |
> |
src_phi = mod( Atan2(-Dy, -Dx) / DEGREE, 360 ); { 0-360 } |
43 |
|
{ bilateral symmetry } |
44 |
|
src_phi2 = tri( src_phi, 180 ); { 0-180 } |
45 |
|
{ quadrilateral symmetry } |
46 |
|
src_phi4 = tri( src_phi, 90 ); { 0-90 } |
47 |
|
|
48 |
|
{ Type B photometry coordinates } |
49 |
< |
srcB_vert = atan( -Dx/Dz ) / DEGREE; |
50 |
< |
srcB_horiz = Asin(Dy) / DEGREE; |
49 |
> |
srcB_vert = atan2( -Dx, Dz ) / DEGREE; |
50 |
> |
srcB_horiz = atan2( Dy, Dz ) / DEGREE; |
51 |
|
{ w/ symmetry } |
52 |
|
srcB_vert2 = abs( srcB_vert ); |
53 |
|
srcB_horiz2 = abs( srcB_horiz ); |