Taos API Reference
    Preparing search index...

    Class SatelliteCatalog

    A loaded satellite catalogue: parsed SGP4 records plus per-object state arrays refreshed by propagate. Indexed 0..count-1 in the same order throughout.

    Index

    Properties

    count: number

    Number of catalogued objects (including any that error during propagation).

    attribution: string

    Attribution string that must be shown while the layer is on screen.

    names: string[]
    noradIds: Int32Array
    groups: Uint8Array

    ECEF position in METRES, [x,y,z] per object; valid where alive[i] is 1.

    alive: Uint8Array

    1 where the last propagate produced a valid position, else 0 (decayed / error).

    sunlit: Uint8Array

    1 where the object is currently sunlit (see "./frames".isSunlit).

    altitudeKm: Float32Array

    Altitude above the WGS84 sphere in km (approx), per object.

    speedKmS: Float32Array

    Inertial speed in km/s, per object.

    Methods

    • Streams the current catalogue live from CelesTrak GP JSON (OMM). CelesTrak is rate-limited (one download per 2 h update) and not reliably CORS-open, so in the browser this usually needs the server/ relay; pass a proxied baseUrl for that.

      Parameters

      • opts: { baseUrl?: string; groups?: string[] } = {}
        • OptionalbaseUrl?: string

          GP endpoint base (default the CelesTrak public URL).

        • Optionalgroups?: string[]

          GP groups to merge, in increasing tag priority.

      Returns Promise<SatelliteCatalog>

    • Index of the object with the given NORAD id, or -1. Linear; cache the result.

      Parameters

      • noradId: number

      Returns number