Discover Packages
github.com/richlj/astronomy
package
module
Version:
v0.0.0-...-1e3ce3c
Opens a new window with list of versions in this module.
Published: Aug 28, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
astronomy
This package contains functions for calculating astronomical times and
positions.
Expand ▾
Collapse ▴
Documentation
¶
Package astro is used for carrying out astronomical calculations
Package astro contains functions for calculating astronomical times and
positions
View Source
const (
J2000Epoch julianTime = 2451545.0
)
Altitude is the height in meters of an object above sea level
type Location struct {
Latitude float64 `json:"latitude" validate:"min=-90,max=90"`
Longitude float64 `json:"longitude" validate:"min=-180,max=180"`
Altitude Altitude `json:"altitude" validate:"min=0"`
}
Location is the three-dimensional position of an object above the globe.
Latitude and Longitude values are in degrees.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.