Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekrol committed Jul 29, 2020
0 parents commit 21624d7
Show file tree
Hide file tree
Showing 261 changed files with 87,010 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# Bazel generated files
bazel-*

# Keep documentation PDFs frome being pushed
*.pdf
9 changes: 9 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

cc_library(
name = "sofa",
hdrs = glob(["include/*.h"]),
srcs = glob(["src/*.c"]),
linkstatic = True,
includes = ["include"],
visibility = ["//visibility:public"],
)
57 changes: 57 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

SOFA ANSI C Library Formatted for Bazel Integration. All source code is
identical to the original release (dated 2019-07-22) except for the relocation
of header files to the `include/` directory. The library can be built with:

bazel build //:sofa

-----

SOFA-Issue: 2019-07-22

This is the IAU Standards of Fundamental Astronomy (SOFA) Libraries product,
issued on 2019-07-22. The tag `SOFA-Issue' above defines this release and
differentiates it from previous or subsequent releases of the SOFA product.
The 00READ.ME file must remain with this distribution set.

Changes made since the previous release are noted in the file changes.lis.

Notes:

1/ Unix users: The distribution set contains a simple makefile which
can be used to create a single object library for the SOFA Libraries.
To build the object library:

a/ Examine the makefile to be sure definition of the C compiler
is correct for your system. You need an ANSI standard compliant
C compiler. Edit the CCOMPC macro in the makefile as necessary.

b/ To create libsofa.a, execute make:

% make

(where % is the shell prompt).

c/ To remove the object files:

% make clean

To link with the SOFA library, include the library in the compile/link
command in the normal Unix fashion, eg:

% gcc myprog.c -o myprog libsofa.a

You should specify the appropriate C compiler name for `gcc'
in the above command sequence.


