source: trunk/FACT++/sofa/src/ldsun.c@ 18368

Last change on this file since 18368 was 18346, checked in by tbretz, 11 years ago
File size: 5.6 KB
Line 
1#include "sofa.h"
2
3void iauLdsun(double p[3], double e[3], double em, double p1[3])
4/*
5** - - - - - - - - -
6** i a u L d s u n
7** - - - - - - - - -
8**
9** Deflection of starlight by the Sun.
10**
11** This function is part of the International Astronomical Union's
12** SOFA (Standards of Fundamental Astronomy) software collection.
13**
14** Status: support function.
15**
16** Given:
17** p double[3] direction from observer to star (unit vector)
18** e double[3] direction from Sun to observer (unit vector)
19** em double distance from Sun to observer (au)
20**
21** Returned:
22** p1 double[3] observer to deflected star (unit vector)
23**
24** Notes:
25**
26** 1) The source is presumed to be sufficiently distant that its
27** directions seen from the Sun and the observer are essentially
28** the same.
29**
30** 2) The deflection is restrained when the angle between the star and
31** the center of the Sun is less than about 9 arcsec, falling to
32** zero for zero separation. (The chosen threshold is within the
33** solar limb for all solar-system applications.)
34**
35** 3) The arguments p and p1 can be the same array.
36**
37** Called:
38** iauLd light deflection by a solar-system body
39**
40** This revision: 2014 September 1
41**
42** SOFA release 2015-02-09
43**
44** Copyright (C) 2015 IAU SOFA Board. See notes at end.
45*/
46{
47 iauLd(1.0, p, p, e, em, 1e-9, p1);
48
49/* Finished. */
50
51/*----------------------------------------------------------------------
52**
53** Copyright (C) 2015
54** Standards Of Fundamental Astronomy Board
55** of the International Astronomical Union.
56**
57** =====================
58** SOFA Software License
59** =====================
60**
61** NOTICE TO USER:
62**
63** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
64** CONDITIONS WHICH APPLY TO ITS USE.
65**
66** 1. The Software is owned by the IAU SOFA Board ("SOFA").
67**
68** 2. Permission is granted to anyone to use the SOFA software for any
69** purpose, including commercial applications, free of charge and
70** without payment of royalties, subject to the conditions and
71** restrictions listed below.
72**
73** 3. You (the user) may copy and distribute SOFA source code to others,
74** and use and adapt its code and algorithms in your own software,
75** on a world-wide, royalty-free basis. That portion of your
76** distribution that does not consist of intact and unchanged copies
77** of SOFA source code files is a "derived work" that must comply
78** with the following requirements:
79**
80** a) Your work shall be marked or carry a statement that it
81** (i) uses routines and computations derived by you from
82** software provided by SOFA under license to you; and
83** (ii) does not itself constitute software provided by and/or
84** endorsed by SOFA.
85**
86** b) The source code of your derived work must contain descriptions
87** of how the derived work is based upon, contains and/or differs
88** from the original SOFA software.
89**
90** c) The names of all routines in your derived work shall not
91** include the prefix "iau" or "sofa" or trivial modifications
92** thereof such as changes of case.
93**
94** d) The origin of the SOFA components of your derived work must
95** not be misrepresented; you must not claim that you wrote the
96** original software, nor file a patent application for SOFA
97** software or algorithms embedded in the SOFA software.
98**
99** e) These requirements must be reproduced intact in any source
100** distribution and shall apply to anyone to whom you have
101** granted a further right to modify the source code of your
102** derived work.
103**
104** Note that, as originally distributed, the SOFA software is
105** intended to be a definitive implementation of the IAU standards,
106** and consequently third-party modifications are discouraged. All
107** variations, no matter how minor, must be explicitly marked as
108** such, as explained above.
109**
110** 4. You shall not cause the SOFA software to be brought into
111** disrepute, either by misuse, or use for inappropriate tasks, or
112** by inappropriate modification.
113**
114** 5. The SOFA software is provided "as is" and SOFA makes no warranty
115** as to its use or performance. SOFA does not and cannot warrant
116** the performance or results which the user may obtain by using the
117** SOFA software. SOFA makes no warranties, express or implied, as
118** to non-infringement of third party rights, merchantability, or
119** fitness for any particular purpose. In no event will SOFA be
120** liable to the user for any consequential, incidental, or special
121** damages, including any lost profits or lost savings, even if a
122** SOFA representative has been advised of such damages, or for any
123** claim by any third party.
124**
125** 6. The provision of any version of the SOFA software under the terms
126** and conditions specified herein does not imply that future
127** versions will also be made available under the same terms and
128** conditions.
129*
130** In any published work or commercial product which uses the SOFA
131** software directly, acknowledgement (see www.iausofa.org) is
132** appreciated.
133**
134** Correspondence concerning SOFA software should be addressed as
135** follows:
136**
137** By email: sofa@ukho.gov.uk
138** By post: IAU SOFA Center
139** HM Nautical Almanac Office
140** UK Hydrographic Office
141** Admiralty Way, Taunton
142** Somerset, TA1 2DN
143** United Kingdom
144**
145**--------------------------------------------------------------------*/
146
147}
Note: See TracBrowser for help on using the repository browser.