about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--TLE.go50
1 files changed, 25 insertions, 25 deletions
diff --git a/TLE.go b/TLE.go
index f132f0d..5d89656 100644
--- a/TLE.go
+++ b/TLE.go
@@ -7,38 +7,38 @@ package TLE
 // tlebytes defines a tle using raw bytes.
 type TLE struct {
 	TitleLine struct {
-		Satname [24]byte `json:"satname"`
+		Satname string `json:"satname"`
 	} `json:"titleline"`
 	LineOne struct {
-		Linenumber              [1]byte `json:"linenumber"`
-		Satellitenumber         [5]byte `json:"satellitenumber"`
-		Classification          [1]byte `json:"classification"`
+		Linenumber              int8 `json:"linenumber"`
+		Satellitenumber         int  `json:"satellitenumber"`
+		Classification          rune `json:"classification"`
 		InternationalDesignator struct {
-			launchyear   [2]byte `json:"launchyear"`
-			launchnumber [3]byte `json:"launchnumber"`
-			launchpiece  [3]byte `json:"launchpiece"`
+			launchyear   int8 `json:"launchyear"`
+			launchnumber int  `json:"launchnumber"`
+			launchpiece  rune `json:"launchpiece"`
 		} `json:"internationaldesignator"`
 		Epoch struct {
-			year        [2]byte `json:"year"`
-			dayfraction [2]byte `json:"dayfraction"`
+			year        int8    `json:"year"`
+			dayfraction float64 `json:"dayfraction"`
 		}
-		Firstderiv       [10]byte `json:"firstderiv"`
-		Secondderiv      [8]byte  `json:"secondderiv"`
-		BSTAR            [8]byte  `json:"BSTAR"`
-		Numberzero       [1]byte  `json:"numberzero"`
-		ElementSetNumber [4]byte  `json:"elementesetnumber"`
-		Checksum         [1]byte  `json:"checksum"`
+		Firstderiv       float64 `json:"firstderiv"`
+		Secondderiv      float64 `json:"secondderiv"`
+		BSTAR            float64 `json:"BSTAR"`
+		Numberzero       int8    `json:"numberzero"`
+		ElementSetNumber int     `json:"elementesetnumber"`
+		Checksum         int8    `json:"checksum"`
 	} `json:"lineone"`
 	LineTwo struct {
-		Linenumber                       [1]byte  `json:"linenumber"`
-		Satellitenumber                  [5]byte  `json:"satellitenumber"`
-		Inclination                      [8]byte  `json:"inclination"`
-		RightAscensionOfTheAscendingNode [8]byte  `json:"rightascensionoftheascendingnode"`
-		Eccentricity                     [7]byte  `json:"eccentricity"`
-		ArgumentOfPerigee                [8]byte  `json:"argumentofperigee"`
-		MeanAnomaly                      [8]byte  `json:"meananomaly"`
-		MeanMotion                       [11]byte `json:"meanmotion"`
-		RevolutionNumberAtEpoch          [5]byte  `json:"revolutionnumberatepoch"`
-		Checksum                         [1]byte  `json:"checksum"`
+		Linenumber                       int8    `json:"linenumber"`
+		Satellitenumber                  int     `json:"satellitenumber"`
+		Inclination                      float64 `json:"inclination"`
+		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"`
 	} `json:"linetwo"`
 }