Skip to main content

Code calculating TEC from RINEX information

Project description

ionotec

Python library for Total Electron Content computing from Rinex files

Requirements

Tested on python 3.9.2

Installation

pip install ionotec

Known Errors

Incompatible xarray module version with georinex

Georinex has some specific dependencies that we have observed could be broken. In particular latest versions of the "xarray" module are not compatible with georinex and might make the georinex "load" method fail.

A known solution is to force a working version of "xarray":

pip3 install xarray=0.20.1

Other problems

Please report problems you find to install ionotec to sylvain.blunier@gmail.com

Code

Loading module

To load the pytec module do:

from ionotec import tec

Defining input data

Computing VTEC requires having the following elements:

  1. A list Rinex observation file This is the file list where the code and phase data will be extracted. The files will be concatenated in the process they should come in continous and chronological order.
  • Format: List of string
  • Example: f_obs=["/home/me/pytec/amtc1200.21o","/home/me/pytec/amtc1210.21o","/home/me/pytec/amtc1220.21o"]
  1. List of Rinex navigation file This is the file list where the position of the satellites will be extracted, usually with a few well chosen files, positions of all satellites can be calculated. Of course, they should correspond to the periods of observation files.
  • Format: List of string
  • Example: f_nav=["/home/me/pytec/amtc1201.21n","/home/me/pytec/amtc1211.21n","/home/me/pytec/amtc1221.21n"]
  1. File containing bias of satellites in DCB File containing the bias of satellites corresponding to the month of observation files
  • Format: string pointing to DCB file
  • Example: f_bias="/home/me/pytec/P1P22104.DCB"

Computing VTEC

Once these elements are defined, an instance of pytec can be created:

station_tec = tec.tec(f_obs,f_nav,f_bias)

And VTEC can be computed with default parameters:

station_tec.compute_vtec()

This will create one file in feather format in the same path as the second item of f_obs, or the first one in case f_obs is a one item list, so in the case of the variables defined upper the files should be found at /home/me/pytec/amtc121-tec.feater. It will contain the following information:

  • time (string): YYYY-MM-DD HH:mm:ss format
  • sv (string): satellite from which is calculated VTEC
  • lat (float): latitude of calculted piercing point
  • lon (float): longitude of calculated piercing point
  • elevation (float): elevation of satellite in Radians
  • STEC_slp (float): slant TEC in TEC Units calculated with pseudo range (P1 and C1 in rinex observation files)
  • STEC_sl (float): slant TEC in TEC Units calculated with code phases (L1 and L2 in rinex observation files)
  • VTEC (float): Vertical TEC in TEC Units, corrected with baseline, satellite bias, receiver bias.

The pandas DataFrame of this data can be directly accessed in the instanciated object through: station_tec.df_obs.

Plots

Fast PNGs of data can be directly produced using the pytec.graph submodule:

from pytec import graph

All satellites in one graph

graph.plot_station(station_tec.df_obs,destination)

or 8 satellited per graph in a mozaic fashion

graph.plot_station(station_tec.df_obs,destination,mozaic=True)

Of course the destination argument should contain the path where you wish to keep the produced graphs; do not add any extension, the method does it alone.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ionotec-0.0.10.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ionotec-0.0.10-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file ionotec-0.0.10.tar.gz.

File metadata

  • Download URL: ionotec-0.0.10.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ionotec-0.0.10.tar.gz
Algorithm Hash digest
SHA256 52576785e4e38e0e2950f992f41cd7ed9e73416f94c7ae44e105ee172aa9c510
MD5 ea125e4bf466cdce788efb2e497bd8b4
BLAKE2b-256 f86fe18640fc197c95aee7684291381f50d0eab636b763a262484845e6ce1bc0

See more details on using hashes here.

File details

Details for the file ionotec-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: ionotec-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ionotec-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cf691bb857489b22509c5dd33ed04639477e737d2e54da6d5111aaf03e149eba
MD5 bf67a80cb5c58c0febba9dce9e76516d
BLAKE2b-256 f2f3eaecc5615eae4d353a4b798953e0073a0d31fe9dd9ccae8a496801e706c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page