LEOGPS - Satellite Navigation with GPS on Python!

Overview

https://raw.githubusercontent.com/sammmlow/LEOGPS/master/docs/_static/leogps_logo.png

Project: LEOGPS
Github: https://github.com/sammmlow/LEOGPS
Documents: https://leogps.readthedocs.io/en/latest/
Version: 1.3 (Latest)

docs license

Author: Samuel Y. W. Low

linkedin orcid

LEOGPS

LEOGPS is an open-source Python software which performs relative satellite navigation between two formation flying satellites, with the objective of high accuracy relative positioning. Specifically, LEOGPS solves for the double-differenced baseline (using float ambiguity resolution) between satellites flying in formation in Low Earth Orbit (LEO). As such, the relative positioning accuracy diminishes with increasing formation baseline lengths.

LEOGPS currently supports only observations from the GPS constellation (L1/L2 frequency), with observation files in RINEX v2.XX format. LEOGPS also uses the precise ephemeris (.EPH) and clock bias and drift files (.CLK) provided by the University of Bern, Center for Orbit Determination in Europe (​CODE). As such, the coordinate frame used in the relative positioning is the International Terrestrial Reference Frame (ITRS) which is an Earth-Centered Earth-Fixed (ECEF) frame. Since the ephemeris files and RINEX v2 observations default to GPS Time, it is very important to also note that the time scale used in LEOGPS output files is GPS Time (as opposed to UTC).

This project also gives sincere appreciation and credit to the University of Bern, for their provision of the CODE FTP.

Installation and First Steps

First, clone this repository by running in your terminal (or Git Bash):

git clone https://github.com/sammmlow/LEOGPS.git

Second, you should do a pip install in your terminal of Martin Valgur's Pythonic translation of Yuri Hatanaka's compression library for RINEX files

pip install hatanaka

The Hatanaka library in Python was kindly contributed by Martin Valgur in v1.1, and replaces the older "RNX2CRX" (and GZIP, thanks to the unlzw3 library) which are Windows-only executables, making the (de)compression possible across all platforms.

The user can then run the application by running 'leogps.py', in the main directory, and you should see the LEOGPS GUI launch:

https://raw.githubusercontent.com/sammmlow/LEOGPS/master/docs/_static/gui-v1-3.jpg

Next, you can paste the two RINEX observation files of your LEO satellite pairs in the inputs folder, key in your configuration parameters, and hit the 'Run LEOGPS' button. That's it! LEOGPS will automatically source for the precise daily ephemeris and clock solutions, and process the raw GPS measurements to produce a report file in "LEOGPS_Results.txt" comprising:

  • The single point positions and velocities of both LEOs.
  • Precise baseline vectors between the two LEOs.
  • Dilution of precision values.

LEOGPS will also output plots and reports on the interpolated GPS satellite ephemeris and clock biases.

For full documentation, please refer to the LEOGPS Read-The-Docs.

Other Package Dependencies

Recommended Python Version > 3.6

Core libraries necessary: NumPy (v1.14 and above), matplotlib, hatanaka

Standard Python libaries: os, copy, math, datetime, decimal, shutil, subprocess, warnings, urllib.request

Libraries for GUI: PIL, tkinter

Tested on Python version 3.6.5 (Anaconda with default packages).

Contact

If you have any queries feel free to reach out to me at:

[email protected]

linkedin orcid

Last Modified on 20-Sep-2021

