TLE structure from string
tle = CL_tle_parse(str [[, desc]])
This function creates a TLE structure from two-line elements given as a two-line string, or a string containing JSON or XML (CCSDS OMM) format.
The optional argument desc may be used to pass additional information (name of object...). if the format is JSON or XML, the "OBJECT_NAME" field is used by default.
The created structure contains the same information as initially present in the string: The time scale is assumed to be "UTC" and the reference frame is assumed to be "TEME" (no check is performed).
In case of parsing errors (unexpected characters encountered, bad checksum value(s)...), the status field in the TLE structure is set to a non-zero value:
-1: Error while trying to get the value of some field.
-2: Invalid checksum for the first or second line (for "classical" TLEs only).
Note:
- The checksum checking can be by-passed by removing the checksum characters in the two-line strings or by replacing them by an non-numeric characters ("classical" TLEs only).
- XML and JSON formats are supposed to be valid. The validity of the format is not checked.
(string) String containing two-line elements (variable format) (2xN for 2-line elements, 1x1 or Px1 for JSON format, 1x1 or Px1 for XML format)
(string, optional) TLE Descriptions (i.e. objects names). May be empty (1xN)
TLE structure containing all the (decoded) two-line elements (size N)
CNES - DCT/SB/MS