Skip to content

Commit

Permalink
Fixed the note and the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael S committed Dec 17, 2022
1 parent 74218ce commit 196fc2d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/proway2/go-igrf.svg)](https://pkg.go.dev/github.com/proway2/go-igrf)

# go-igrf
Pure Go IGRF (International Geomagnetic Reference Field). This is based on the existing `C` implementation.
Pure Go IGRF (International Geomagnetic Reference Field). This is based on the existing `C` implementation. This package computes values for the geomagnetic field and secular variation for a given set of coordinates and date.

## Inputs

Expand Down Expand Up @@ -63,8 +63,9 @@ import (
)

func main() {
res, _ := igrf.IGRF(46.9, 39.9, 0.0, 2021.5)
fmt.Println(res)
igrf_data := igrf.New()
res, err := igrf_data.IGRF(46.9, 39.9, 0.0, 2021.5)
fmt.Println(res, err)
}
```

Expand Down

0 comments on commit 196fc2d

Please sign in to comment.