Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attron/utdfgo
Spacecraft UTDF File/Packet Reader and Decoder Written in Golang
https://github.com/attron/utdfgo
astronomy decoder go golang nasa reader returns-antenna space spacecraft utdf-packets
Last synced: about 1 month ago
JSON representation
Spacecraft UTDF File/Packet Reader and Decoder Written in Golang
- Host: GitHub
- URL: https://github.com/attron/utdfgo
- Owner: ATTron
- License: apache-2.0
- Created: 2019-07-02T04:06:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T22:35:50.000Z (over 3 years ago)
- Last Synced: 2024-11-01T22:37:08.417Z (3 months ago)
- Topics: astronomy, decoder, go, golang, nasa, reader, returns-antenna, space, spacecraft, utdf-packets
- Language: Go
- Homepage:
- Size: 7.07 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UTDF-GO
[![Go Report Card](https://goreportcard.com/badge/github.com/attron/utdfgo)](https://goreportcard.com/report/github.com/attron/utdfgo)
UTDFGO is a UTDF Spacecraft Packet Decoder Written In Golang# USAGE
------------------------------------------------------------------
```
go get "github.com/ATTron/utdfgo"
```
## Using utdfgo in GO programs
```
import "github.com/ATTron/utdfgo". . .
utdf, err := utdfgo.Run(filename)
if err != nil {
check(err)
}
for _, p := range utdf {
// run functions on p
p.GetYear()
}
```
You can run the extraction functions with the returned utdf struct# Functions
## Getting Started
#### Run(filename string)
returns an array of utdf packets from the file given------------------------------------------------------------------
## Time Based Functions
#### GetYear()
returns the year
taken from byte 6
#### GetSeconds()
returns the seconds of year
taken from bytes 11:14
#### GetMicroseconds()
returns microseconds of seconds
taken from bytes 15:18
#### GetEpoch()
returns a UTC epoch
built from other time functions
#### GetTimestamps()
returns all time information for given utdf packet------------------------------------------------------------------
## Angle Based Functions
#### GetAzimuth()
returns azimuth
taken from bytes 19:22
#### GetElevation()
returns elevation
taken from bytes 23:26------------------------------------------------------------------
## Range + Doppler Based Functions
#### GetRangeDelay()
returns range delay hi and lo
#### GetRange()
returns calculated range of spacecraft
#### GetDopplerDelay()
returns doppler delay hi and lo
#### GetDoppler()
returns calculated doppler count------------------------------------------------------------------
## Misc Functions
#### GetAGC()
returns spacecraft AGC
taken from bytes 39:40
#### GetTransmitFreq()
returns transmission frequency
taken from bytes 41:44
#### GetAntennaType()
returns antenna type
taken from byte 45
#### GetPADID()
returns antenna padid
taken from byte 46
#### GetRecieveAntennaType()
returns recieve antenna type
taken from byte 47
#### GetRecievePADID()
returns recieve antenna padid
taken from byte 48
#### GetSystemMode()
return system mode
taken from bytes 49:50
#### GetDataValidation()
return data validity
taken from byte 51
#### GetFrequencyBand()
return frequency band
taken from byte 52
#### GetTrackingInfo()
return tracking type and data
taken from bytes 53:54