source: trunk/FACT++/sofa/src/pn00a.c@ 18365

Last change on this file since 18365 was 18346, checked in by tbretz, 10 years ago
File size: 8.6 KB
Line 
1#include "sofa.h"
2
3void iauPn00a(double date1, double date2,
4 double *dpsi, double *deps, double *epsa,
5 double rb[3][3], double rp[3][3], double rbp[3][3],
6 double rn[3][3], double rbpn[3][3])
7/*
8** - - - - - - - - -
9** i a u P n 0 0 a
10** - - - - - - - - -
11**
12** Precession-nutation, IAU 2000A model: a multi-purpose function,
13** supporting classical (equinox-based) use directly and CIO-based
14** use indirectly.
15**
16** This function is part of the International Astronomical Union's
17** SOFA (Standards Of Fundamental Astronomy) software collection.
18**
19** Status: support function.
20**
21** Given:
22** date1,date2 double TT as a 2-part Julian Date (Note 1)
23**
24** Returned:
25** dpsi,deps double nutation (Note 2)
26** epsa double mean obliquity (Note 3)
27** rb double[3][3] frame bias matrix (Note 4)
28** rp double[3][3] precession matrix (Note 5)
29** rbp double[3][3] bias-precession matrix (Note 6)
30** rn double[3][3] nutation matrix (Note 7)
31** rbpn double[3][3] GCRS-to-true matrix (Notes 8,9)
32**
33** Notes:
34**
35** 1) The TT date date1+date2 is a Julian Date, apportioned in any
36** convenient way between the two arguments. For example,
37** JD(TT)=2450123.7 could be expressed in any of these ways,
38** among others:
39**
40** date1 date2
41**
42** 2450123.7 0.0 (JD method)
43** 2451545.0 -1421.3 (J2000 method)
44** 2400000.5 50123.2 (MJD method)
45** 2450123.5 0.2 (date & time method)
46**
47** The JD method is the most natural and convenient to use in
48** cases where the loss of several decimal digits of resolution
49** is acceptable. The J2000 method is best matched to the way
50** the argument is handled internally and will deliver the
51** optimum resolution. The MJD method and the date & time methods
52** are both good compromises between resolution and convenience.
53**
54** 2) The nutation components (luni-solar + planetary, IAU 2000A) in
55** longitude and obliquity are in radians and with respect to the
56** equinox and ecliptic of date. Free core nutation is omitted;
57** for the utmost accuracy, use the iauPn00 function, where the
58** nutation components are caller-specified. For faster but
59** slightly less accurate results, use the iauPn00b function.
60**
61** 3) The mean obliquity is consistent with the IAU 2000 precession.
62**
63** 4) The matrix rb transforms vectors from GCRS to J2000.0 mean
64** equator and equinox by applying frame bias.
65**
66** 5) The matrix rp transforms vectors from J2000.0 mean equator and
67** equinox to mean equator and equinox of date by applying
68** precession.
69**
70** 6) The matrix rbp transforms vectors from GCRS to mean equator and
71** equinox of date by applying frame bias then precession. It is
72** the product rp x rb.
73**
74** 7) The matrix rn transforms vectors from mean equator and equinox
75** of date to true equator and equinox of date by applying the
76** nutation (luni-solar + planetary).
77**
78** 8) The matrix rbpn transforms vectors from GCRS to true equator and
79** equinox of date. It is the product rn x rbp, applying frame
80** bias, precession and nutation in that order.
81**
82** 9) The X,Y,Z coordinates of the IAU 2000A Celestial Intermediate
83** Pole are elements (3,1-3) of the GCRS-to-true matrix,
84** i.e. rbpn[2][0-2].
85**
86** 10) It is permissible to re-use the same array in the returned
87** arguments. The arrays are filled in the order given.
88**
89** Called:
90** iauNut00a nutation, IAU 2000A
91** iauPn00 bias/precession/nutation results, IAU 2000
92**
93** Reference:
94**
95** Capitaine, N., Chapront, J., Lambert, S. and Wallace, P.,
96** "Expressions for the Celestial Intermediate Pole and Celestial
97** Ephemeris Origin consistent with the IAU 2000A precession-
98** nutation model", Astron.Astrophys. 400, 1145-1154 (2003)
99**
100** n.b. The celestial ephemeris origin (CEO) was renamed "celestial
101** intermediate origin" (CIO) by IAU 2006 Resolution 2.
102**
103** This revision: 2013 November 14
104**
105** SOFA release 2015-02-09
106**
107** Copyright (C) 2015 IAU SOFA Board. See notes at end.
108*/
109{
110/* Nutation. */
111 iauNut00a(date1, date2, dpsi, deps);
112
113/* Remaining results. */
114 iauPn00(date1, date2, *dpsi, *deps, epsa, rb, rp, rbp, rn, rbpn);
115
116 return;
117
118/*----------------------------------------------------------------------
119**
120** Copyright (C) 2015
121** Standards Of Fundamental Astronomy Board
122** of the International Astronomical Union.
123**
124** =====================
125** SOFA Software License
126** =====================
127**
128** NOTICE TO USER:
129**
130** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
131** CONDITIONS WHICH APPLY TO ITS USE.
132**
133** 1. The Software is owned by the IAU SOFA Board ("SOFA").
134**
135** 2. Permission is granted to anyone to use the SOFA software for any
136** purpose, including commercial applications, free of charge and
137** without payment of royalties, subject to the conditions and
138** restrictions listed below.
139**
140** 3. You (the user) may copy and distribute SOFA source code to others,
141** and use and adapt its code and algorithms in your own software,
142** on a world-wide, royalty-free basis. That portion of your
143** distribution that does not consist of intact and unchanged copies
144** of SOFA source code files is a "derived work" that must comply
145** with the following requirements:
146**
147** a) Your work shall be marked or carry a statement that it
148** (i) uses routines and computations derived by you from
149** software provided by SOFA under license to you; and
150** (ii) does not itself constitute software provided by and/or
151** endorsed by SOFA.
152**
153** b) The source code of your derived work must contain descriptions
154** of how the derived work is based upon, contains and/or differs
155** from the original SOFA software.
156**
157** c) The names of all routines in your derived work shall not
158** include the prefix "iau" or "sofa" or trivial modifications
159** thereof such as changes of case.
160**
161** d) The origin of the SOFA components of your derived work must
162** not be misrepresented; you must not claim that you wrote the
163** original software, nor file a patent application for SOFA
164** software or algorithms embedded in the SOFA software.
165**
166** e) These requirements must be reproduced intact in any source
167** distribution and shall apply to anyone to whom you have
168** granted a further right to modify the source code of your
169** derived work.
170**
171** Note that, as originally distributed, the SOFA software is
172** intended to be a definitive implementation of the IAU standards,
173** and consequently third-party modifications are discouraged. All
174** variations, no matter how minor, must be explicitly marked as
175** such, as explained above.
176**
177** 4. You shall not cause the SOFA software to be brought into
178** disrepute, either by misuse, or use for inappropriate tasks, or
179** by inappropriate modification.
180**
181** 5. The SOFA software is provided "as is" and SOFA makes no warranty
182** as to its use or performance. SOFA does not and cannot warrant
183** the performance or results which the user may obtain by using the
184** SOFA software. SOFA makes no warranties, express or implied, as
185** to non-infringement of third party rights, merchantability, or
186** fitness for any particular purpose. In no event will SOFA be
187** liable to the user for any consequential, incidental, or special
188** damages, including any lost profits or lost savings, even if a
189** SOFA representative has been advised of such damages, or for any
190** claim by any third party.
191**
192** 6. The provision of any version of the SOFA software under the terms
193** and conditions specified herein does not imply that future
194** versions will also be made available under the same terms and
195** conditions.
196*
197** In any published work or commercial product which uses the SOFA
198** software directly, acknowledgement (see www.iausofa.org) is
199** appreciated.
200**
201** Correspondence concerning SOFA software should be addressed as
202** follows:
203**
204** By email: sofa@ukho.gov.uk
205** By post: IAU SOFA Center
206** HM Nautical Almanac Office
207** UK Hydrographic Office
208** Admiralty Way, Taunton
209** Somerset, TA1 2DN
210** United Kingdom
211**
212**--------------------------------------------------------------------*/
213}
Note: See TracBrowser for help on using the repository browser.