Comments
  • Large Oscillatory Position Errors After Receiver Clock Sync

    Large Oscillatory Position Errors After Receiver Clock Sync

    Current solutions tested on GRACE A/B formation flying satellites, exhibit positioning errors from pseudo-range solutions on the order of ~100m, and relative navigation inaccuracies in double digit centimeters. This is two orders of magnitude worse off than expected from typical precise orbit determination results used as a comparison. Ephemeris errors accruing from the orbit interpolation of the GPS satellites seem to be responsible. Current orbit interpolation uses an 11th Order Lagrange Polynomial Interpolation. A review of current range measurement modelling, and the setup of the non-linear least squares, should be conducted.

    bug 
    opened by sammmlow 3
  • Add for cross-compatibility on Linux (tested on Ubuntu 18.04).

    Add for cross-compatibility on Linux (tested on Ubuntu 18.04).

    Previous usage of '\' character conflicts with UNIX file format. Used os.sep to delineate file path for both Linux and windows ( likely MacOS as well) .

    opened by ANDREWNGT 1
  • Functionality to adjust GUI

    Functionality to adjust GUI

    Is there a way to adjust the GUI or to enable scrolling? Currently the GUI is cutoff at 40% height ("Set window length for cycle slip detection filter") on my machine. Resizing the GUI also does not resolve the issue. LEOGPS GUI

    opened by ANDREWNGT 1
  • 🌏 ❤️  LEOGPS v1.2 Pre-release Goals (Spoiler Alert)

    🌏 ❤️ LEOGPS v1.2 Pre-release Goals (Spoiler Alert)

    Goal 🎯 : Build a feature that enables relative orbit plotting.

    Feature 👁️ : Allow the plot to be displayed directly on the LEOGPS GUI, in Hill Frame coordinates after RSN.

    Requires 🧠 : More formation flying RINEX v2 files for validation of RSN and plotting accuracy.

    documentation enhancement help wanted 
    opened by sammmlow 1
  • Use external Hatanaka library for RINEX decompression

    Use external Hatanaka library for RINEX decompression

    Hi! I recently created a carefully packaged and wrapped version of the RNXCMP tools in Python as the Hatanaka library. It simplifies the installation and usage of the tools and also makes sure any errors are raised as proper exceptions and warnings as Python warnings. In addition to the Hatanaka decompression it can also take care of the .gz/.Z compression usually applied on top of Hatanaka compression.

    I thought you might find the library useful as well. It should make sharing using of this library quite a bit simpler, I hope, as it gets rid of the need to bundle the crx2rnx and gzip executable. One caveat, though, is that it sets the minimum Python version to 3.6+, but I doubt it's an issue since Python 2 has been EOL-ed for a while now.

    opened by valgur 1
  • Use ncompress for LZW decompression

    Use ncompress for LZW decompression

    Hello again, This PR is a small follow-up to #2, which replaces the unlzw3 LZW (.Z file) decompression with the new ncompress library. It's about 40x faster than unlzw3, which is quite noticeable when some of the 10 MB RINEX files take multiple seconds to decompress with unlzw3, and it's already installed transitively with hatanaka anyway.

    opened by valgur 0
  • Added functionality to save to a relative file path.

    Added functionality to save to a relative file path.

    Issue: Saving to 1 input and 1 output clutters the folder environment

    Proposed solution: With 1 campaign name, save input and outputs like so input output | | | | campaign name campaign name

    Note: I'm not sure if this is most efficient. Maybe making the "campaign name" the parent folder instead of child folder would be easier. Following the Bernese campaign file hierarchy? In that case changes are only repositioning the directory names in gpsxtr.py, leorun.py, leogui.py, pubplt.py and rnpath.py

    opened by ANDREWNGT 0
  • To-Do: Ground Track and Orbit Visualization 🌍 🌎 🌏

    To-Do: Ground Track and Orbit Visualization 🌍 🌎 🌏

    🧠 🧠 🧠 Future Work: With the implementation of the coordinate frame transformation, tools are now available to perform both an orbit (ICRF) visualisation as well as a ground track (ITRF) visualisation.

    • Optional add-ons: zoom-able maps will be nice.
    enhancement 
    opened by sammmlow 0
  • To-Do: Processing Statistics 📊

    To-Do: Processing Statistics 📊

    🧠 🧠 🧠 Future Work: Inclusion of the processing statistics, such as pseudo range residuals, carrier to noise ratios, number of satellites in view, time series plot of which frequency signals were received.

    enhancement 
    opened by sammmlow 0
  • To-Do: Single Satellite Precise Orbit Determination 🛰️ 🌠

    To-Do: Single Satellite Precise Orbit Determination 🛰️ 🌠

    🧠 🧠 🧠 Future work: to include single-satellite cases 🛰️ . The GUI should offer to the user the option of choosing single satellite processing (precise orbit determination) or dual satellite processing (relative navigation via double differencing).

    To-Do:

    • Statistical orbit determination module
    • Options for inclusion of pseudorange or carrier phase or both
    enhancement 
    opened by sammmlow 3
  • To-Fix: GPS Antenna Offsets 📡📡 📡

    To-Fix: GPS Antenna Offsets 📡📡 📡

    ⚠️⚠️⚠️ Caution: Do not apply GPS antenna offsets as of v1.3 (pre-release). ⚠️⚠️⚠️

    GPS antenna offsets should be done in the spacecraft body frame. However, currently as LEOGPS has no feature to read in spacecraft attitude coordinates, it will not be able to tell the orientation of the spacecraft and thus applying GPS antenna offsets using XYZ coordinates in the orbit frame is erroneous. For now, this has been (conveniently) cast to future work, and users are advised not to set any non-zero offsets. The input box in the GUI has also been closed. Thus, all coordinates computed in LEOGPS of the spacecraft(s) are not of the spacecraft center of mass, but of the GPS antenna phase center.

    invalid 
    opened by sammmlow 3
