Skip to content

Commit

Permalink
Merge pull request #71 from mhvk/update-sofa-20200721
Browse files Browse the repository at this point in the history
Update ERFA to SOFA 20200721.
  • Loading branch information
mhvk authored Sep 14, 2020
2 parents 04bb63e + 8bb8647 commit 8e9b08e
Show file tree
Hide file tree
Showing 249 changed files with 664 additions and 588 deletions.
14 changes: 10 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in this source distribution.
Differences from SOFA
---------------------

This version of ERFA (v1.6.0) is based on SOFA version "20190722", with the
This version of ERFA (v1.7.1) is based on SOFA version "20200721", with the
differences outlined below.

ERFA branding
Expand All @@ -33,7 +33,7 @@ Version information

ERFA provides a few utility functions for accessing version information at
runtime which are not a part of SOFA. Specifically, these are the
``eraVersion`,` ``eraVersion*``, and ``eraSofaVersion`` functions that are
``eraVersion``, ``eraVersion*``, and ``eraSofaVersion`` functions that are
exposed in the ``erfaextra.h`` header.

Runtime leap second modification
Expand All @@ -46,12 +46,18 @@ This functionality is currently considered somewhat experimental, meaning an
improved API might be available in the future, but the current API can also be
counted on for the near future.

Bugfixes
^^^^^^^^
Bug fixes
^^^^^^^^^

ERFA includes smaller changes that may or may not eventually make it into SOFA,
addressing localized bugs or similar smaller issues:

* ERFA 1.7.1 and SOFA "20200721"

+ Only bug fixes in the SOFA release. The only differences between ERFA 1.7.1
and SOFA "20200721" remain the added ``eraVersion``, ``eraSofaVersion``, and
leap second functions noted above.

* ERFA 1.7.0 and SOFA "20190722"

+ There are no differences between ERFA 1.7.0 and SOFA "20190722" except
Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

