From 64a335d5467b4b0f1c7e4888fc65cc01b76f5fb6 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 19 Aug 2019 15:26:32 +0200 Subject: added comments to line two --- TLE.go | 51 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/TLE.go b/TLE.go index cf66d11..5fe70c3 100644 --- a/TLE.go +++ b/TLE.go @@ -94,14 +94,47 @@ type Epoch struct { } type LineTwo struct { - Linenumber int8 `json:"linenumber"` - Satellitenumber int `json:"satellitenumber"` - Inclination float64 `json:"inclination"` + Linenumber int8 `json:"linenumber"` + + // Catalog number defined by USSPACECOM + Satellitenumber int `json:"satellitenumber"` + + // Inclination + // Unit: degrees + // Angle between the equator and the orbit plane + Inclination float64 `json:"inclination"` + + // Right Ascension of the Ascending Node + // Unit: degrees + // Angle between vernal equinox and the point where the orbit crosses the equitorial plane (going north). RightAscensionOfTheAscendingNode float64 `json:"rightascensionoftheascendingnode"` - Eccentricity float64 `json:"eccentricity"` - ArgumentOfPerigee float64 `json:"argumentofperigee"` - MeanAnomaly float64 `json:"meananomaly"` - MeanMotion float64 `json:"meanmotion"` - RevolutionNumberAtEpoch int `json:"revolutionnumberatepoch"` - Checksum int8 `json:"checksum"` + + // Eccentricity + // Constant defining the shape of the orbit (0=circular, Less than 1=elliptical). + // The value provided is the mean eccentricity. + // A leading decimal must be applied to this value + Eccentricity float64 `json:"eccentricity"` + + // Argument of perigee + // Unit: degrees + // The angle between the ascending node and the orbit's point of closest approach of the earth (perigee) + ArgumentOfPerigee float64 `json:"argumentofperigee"` + + // Mean Anomaly + // Unit: degrees + // The angle, measured from perigee, of the satellite location in the orbit referenced to a circular orbit + // with radius equal to the semi-major axis. + MeanAnomaly float64 `json:"meananomaly"` + + // Mean Motion + // The value is the mean number of orbits per day the object completes. There are 8 digits after the decimal, + // leaving no trailing space(s) when the following element exceeds 9999. + MeanMotion float64 `json:"meanmotion"` + + // The orbit number at Epoch Time. This time is chosen very near the time of true ascending node passage as + // a matter of routine. The last digit is the check sum for line 2. + RevolutionNumberAtEpoch int `json:"revolutionnumberatepoch"` + + // Checksum (modulo 10) + Checksum int8 `json:"checksum"` } -- cgit 1.4.1