Appearance
KBE3D / KBSatellite / _tlejs / getSatelliteName
函数: getSatelliteName()
getSatelliteName(
tle:TLE,fallbackToCOSPAR?:boolean):string
Determines the name of a satellite, if present in the first line of a 3-line TLE. If not found, returns "Unknown" by default (or the COSPAR ID when fallbackToCOSPAR is true).
参数
tle
Input TLE.
fallbackToCOSPAR?
boolean
If satellite name isn't found, returns COSPAR ID instead of "Unknown".
返回
string
示例
ts
getSatelliteName('1 25544U 98067A 17206.51418 ...');
"ISS (ZARYA)"