Ignore:
Timestamp:
01/06/17 11:48:17 (8 years ago)
Author:
tbretz
Message:
Updated to ERFA 1.3.0 (no relevant code change except the leap second at the beginning of 2017)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/erfa/src/ldsun.c

    r18348 r18711  
    2424**
    2525**  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.
    2930**
    3031**  3) The arguments p and p1 can be the same array.
     
    3334**     eraLd        light deflection by a solar-system body
    3435**
    35 **  Copyright (C) 2013-2015, NumFOCUS Foundation.
     36**  Copyright (C) 2013-2016, NumFOCUS Foundation.
    3637**  Derived, with permission, from the SOFA library.  See notes at end of file.
    3738*/
    3839{
    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);
    4050
    4151/* Finished. */
     
    4555** 
    4656** 
    47 **  Copyright (C) 2013-2015, NumFOCUS Foundation.
     57**  Copyright (C) 2013-2016, NumFOCUS Foundation.
    4858**  All rights reserved.
    4959** 
Note: See TracChangeset for help on using the changeset viewer.