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
Python package for earth-observing satellite data processing

Satpy The Satpy package is a python library for reading and manipulating meteorological remote sensing data and writing it to various image and data f

PyTroll 882 Dec 27, 2022
Download and process satellite imagery in Python using Sentinel Hub services.

Description The sentinelhub Python package allows users to make OGC (WMS and WCS) web requests to download and process satellite images within your Py

Sentinel Hub 659 Dec 23, 2022
A simple python script that, given a location and a date, uses the Nasa Earth API to show a photo taken by the Landsat 8 satellite. The script must be executed on the command-line.

What does it do? Given a location and a date, it uses the Nasa Earth API to show a photo taken by the Landsat 8 satellite. The script must be executed

Caio 42 Nov 26, 2022
Search and download Copernicus Sentinel satellite images

sentinelsat Sentinelsat makes searching, downloading and retrieving the metadata of Sentinel satellite images from the Copernicus Open Access Hub easy

null 837 Dec 28, 2022
A utility to search, download and process Landsat 8 satellite imagery

Landsat-util Landsat-util is a command line utility that makes it easy to search, download, and process Landsat imagery. Docs For full documentation v

Development Seed 681 Dec 7, 2022
framework for large-scale SAR satellite data processing

pyroSAR A Python Framework for Large-Scale SAR Satellite Data Processing The pyroSAR package aims at providing a complete solution for the scalable or

John Truckenbrodt 389 Dec 21, 2022
Satellite imagery for dummies.

felicette Satellite imagery for dummies. What can you do with this tool? TL;DR: Generate JPEG earth imagery from coordinates/location name with public

Shivashis Padhi 1.8k Jan 3, 2023
Xarray backend to Copernicus Sentinel-1 satellite data products

xarray-sentinel WARNING: this product is a "technology preview" / pre-Alpha Xarray backend to explore and load Copernicus Sentinel-1 satellite data pr

B-Open 191 Dec 15, 2022
EOReader is a multi-satellite reader allowing you to open optical and SAR data.

Remote-sensing opensource python library reading optical and SAR sensors, loading and stacking bands, clouds, DEM and index.

ICube-SERTIT 152 Dec 30, 2022
QLUSTER is a relative orbit design tool for formation flying satellite missions and space rendezvous scenarios

QLUSTER is a relative orbit design tool for formation flying satellite missions and space rendezvous scenarios, that I wrote in Python 3 for my own research and visualisation. It is currently unfinished (95%) but the core algorithm and app works. Here's an example snippet of the GUI where four deputy satellites are orbiting a single chief in LEO.

Samuel Low 9 Aug 23, 2022
Google Maps keeps old satellite imagery around for a while – this tool collects what's available for a user-specified region in the form of a GIF.

google-maps-at-88-mph The folks maintaining Google Maps regularly update the satellite imagery it serves its users, but outdated versions of the image

Noah Doersing 111 Sep 27, 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
A package to fetch sentinel 2 Satellite data from Google.

Sentinel 2 Data Fetcher Installation Create a Virtual Environment and activate it. python3 -m venv venv . venv/bin/activate Install the Package via pi

null 1 Nov 18, 2021
Calculate & view the trajectory and live position of any earth-orbiting satellite

satellite-visualization A cross-platform application to calculate & view the trajectory and live position of any earth-orbiting satellite in 3D. This

Space Technology and Astronomy Cell - Open Source Society 3 Jan 8, 2022
Script that allows to download data with satellite's orbit height and create CSV with their change in time.

Satellite orbit height β—Ύ Requirements Python >= 3.8 Packages listen in reuirements.txt (run pip install -r requirements.txt) Account on Space Track β—Ύ

Alicja MusiaΕ‚ 2 Jan 17, 2022
Using Global fishing watch's data to build a machine learning model that can identify illegal fishing and poaching activities through satellite and geo-location data.

Using Global fishing watch's data to build a machine learning model that can identify illegal fishing and poaching activities through satellite and geo-location data.

Ayush Mishra 3 May 6, 2022
This is a simple python code to get IP address and its location using python

IP address & Location finder @DEV/ED : Pavan Ananth Sharma Dependencies: ip2geotools Note: use pip install ip2geotools to install this in your termin

Pavan Ananth Sharma 2 Jul 5, 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
Python bindings and utilities for GeoJSON

geojson This Python library contains: Functions for encoding and decoding GeoJSON formatted data Classes for all GeoJSON Objects An implementation of

Jazzband 765 Jan 6, 2023