Last change
on this file since 13369 was 731, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
883 bytes
|
Line | |
---|
1 | #include "slalib.h"
|
---|
2 | #include "slamac.h"
|
---|
3 | void slaDtp2s ( double xi, double eta, double raz, double decz,
|
---|
4 | double *ra, double *dec )
|
---|
5 | /*
|
---|
6 | ** - - - - - - - - -
|
---|
7 | ** s l a D t p 2 s
|
---|
8 | ** - - - - - - - - -
|
---|
9 | **
|
---|
10 | ** Transform tangent plane coordinates into spherical.
|
---|
11 | **
|
---|
12 | ** (double precision)
|
---|
13 | **
|
---|
14 | ** Given:
|
---|
15 | ** xi,eta double tangent plane rectangular coordinates
|
---|
16 | ** raz,decz double spherical coordinates of tangent point
|
---|
17 | **
|
---|
18 | ** Returned:
|
---|
19 | ** *ra,*dec double spherical coordinates (0-2pi,+/-pi/2)
|
---|
20 | **
|
---|
21 | ** Called: slaDranrm
|
---|
22 | **
|
---|
23 | ** Last revision: 3 June 1995
|
---|
24 | **
|
---|
25 | ** Copyright P.T.Wallace. All rights reserved.
|
---|
26 | */
|
---|
27 | {
|
---|
28 | double sdecz, cdecz, denom;
|
---|
29 |
|
---|
30 | sdecz = sin ( decz );
|
---|
31 | cdecz = cos ( decz );
|
---|
32 | denom = cdecz - eta * sdecz;
|
---|
33 | *ra = slaDranrm ( atan2 ( xi, denom ) + raz );
|
---|
34 | *dec = atan2 ( sdecz + eta * cdecz, sqrt ( xi * xi + denom * denom ) );
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.