Last change
on this file since 854 was 731, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #include "slalib.h"
|
---|
2 | #include "slamac.h"
|
---|
3 | void slaPrenut ( double epoch, double date, double rmatpn[3][3] )
|
---|
4 | /*
|
---|
5 | ** - - - - - - - - - -
|
---|
6 | ** s l a P r e n u t
|
---|
7 | ** - - - - - - - - - -
|
---|
8 | **
|
---|
9 | ** Form the matrix of precession and nutation (IAU 1976 / FK5)
|
---|
10 | **
|
---|
11 | ** (double precision)
|
---|
12 | **
|
---|
13 | ** Given:
|
---|
14 | ** epoch double Julian epoch for mean coordinates
|
---|
15 | ** date double Modified Julian Date (JD-2400000.5)
|
---|
16 | ** for true coordinates
|
---|
17 | **
|
---|
18 | **
|
---|
19 | ** Returned:
|
---|
20 | ** rmatpn double[3][3] combined precession/nutation matrix
|
---|
21 | **
|
---|
22 | ** Called: slaPrec, slaEpj, slaNut, slaDmxm
|
---|
23 | **
|
---|
24 | ** Notes:
|
---|
25 | **
|
---|
26 | ** 1) The epoch and date are TDB (loosely ET).
|
---|
27 | **
|
---|
28 | ** 2) The matrix is in the sense v(true) = rmatpn * v(mean) .
|
---|
29 | **
|
---|
30 | ** Last revision: 15 July 1993
|
---|
31 | **
|
---|
32 | ** Copyright P.T.Wallace. All rights reserved.
|
---|
33 | */
|
---|
34 | {
|
---|
35 | double rmatp[3][3], rmatn[3][3];
|
---|
36 |
|
---|
37 | /* Precession */
|
---|
38 | slaPrec ( epoch, slaEpj ( date ), rmatp );
|
---|
39 |
|
---|
40 | /* Nutation */
|
---|
41 | slaNut ( date, rmatn );
|
---|
42 |
|
---|
43 | /* Combine the matrices: pn = n x p */
|
---|
44 | slaDmxm ( rmatn, rmatp, rmatpn );
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.