source: trunk/FACT++/sofa/src/faom03.c@ 18375

Last change on this file since 18375 was 18346, checked in by tbretz, 11 years ago
File size: 5.7 KB
Line 
1#include "sofa.h"
2
3double iauFaom03(double t)
4/*
5** - - - - - - - - - -
6** i a u F a o m 0 3
7** - - - - - - - - - -
8**
9** Fundamental argument, IERS Conventions (2003):
10** mean longitude of the Moon's ascending node.
11**
12** This function is part of the International Astronomical Union's
13** SOFA (Standards Of Fundamental Astronomy) software collection.
14**
15** Status: canonical model.
16**
17** Given:
18** t double TDB, Julian centuries since J2000.0 (Note 1)
19**
20** Returned (function value):
21** double Omega, radians (Note 2)
22**
23** Notes:
24**
25** 1) Though t is strictly TDB, it is usually more convenient to use
26** TT, which makes no significant difference.
27**
28** 2) The expression used is as adopted in IERS Conventions (2003) and
29** is from Simon et al. (1994).
30**
31** References:
32**
33** McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003),
34** IERS Technical Note No. 32, BKG (2004)
35**
36** Simon, J.-L., Bretagnon, P., Chapront, J., Chapront-Touze, M.,
37** Francou, G., Laskar, J. 1994, Astron.Astrophys. 282, 663-683
38**
39** This revision: 2013 June 18
40**
41** SOFA release 2015-02-09
42**
43** Copyright (C) 2015 IAU SOFA Board. See notes at end.
44*/
45{
46 double a;
47
48/* Mean longitude of the Moon's ascending node */
49/* (IERS Conventions 2003). */
50 a = fmod( 450160.398036 +
51 t * ( - 6962890.5431 +
52 t * ( 7.4722 +
53 t * ( 0.007702 +
54 t * ( - 0.00005939 ) ) ) ), TURNAS ) * DAS2R;
55
56 return a;
57
58/*----------------------------------------------------------------------
59**
60** Copyright (C) 2015
61** Standards Of Fundamental Astronomy Board
62** of the International Astronomical Union.
63**
64** =====================
65** SOFA Software License
66** =====================
67**
68** NOTICE TO USER:
69**
70** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
71** CONDITIONS WHICH APPLY TO ITS USE.
72**
73** 1. The Software is owned by the IAU SOFA Board ("SOFA").
74**
75** 2. Permission is granted to anyone to use the SOFA software for any
76** purpose, including commercial applications, free of charge and
77** without payment of royalties, subject to the conditions and
78** restrictions listed below.
79**
80** 3. You (the user) may copy and distribute SOFA source code to others,
81** and use and adapt its code and algorithms in your own software,
82** on a world-wide, royalty-free basis. That portion of your
83** distribution that does not consist of intact and unchanged copies
84** of SOFA source code files is a "derived work" that must comply
85** with the following requirements:
86**
87** a) Your work shall be marked or carry a statement that it
88** (i) uses routines and computations derived by you from
89** software provided by SOFA under license to you; and
90** (ii) does not itself constitute software provided by and/or
91** endorsed by SOFA.
92**
93** b) The source code of your derived work must contain descriptions
94** of how the derived work is based upon, contains and/or differs
95** from the original SOFA software.
96**
97** c) The names of all routines in your derived work shall not
98** include the prefix "iau" or "sofa" or trivial modifications
99** thereof such as changes of case.
100**
101** d) The origin of the SOFA components of your derived work must
102** not be misrepresented; you must not claim that you wrote the
103** original software, nor file a patent application for SOFA
104** software or algorithms embedded in the SOFA software.
105**
106** e) These requirements must be reproduced intact in any source
107** distribution and shall apply to anyone to whom you have
108** granted a further right to modify the source code of your
109** derived work.
110**
111** Note that, as originally distributed, the SOFA software is
112** intended to be a definitive implementation of the IAU standards,
113** and consequently third-party modifications are discouraged. All
114** variations, no matter how minor, must be explicitly marked as
115** such, as explained above.
116**
117** 4. You shall not cause the SOFA software to be brought into
118** disrepute, either by misuse, or use for inappropriate tasks, or
119** by inappropriate modification.
120**
121** 5. The SOFA software is provided "as is" and SOFA makes no warranty
122** as to its use or performance. SOFA does not and cannot warrant
123** the performance or results which the user may obtain by using the
124** SOFA software. SOFA makes no warranties, express or implied, as
125** to non-infringement of third party rights, merchantability, or
126** fitness for any particular purpose. In no event will SOFA be
127** liable to the user for any consequential, incidental, or special
128** damages, including any lost profits or lost savings, even if a
129** SOFA representative has been advised of such damages, or for any
130** claim by any third party.
131**
132** 6. The provision of any version of the SOFA software under the terms
133** and conditions specified herein does not imply that future
134** versions will also be made available under the same terms and
135** conditions.
136*
137** In any published work or commercial product which uses the SOFA
138** software directly, acknowledgement (see www.iausofa.org) is
139** appreciated.
140**
141** Correspondence concerning SOFA software should be addressed as
142** follows:
143**
144** By email: sofa@ukho.gov.uk
145** By post: IAU SOFA Center
146** HM Nautical Almanac Office
147** UK Hydrographic Office
148** Admiralty Way, Taunton
149** Somerset, TA1 2DN
150** United Kingdom
151**
152**--------------------------------------------------------------------*/
153}
Note: See TracBrowser for help on using the repository browser.