リファレンス · 地球周回軌道のカタログ: 軌道の分類、物体の種類、色、衛星群、パック形式のファイル(データは含みません)
readCatalogueRecords関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Read catalogue records from OMM text, as JSON (a list of objects) or CSV (a header row, then a row for each object). Each row's elements are read as parseElements reads them, and OBJECT_TYPE (PAYLOAD, ROCKET BODY, DEBRIS,
UNKNOWN, TBA), COUNTRY_CODE, LAUNCH_DATE and RCS_SIZE give the kind, owner, launch and radar size where the row has them. Six-digit and longer catalogue numbers are read as they are: OMM carries them where a TLE cannot.
It throws if the text is neither JSON nor CSV with a header.
インポート
import { readCatalogueRecords } from "@johnmorrisdotca/chikyu-earth/catalogue";
定義
function readCatalogueRecords(input: string): CatalogueRead
引数
| 名前 | 型 | 説明 |
|---|---|---|
input | string | What the source answered. |
戻り値
CatalogueRead
The records, and the count left out.
例
import { readCatalogueRecords } from "@johnmorrisdotca/chikyu-earth/catalogue";
const csv = [
"OBJECT_NAME,OBJECT_ID,EPOCH,MEAN_MOTION,ECCENTRICITY,INCLINATION,RA_OF_ASC_NODE,ARG_OF_PERICENTER,MEAN_ANOMALY,NORAD_CAT_ID,BSTAR,MEAN_MOTION_DOT,MEAN_MOTION_DDOT,OBJECT_TYPE,COUNTRY_CODE,LAUNCH_DATE,RCS_SIZE",
"MADE-UP DEB,2026-002B,2026-11-08T04:12:35,14.9,0.01,82,10,90,20,1000001,0.0001,0.00001,0,DEBRIS,US,2026-02-01,SMALL",
].join("\n");
const { records } = readCatalogueRecords(csv);
console.log(records[0]?.set.NORAD_CAT_ID, records[0]?.kind, records[0]?.owner, records[0]?.size);1000001 DEB US S出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。