Releases(1.3)
  • 1.3(Sep 22, 2021)

    🌏 📡 🌏 📡 LEOGPS v1.3 Release!!! ❤️ ❤️ ❤️ ❤️

    ...

    gui-v1-3

    ...

    • Major fix in GUI re-scaling issues due to TKinter's variability in screen resolution.
    • Documented LEOGPS functions with in-depth docstrings according to PEP 257 conventions.
    • Temporarily disabled GPS Antenna Offsets (since no body-to-orbit-frame conversion feature exists yet.
    • Removed extraneous GUI parameters.
    • Cleaned up documentation and comments in the code.
    Source code(tar.gz)
    Source code(zip)
  • 1.2(Aug 9, 2021)

    🎯 LEOGPS v1.2 now supports coordinate reference frame transformation (ITRF, ICRF, and Euler-Hill for formation flying visualisation). An embedded Matplotlib graph is now included in the GUI for ease of visualisation (recommended to be set to the Hill frame).

    gui-v12

    Source code(tar.gz)
    Source code(zip)
  • 1.1(Apr 15, 2021)

    Latest release for LEOGPS v1.1

    Replaced Hatanaka executable with Martin Valgur's Pythonic translation:

    • The Hatanaka library in Python was kindly contributed by Martin Valgur in v1.1, and replaces the older "RNX2CRX" (and GZIP, thanks to the unlzw3 library) which are Windows-only executables, making the (de)compression possible across all platforms.
    Source code(tar.gz)
    Source code(zip)
  • 1.0(Mar 29, 2021)

    Official stable release for LEOGPS v1.0!

    Major bug fixes:

    • Fixed ~50m positioning errors in single point positioning (posvel.py) as GPS satellite motion across signal time of flight was not accounted for previously.

    • Fixed velocity estimation accuracy in the absence of Doppler data, by improving the polynomial interpolation of carrier phase; velocity estimates of LEO satellites, even without Doppler readings, can now be estimated with errors ~1m/s.

    • Full documentation for the LEOGPS software is now provided on a read-the-docs template.

    • Included receiver clock bias estimation errors in the final output report.

    Source code(tar.gz)
    Source code(zip)
  • 0.3(Jan 12, 2021)

    LEOGPS is an open-source Python package for absolute and relative satellite navigation, with specific intent for relative navigation between formation flying satellites. It currently supports only observations from the GPS constellation, up to L1/L2 frequency, with input files as RINEX v2.XX. It uses ephemeris and clock files from the University of Bern, CODE, in v0.3.

    Source code(tar.gz)
    Source code(zip)
Owner
Samuel Low
♥️ Space 🌌 Orbits 🚀 Tech 📡 Earth 🌏 Nature 🌳 Life 🐢
Samuel Low
r.cfdtools 7 Dec 28, 2022
Blender addons to make the bridge between Blender and geographic data

Blender GIS Blender minimal version : 2.8 Mac users warning : currently the addon does not work on Mac with Blender 2.80 to 2.82. Please do not report

5.9k Jan 02, 2023
ProjPicker (projection picker) is a Python module that allows the user to select all coordinate reference systems (CRSs)

ProjPicker ProjPicker (projection picker) is a Python module that allows the user to select all coordinate reference systems (CRSs) whose extent compl

Huidae Cho 4 Feb 06, 2022
LicenseLocation - License Location With Python

LicenseLocation Hi,everyone! ❤ 🧡 💛 💚 💙 💜 This is my first project! ✔ Actual

The Bin 1 Jan 25, 2022
Solving the Traveling Salesman Problem using Self-Organizing Maps

Solving the Traveling Salesman Problem using Self-Organizing Maps This repository contains an implementation of a Self Organizing Map that can be used

Diego Vicente 3.1k Dec 31, 2022
GeoIP Legacy Python API

MaxMind GeoIP Legacy Python Extension API Requirements Python 2.5+ or 3.3+ GeoIP Legacy C Library 1.4.7 or greater Installation With pip: $ pip instal

MaxMind 230 Nov 10, 2022
OSMnx: Python for street networks. Retrieve, model, analyze, and visualize street networks and other spatial data from OpenStreetMap.

OSMnx OSMnx is a Python package that lets you download geospatial data from OpenStreetMap and model, project, visualize, and analyze real-world street

Geoff Boeing 4k Jan 08, 2023
GebPy is a Python-based, open source tool for the generation of geological data of minerals, rocks and complete lithological sequences.

GebPy is a Python-based, open source tool for the generation of geological data of minerals, rocks and complete lithological sequences. The data can be generated randomly or with respect to user-defi

Maximilian Beeskow 16 Nov 29, 2022
Fiona reads and writes geographic data files

Fiona Fiona reads and writes geographic data files and thereby helps Python programmers integrate geographic information systems with other computer s

987 Jan 04, 2023
Construct and use map tile grids in different projection.

Morecantile +-------------+-------------+ ymax | | | | x: 0 | x: 1 | | y: 0 | y: 0

Development Seed 67 Dec 23, 2022
The geospatial toolkit for redistricting data.

maup maup is the geospatial toolkit for redistricting data. The package streamlines the basic workflows that arise when working with blocks, precincts

Metric Geometry and Gerrymandering Group 60 Dec 05, 2022
Replace MSFS2020's bing map to google map

English verison here 中文 免责声明 本教程提到的方法仅用于研究和学习用途。我不对使用、拓展该教程及方法所造成的任何法律责任和损失负责。 背景 微软模拟飞行2020的地景使用了Bing的卫星地图,然而卫星地图比较老旧,很多地区都是几年前的图设置直接是没有的。这种现象在全球不同地区

hesicong 272 Dec 24, 2022
h3-js provides a JavaScript version of H3, a hexagon-based geospatial indexing system.

h3-js The h3-js library provides a pure-JavaScript version of the H3 Core Library, a hexagon-based geographic grid system. It can be used either in No

Uber Open Source 648 Jan 07, 2023
Django model field that can hold a geoposition, and corresponding widget

django-geoposition A model field that can hold a geoposition (latitude/longitude), and corresponding admin/form widget. Prerequisites Starting with ve

Philipp Bosch 324 Oct 17, 2022
Logging the position of the car on an sdcard

audi-mmi-3g-gps-logging Logging the position of the car on an sdcard, startup script origin not clear to me, logging setup and time change is what I d

2 May 31, 2022
Simple CLI for Google Earth Engine Uploads

geeup: Simple CLI for Earth Engine Uploads with Selenium Support This tool came of the simple need to handle batch uploads of both image assets to col

Samapriya Roy 79 Nov 26, 2022
Build, deploy and extract satellite public constellations with one command line.

SatExtractor Build, deploy and extract satellite public constellations with one command line. Table of Contents About The Project Getting Started Stru

Frontier Development Lab 70 Nov 18, 2022
Use Mapbox GL JS to visualize data in a Python Jupyter notebook

Location Data Visualization library for Jupyter Notebooks Library documentation at https://mapbox-mapboxgl-jupyter.readthedocs-hosted.com/en/latest/.

Mapbox 620 Dec 15, 2022
Spatial Interpolation Toolbox is a Python-based GUI that is able to interpolate spatial data in vector format.

Spatial Interpolation Toolbox This is the home to Spatial Interpolation Toolbox, a graphical user interface (GUI) for interpolating geographic vector

Michael Ward 2 Nov 01, 2021
Open GeoJSON data on geojson.io

geojsonio.py Open GeoJSON data on geojson.io from Python. geojsonio.py also contains a command line utility that is a Python port of geojsonio-cli. Us

Jacob Wasserman 114 Dec 21, 2022