Changeset 18711 for trunk/FACT++/erfa/src/ldsun.c
- Timestamp:
- 01/06/17 11:48:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/erfa/src/ldsun.c
r18348 r18711 24 24 ** 25 25 ** 2) The deflection is restrained when the angle between the star and 26 ** the center of the Sun is less than about 9 arcsec, falling to 27 ** zero for zero separation. (The chosen threshold is within the 28 ** solar limb for all solar-system applications.) 26 ** the center of the Sun is less than a threshold value, falling to 27 ** zero deflection for zero separation. The chosen threshold value 28 ** is within the solar limb for all solar-system applications, and 29 ** is about 5 arcminutes for the case of a terrestrial observer. 29 30 ** 30 31 ** 3) The arguments p and p1 can be the same array. … … 33 34 ** eraLd light deflection by a solar-system body 34 35 ** 35 ** Copyright (C) 2013-201 5, NumFOCUS Foundation.36 ** Copyright (C) 2013-2016, NumFOCUS Foundation. 36 37 ** Derived, with permission, from the SOFA library. See notes at end of file. 37 38 */ 38 39 { 39 eraLd(1.0, p, p, e, em, 1e-9, p1); 40 double em2, dlim; 41 42 43 /* Deflection limiter (smaller for distant observers). */ 44 em2 = em*em; 45 if ( em2 < 1.0 ) em2 = 1.0; 46 dlim = 1e-6 / (em2 > 1.0 ? em2 : 1.0); 47 48 /* Apply the deflection. */ 49 eraLd(1.0, p, p, e, em, dlim, p1); 40 50 41 51 /* Finished. */ … … 45 55 ** 46 56 ** 47 ** Copyright (C) 2013-201 5, NumFOCUS Foundation.57 ** Copyright (C) 2013-2016, NumFOCUS Foundation. 48 58 ** All rights reserved. 49 59 **
Note:
See TracChangeset
for help on using the changeset viewer.