[TLEstr, TLEform] = TLEParse(CatalogLoc,[SearchList])
Loads TLEs from the given catalog file or the most recent data if a catalog directory is specified. Parses a TLE string array or file location into a structure of strings. It also pads any lines that fall short of the needed 69 characters and handles two and three line element sets. If no file is passed in with the location string, the code will grab the latest file that has the word "catalog" in it (after the space-track.org convention) and you may pass in a gzip file directly. SearchParam is set for either "Name" or "SatNum" and the SearchList is a STRING array of the satellites of interest to extract and return in a smaller string array. This code was designed specifically for use with the space-track.org satellite catalog.
Parameters |
Description |
CatalogLoc [string/cell] |
A string with the catalog name and/or location. Can be a cell array of catalog files/locations |
SearchList [string/scalar] |
(Optional) If a string, returns all TLE (3-line only) where the satellite names begins with SearchString. If a number, returns all TLEs (2 or 3-line) where the satellite number is SearchString. |
Return Values |
Description |
TLEstr [string array] |
Parsed TLE list |
TLEform [scalar] |
Report a two or three line convention |
www.space-track.org
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|