Giter Site home page Giter Site logo

tle's Introduction

tle

Two Line Element position calculator

A simple Python script which generates CSV files with time and satellite position (ECEF)

TLE data can come from Celestrak or any other source which is formatted correctly. The TLE data is fetched and SV position is calculated for points at specified time intervals.

You will need SGP4 installed. On Ubuntu this can be accomplished with

apt install python-sgp4

Usage

python tle_calc.py

Inputs

Enter TLE url:

Enter the url of TLE data, e.g. https://www.celestrak.com/NORAD/elements/iridium.txt

Enter satellite name (blank=all):

Enter a satellite name, e.g. 'IRIDIUM 70'. This field is optional; leaving it blank will generate generate tracks for all satellites in separate CSV files.

This performs a partial match against the downloaded TLE; entering IRIDIUM 7 will match against IRIDIUM 7 [-]

Enter start date and time (UTC, blank=system time) (YYYY, MM, DD, HH, MM, SS, MICROS):

Enter the time of the first sample. This field is optional; leaving it blank will use the current system time. Microseconds supports up to 6 digits.

Enter field to be incremented [hr, min, sec, us]:

Enter the time field to increment

Enter the incrementation value:

Enter the value by which to increment the previously specified field. For example, if you entered 'min' at the previous step, entering 15 will produce time steps of 15 minutes.

Note that the python datetime object used to represent timestamps does not support leap seconds, so if your specified interval crosses a leap second the physical time between samples is not expected to be correct.

Enter total number of samples:

Enter the total number of positions to calculate, e.g. 101.

Outputs

A CSV file is generated containing timestamps (year, month, day, hour, minute, second) and x, y, x satellite positions in ECEF coordinates. By default WGS84 is used, but this can be modified in the source code.

tle's People

Contributors

oostern avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.