Loads TLEs from files
tle = CL_tle_load(fnames)
Loads two-line elements from files.
The files may contain:
- Classical TLEs on 2 lines: line1 and line2: TLE1, line3 and line4: TLE2, etc...
- Classical TLEs on 3 lines (called "3LEs"): line1, line2, line3: TLE1, line4, line5, line6: TLE2, etc... Line1, line4, etc... contain the respective satellite names.
- TLEs given as JSON format.
- TLEs given as XML format (CCSDS OMM).
The file names are considered in sequence.
The status field is set to a non-zero value if parsing errors occur (see CL_tle_parse).
The information present in the TLE structure is exactly the same as in the files. The time scale is assumed to be "UTC" and the reference frame is assumed to be "TEME" (no check is performed).
Notes:
The spaces at the beginning or end of a line are ignored.
Empty lines are removed.
For classical "TLEs" or "3LEs", for the files to be read correctly, one of the following conditions should be true:
-No description line is present in the file
-The description line does not begin with "1" or "2" or its length is not 69
(string) File names or paths (1xP)
Structure containing all the TLEs present in the files (size N)
CNES - DCT/SB/MS
fnames = CL_path("tle_examples.txt", CL_home(), "all"); tle = CL_tle_load(fnames); // show 2nd element of TLE structure tle(2) // show all eccentricities tle.ecc // select TLE indices such that eccentricity is more than 0.01 I = find(tle.ecc > 0.01); tle2 = tle(I) | ![]() | ![]() |