astro

package module
v0.0.0-...-1e3ce3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

README

astronomy

This package contains functions for calculating astronomical times and positions.

Documentation

Overview

Package astro is used for carrying out astronomical calculations

Package astro contains functions for calculating astronomical times and positions

Index

Constants

View Source
const (

	// J2000Epoch is January 1, 2000, 12:00 TT
	J2000Epoch julianTime = 2451545.0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Altitude

type Altitude float64

Altitude is the height in meters of an object above sea level

type Location

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL