[中文](README-zh_CN.md)
# GoFA (Golang standards Of Fundamental Astronomy)
GoFA is a pure Golang implementation derived from the International Astronomical
Union's (*IAU*) "`Standards Of Fundamental Astronomy (SOFA)` [http://iausofa.org](http://iausofa.org)" library
official C release. .
Reference documents are in:
GoFA Current version is 1.19. It is based on SOFA version `19` ([2023-10-11](http://iausofa.org/2023_1011_C/)).
Examples in manuals are in the subdirectory: [examples](examples)
All function are tested. The [test](test) functions are derived from `t_sofa_c.c` .
## Installation
```shell
go get -u github.com/hebl/gofa
```
or
```shell
go install github.com/hebl/gofa@latest
```
## Functions
### Vector/Matrix Library [vml.go](vml.go)
- Initialization (4)
- Copy/Extend/Extract (5)
- Build rotations (3)
- Operations on vectors (17)
- Operations on matrices (2)
- Matrix-vector products (4)
- Rotation vectors (2)
### Angle [angle.go](angle.go)
- Spherical/Cartesian conversions (6)
- Separation and position-angle (4)
- Operations on angles (8)
### Astrometry (38) [astrometry.go](astrometry.go)
### Calendars (7) [jd.go](jd.go)
### Time Scales (20) [ts.go](ts.go)
### Coordinates [coord.go](coord.go)
- Ecliptic Coordinates (6)
- Galactic Coordinates (2)
- Horizon/Equatorial Coordinates (3)
- Geocentric/Geodetic Transformations (5)
### Earth Rotation and Sidereal Time (15) [erast.go](erast.go)
### Ephemerides (3) [ephem.go](ephem.go)
### Fundamental Arguments (14) [fundargs.go](fundargs.go)
### Gnomonic Projections (6) [projection.go](projection.go)
### Precession/Nutation/Polar Motion (64) [pn.go](pn.go)
### Star Catalog Conversions (9) [catalog.go](catalog.go)
## Versions
### v1.19
Version 1.19 offers 192 routines for astronomy library (including time scales, earth rotation, sidereal time, precession, nutation, polar motion, ephemerides, astrometry and transforms between various reference systems.), 55 routines for vector/matrix library.
## License
- [SOFA License](sofa_copyr.txt)
- [MIT License](LICENSE)
2023-10-23