Namespace: util

orbits. util

Source:

Methods

<static> calculateLatLngOfSun(date) → {google.maps.LatLng}

Calculate LatLng of the sun for a given date
Parameters:
Name Type Description
date Date An instance of Date
Source:
Returns:
Type
google.maps.LatLng

<static> calculatePositionOfSun(date) → {float[]}

Calculate position of the sun for a given date
Parameters:
Name Type Description
date Date An instance of Date
Source:
Returns:
[latitude, longitude]
Type
float[]

<static> getDistanceToHorizon(altitude) → {float}

Get distance to true horizon in meters
Parameters:
Name Type Description
altitude float In meters
Source:
Returns:
Type
float

<static> gmst(date) → {float}

takes a Date instance and returns Greenwich mean sidereal time in radii
Parameters:
Name Type Description
date Date Date instance
Source:
Returns:
Type
float

<static> jday(date) → {float}

takes a Date instance and return julian day
Parameters:
Name Type Description
date Date Date instance
Source:
Returns:
Type
float

<static> mergeOpts(a, b) → {Object}

merge two objects together, b takes precedence
Parameters:
Name Type Description
a Object First object instance
b Object Second object instance
Source:
Returns:
Type
Object

<static> parseTLE(text) → {array.<orbits.TLE>}

Parses a string with one or more TLEs
Parameters:
Name Type Description
text string A string containing one or more TLEs
Source:
Returns:
An array of orbit.TLE instances
Type
array.<orbits.TLE>