Giter VIP home page Giter VIP logo

rinpy's Introduction

RinPy Repository

Python package for handling RINEX version 2.1x and 3.x, regardless of number of systems in the data.

Author: Joakim Strandberg

python setup.py develop

RinPy can be use used to read data from a RINEX file and store it in numpy's compressed npz-format, or to load it directly into the workspace.

To load into memory and plot GPS SNR data for the L1 signal for satellite with PRN number 20:

import rinpy
from matplotlib import pyplot as plt

systemdata, systemsatlists, prntoidx, obstypes, header, obstimes = rinpy.processrinexfile('GTGU2000.15o')
snr_idx = [idx for idx, type in enumerate(obstypes['G']) if 'S1' in type][0]

plt.plot(obstimes, systemdata['G'][:, prntoidx['G'][20], snr_idx])
plt.xlabel('Time')
plt.ylabel('SNR')
plt.show()

SNR plot

Saving to and loading from file:

import rinpy

rinpy.processrinexfile('GTGU2000.15o', 'GTGU2000.15o.npz')
systemdata, systemsatlists, prntoidx, obstypes, header, obstimes = rinpy.loadrinexfromnpz('GTGU2000.15o.npz')

Each of the outputs from rinpy.processrinexfile and rinpy.loadrinexfromnpz are dicts where the keys are the system letters used in the RINEX format, e.g.:

  • G - for GPS
  • R - for GLONASS
  • E - for Galileo
  • S - for SBAS

For example obstypes['R'] gives a list of observables for the GLONASS system.

The code in this package is part of a larger code written for analysing GNSS SNR data for GNSS reflectometry, and is part of the work made for the paper:

Strandberg, J., T. Hobiger, and R. Haas (2016), Improving GNSS-R sea level determination through inverse modeling of SNR data, Radio Science, 51, 1286โ€“1296, doi:10.1002/2016RS006057.

RinPy is licensed under the MIT license - see the LICENSE file.

rinpy's People

Contributors

ydmir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.