Skip to content

Commit

Permalink
add code from tle-api project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Stanojevic committed Jan 8, 2020
1 parent 9cf2335 commit 5bd7487
Show file tree
Hide file tree
Showing 32 changed files with 2,824 additions and 461 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea

/vendor
File renamed without changes.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# TLE - Two Line Element
NASA/NORAD Two line element set framework
# TLE PHP

A two-line element (TLE) is a set of two data lines listing orbital elements that describe the state (position and velocity) of an Earth-orbiting object. The TLE data representation is specific to the Simplified perturbations models (SGP, SGP4, SDP4, SGP8 and SDP8) so any algorithm using a TLE as a data source must implement one of the simplified perturbations models to correctly compute the state of an object at a time of interest.
Client for NASA TLE API (http://api.nasa.gov/) and TLE framework implemented in php.

Parser usage:
# About

The TLE API provides up to date two line element set records, the data is updated daily from [CelesTrak](https://celestrak.com/) and served in JSON format. A two-line element set (TLE) is a data format encoding a list of orbital elements of an Earth-orbiting object for a given point in time. For more information on TLE data format visit [Definition of Two-line Element Set Coordinate System](https://spaceflight.nasa.gov/realdata/sightings/SSapplications/Post/JavaSSOP/SSOP_Help/tle_def.html).

#Usage
```
use TLE\Parser;
use Ivanstan\Tle\Api;
$tleParser = new Parser($tleString);
$client = new Api();
$tleParser->eccentricity;
$tleParser->raan;
$tle = $client->get(25544);
$tle->getLine1();
$tle->getLine2();
```
16 changes: 0 additions & 16 deletions TLE/Constant.php

This file was deleted.

Loading

0 comments on commit 5bd7487

Please sign in to comment.