Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add default value of Earth's radius to Haversine (#176)
* add default value of Earth's radius to Haversine I don't think it should be necessary to look up the radius of Earth every time one wants to use the Haversine formula, so I've added the equatorial radius of Earth in meters as a default. I hope most imperial unit users will agree that metric is a reasonable default for scientific libraries. Of course Earth has different radii depending on where it is measured, as it isn't a perfect sphere. Uses sensitive to this should use more specific values. FYI this same default value is used in R. source https://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html * reinsert value after rebase * document default in readme * Make radius a Float32 * update docstring
- Loading branch information