2/ Windows/DOS/Mac users: There is no `build' procedure to create a linkable
object library or DLL for the SOFA Libraries. This is due to the many
different C compilers and development environments available on
Windows/DOS and Mac machines.

To use the SOFA routines with your program(s), you must use your preferred
development environment to create the appropriate library or DLL.

IAU SOFA Center
2019/07/22
Empty file added WORKSPACE
Empty file.
37 changes: 37 additions & 0 deletions doc/board.lis
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
board.lis 2018 May 03



IAU STANDARDS OF FUNDAMENTAL ASTRONOMY BOARD


Current Membership

John Bangert - United States Naval Observatory, retired
Steven Bell - Her Majesty's Nautical Almanac Office (HMNAO)
Nicole Capitaine - Paris Observatory
Micka�l Gastineau - Paris Observatory, IMCCE
Catherine Hohenkerk - HMNAO (Chair, retired)
Li Jinling - Shanghai Astronomical Observatory
Brian Luzum - United States Naval Observatory (IERS)
Zinovy Malkin - Pulkovo Observatory, St Petersburg
Jeffrey Percival - University of Wisconsin
Wendy Puatua - United States Naval Observatory
Scott Ransom - National Radio Astronomy Observatory
Patrick Wallace - RAL Space, retired


Past Members

Wim Brouw University of Groningen
Mark Calabretta Australia Telescope National Facility
William Folkner Jet Propulsion Laboratory
Anne-Marie Gontier Paris Observatory
George Hobbs Australia Telescope National Facility
George Kaplan United States Naval Observatory
Dennis McCarthy United States Naval Observatory
Skip Newhall Jet Propulsion Laboratory
Jin Wen-Jing Shanghai Astronomical Observatory


The e-mail for the Board chair is [email protected]
120 changes: 120 additions & 0 deletions doc/changes.lis
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
Updates for SOFA Release 15 : 2019 July 22
- - - - - - - - - - - - - - - - - - - - - - -

Summary of Changes
------------------
The changes fall into the following categories:

1. Wrong sign in the ANSI C function iauTdbtcb corrected.

2. Update DAT release year.

3. Implementation of four new routines that have been added to the
Star Catalog Conversions section dealing with the transformation
between the FK4 and the FK5 reference systems. These routines
have have been included partly for completeness but mainly so that
positions in publications pre-1984 can be properly handled. They
cover conversions between B1950.0 FK4 and J2000.0 FK5, with and
without proper motion.

4. Enhancement of 17 routines that compare the two components of
given date/time arguments to minimize rounding errors, so that
optimum results are achieved even when one of the arguments is
negative. (SOFA is grateful to the Astropy group for drawing
attention to the deficiency.)

5. Due to introducing these new routines, the Astrometry Tools
Cookbook, the test program and other supporting files have also
been updated.

6. Miscellaneous typographical corrections and improvements to
various other documents.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

FORTRAN 77 Library
------------------

1. iau_DAT Year ....

2. iau_FK425 Convert B1950.0 FK4 star catalog data to J2000.0 FK5.
iau_FK524 Convert J2000.0 FK5 star catalog data to B1950.0 FK4.
iau_FK45Z Convert a B1950.0 FK4 star position to J2000.0 FK5,
assuming zero proper motion in the FK5 system.
iau_FK54Z Convert a J2000.0 FK5 star position to B1950.0 FK4,
assuming zero proper motion in FK5 and zero parallax.

3. iau_JD2CAL In all these routines the Fortran function ABS was
iau_JD2CALF included when comparing the two argument data/time
iau_TAITT parameter.
iau_TAIUT1
iau_TAIUTC
iau_TCBTDB
iau_TCGTT
iau_TDBTCB
iau_TDBTT
iau_TTTAI
iau_TTTCG
iau_TTTDB
IAU_TTUT1
iau_UT1TAI
iau_UT1TT
iau_UT1UTC
iau_UTCTAI

4. t_sofa_f.for Addition of new routines.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

ANSI C Library
--------------

1. iauTdbtcb.c Replace
*tcb1 = f - ( d - ( f - t77tf ) ) * elbb;
by
*tcb1 = f + ( d - ( f - t77tf ) ) * elbb;

n.b. the sign error affects only one of two paths
through the code.

2. iauDat Release year.

3. iauFk425 Convert B1950.0 FK4 star catalog data to J2000.0 FK5.
iauFk524 Convert J2000.0 FK5 star catalog data to B1950.0 FK4.
iauFk45z Convert a B1950.0 FK4 star position to J2000.0 FK5,
assuming zero proper motion in the FK5 system.
iauFk54z Convert a J2000.0 FK5 star position to B1950.0 FK4,
assuming zero proper motion in FK5 and zero parallax.
sofa.h Inclusion of the above routines' prototype
declarations.

4. iauJd2cal In these 17 routines the ANSI C function fabs() was
iauJd2calf included when comparing the two argument data/time
iauJd2calf parameter.
iauTaitt
iauTaiut1
iauTaiutc
iauTcbtdb
iauTcgtt
iauTdbtcb
iauTdbtt
iauTttai
iauTttcg
iauTttdb
IAUTtut1
iauUt1tai
iauUt1tt
iauUt1utc
iauUtctai

5. t_sofa_c.c Addition of new routines.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ SOFA thanks all those who have reported the various issues that go
+ to ensuring the libraries and documentation are kept up-to-date and
+ relevant.
+
+ End of updates
+ 2019 June 30
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

54 changes: 54 additions & 0 deletions doc/consts.lis
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
consts.lis 2008 September 30


SOFA Fortran constants
----------------------

These must be used exactly as presented below.

* Pi
DOUBLE PRECISION DPI
PARAMETER ( DPI = 3.141592653589793238462643D0 )

* 2Pi
DOUBLE PRECISION D2PI
PARAMETER ( D2PI = 6.283185307179586476925287D0 )

* Radians to hours
DOUBLE PRECISION DR2H
PARAMETER ( DR2H = 3.819718634205488058453210D0 )

* Radians to seconds
DOUBLE PRECISION DR2S
PARAMETER ( DR2S = 13750.98708313975701043156D0 )

* Radians to degrees
DOUBLE PRECISION DR2D
PARAMETER ( DR2D = 57.29577951308232087679815D0 )

* Radians to arc seconds
DOUBLE PRECISION DR2AS
PARAMETER ( DR2AS = 206264.8062470963551564734D0 )

* Hours to radians
DOUBLE PRECISION DH2R
PARAMETER ( DH2R = 0.2617993877991494365385536D0 )

* Seconds to radians
DOUBLE PRECISION DS2R
PARAMETER ( DS2R = 7.272205216643039903848712D-5 )

* Degrees to radians
DOUBLE PRECISION DD2R
PARAMETER ( DD2R = 1.745329251994329576923691D-2 )

* Arc seconds to radians
DOUBLE PRECISION DAS2R
PARAMETER ( DAS2R = 4.848136811095359935899141D-6 )


SOFA C constants
----------------

The constants used by the C version of SOFA are defined in the header
file sofam.h.
25 changes: 25 additions & 0 deletions doc/contents.lis
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
contents.lis 2019 July 22


--------
CONTENTS
--------





1) Introduction

2) The SOFA Astronomy Library

3) The SOFA Vector/Matrix Library

4) The individual routines


A1 The SOFA copyright notice

A2 Constants

A3 SOFA Board membership
Loading

0 comments on commit 21624d7

Please sign in to comment.