Skip to content

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

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)"

KBE3D @3.0.0 Copyright © 2024-present KBE3D