AC_PREREQ([2.68])
## Follow the instructions in RELEASE.rst to change package version
AC_INIT([erfa],[1.7.0])
AC_INIT([erfa],[1.7.1])
AC_CONFIG_SRCDIR([src/erfa.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -17,10 +17,10 @@ ERFA_NUMVER
## A library supports interfaces from current downto current - age
## Revision is the version of the current interface
## Follow the instructions in RELEASE.rst to change the version info
ERFA_LIB_VERSION_INFO(8, 0, 7)
ERFA_LIB_VERSION_INFO(8, 1, 7)

## SOFA version, update if needed in new relases
AC_DEFINE([SOFA_VERSION], ["20190722"], [Define to the version of SOFA])
AC_DEFINE([SOFA_VERSION], ["20200721"], [Define to the version of SOFA])

# Checks for libraries.
AC_SEARCH_LIBS([sin], [m], , AC_MSG_ERROR([cannot find math functions]))
Expand Down
12 changes: 6 additions & 6 deletions src/a2af.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ void eraA2af(int ndp, double angle, char *sign, int idmsf[4])
** angle double angle in radians
**
** Returned:
** sign char '+' or '-'
** sign char* '+' or '-'
** idmsf int[4] degrees, arcminutes, arcseconds, fraction
**
** Called:
** eraD2tf decompose days to hms
**
** Notes:
**
** 1) The argument ndp is interpreted as follows:
Expand Down Expand Up @@ -51,7 +48,10 @@ void eraA2af(int ndp, double angle, char *sign, int idmsf[4])
** case where angle is very nearly 2pi and rounds up to 360 degrees,
** by testing for idmsf[0]=360 and setting idmsf[0-3] to zero.
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Called:
** eraD2tf decompose days to hms
**
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -68,7 +68,7 @@ void eraA2af(int ndp, double angle, char *sign, int idmsf[4])
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
12 changes: 6 additions & 6 deletions src/a2tf.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ void eraA2tf(int ndp, double angle, char *sign, int ihmsf[4])
** angle double angle in radians
**
** Returned:
** sign char '+' or '-'
** sign char* '+' or '-'
** ihmsf int[4] hours, minutes, seconds, fraction
**
** Called:
** eraD2tf decompose days to hms
**
** Notes:
**
** 1) The argument ndp is interpreted as follows:
Expand Down Expand Up @@ -51,7 +48,10 @@ void eraA2tf(int ndp, double angle, char *sign, int ihmsf[4])
** case where angle is very nearly 2pi and rounds up to 24 hours,
** by testing for ihmsf[0]=24 and setting ihmsf[0-3] to zero.
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Called:
** eraD2tf decompose days to hms
**
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -64,7 +64,7 @@ void eraA2tf(int ndp, double angle, char *sign, int ihmsf[4])
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/ab.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void eraAb(double pnat[3], double v[3], double s, double bm1,
** Called:
** eraPdp scalar product of two p-vectors
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand Down Expand Up @@ -76,7 +76,7 @@ void eraAb(double pnat[3], double v[3], double s, double bm1,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
6 changes: 3 additions & 3 deletions src/ae2hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ void eraAe2hd (double az, double el, double phi,
**
** Last revision: 2017 September 12
**
** ERFA release 2019-07-22
** ERFA release 2020-07-21
**
** Copyright (C) 2019 IAU ERFA Board. See notes at end.
** Copyright (C) 2020 IAU ERFA Board. See notes at end.
*/
{
double sa, ca, se, ce, sp, cp, x, y, z, r;
Expand Down Expand Up @@ -91,7 +91,7 @@ void eraAe2hd (double az, double el, double phi,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/af2a.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int eraAf2a(char s, int ideg, int iamin, double asec, double *rad)
** 3) If there are multiple errors, the status value reflects only the
** first, the smallest taking precedence.
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -55,7 +55,7 @@ int eraAf2a(char s, int ideg, int iamin, double asec, double *rad)
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/anp.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ double eraAnp(double a)
** Returned (function value):
** double angle in range 0-2pi
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -30,7 +30,7 @@ double eraAnp(double a)
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/anpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ double eraAnpm(double a)
** Returned (function value):
** double angle in range +/-pi
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -30,7 +30,7 @@ double eraAnpm(double a)
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void eraApcg(double date1, double date2,
** Called:
** eraApcs astrometry parameters, ICRS-GCRS, space observer
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -120,7 +120,7 @@ void eraApcg(double date1, double date2,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apcg13.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void eraApcg13(double date1, double date2, eraASTROM *astrom)
** eraEpv00 Earth position and velocity
** eraApcg astrometry parameters, ICRS-GCRS, geocenter
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -123,7 +123,7 @@ void eraApcg13(double date1, double date2, eraASTROM *astrom)
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apci.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void eraApci(double date1, double date2,
** eraApcg astrometry parameters, ICRS-GCRS, geocenter
** eraC2ixys celestial-to-intermediate matrix, given X,Y and s
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -129,7 +129,7 @@ void eraApci(double date1, double date2,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apci13.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void eraApci13(double date1, double date2,
** eraApci astrometry parameters, ICRS-CIRS
** eraEors equation of the origins, given NPB matrix and s
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand Down Expand Up @@ -141,7 +141,7 @@ void eraApci13(double date1, double date2,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apco.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void eraApco(double date1, double date2,
** eraApcs astrometry parameters, ICRS-GCRS, space observer
** eraCr copy r-matrix
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand Down Expand Up @@ -203,7 +203,7 @@ void eraApco(double date1, double date2,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apco13.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ int eraApco13(double utc1, double utc2, double dut1,
** eraApco astrometry parameters, ICRS-observed
** eraEors equation of the origins, given NPB matrix and s
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand Down Expand Up @@ -226,7 +226,7 @@ int eraApco13(double utc1, double utc2, double dut1,
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void eraApcs(double date1, double date2, double pv[2][3],
** eraPn decompose p-vector into modulus and direction
** eraIr initialize r-matrix to identity
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand Down Expand Up @@ -172,7 +172,7 @@ void eraApcs(double date1, double date2, double pv[2][3],
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/apcs13.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void eraApcs13(double date1, double date2, double pv[2][3],
** eraEpv00 Earth position and velocity
** eraApcs astrometry parameters, ICRS-GCRS, space observer
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -130,7 +130,7 @@ void eraApcs13(double date1, double date2, double pv[2][3],
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
4 changes: 2 additions & 2 deletions src/aper.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void eraAper(double theta, eraASTROM *astrom)
** aberration and parallax (unless subsumed into the ICRS <-> GCRS
** transformation), and atmospheric refraction.
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** Derived, with permission, from the SOFA library. See notes at end of file.
*/
{
Expand All @@ -101,7 +101,7 @@ void eraAper(double theta, eraASTROM *astrom)
/*----------------------------------------------------------------------
**
**
** Copyright (C) 2013-2019, NumFOCUS Foundation.
** Copyright (C) 2013-2020, NumFOCUS Foundation.
** All rights reserved.
**
** This library is derived, with permission, from the International
Expand Down
Loading

0 comments on commit 8e9b08e

Please sign in to comment.