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