本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · 通過: 衛星が場所の空を通る時刻

findPasses関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Every pass of the satellites over a place in a span of time, the ones a person can see or all of them. For each satellite the search steps through the span every 30 seconds, then narrows each rise, highest point and set to a tenth of a second; for each pass it works out where the satellite is lit by the Sun, how dark the watcher's sky is, and how bright the satellite looks. It needs satellite.js (MIT, an optional peer dependency) and imports in a browser or on a server. It is for satellites that rise and set within hours (low orbits); one that stays above the horizon (a geostationary one) has no passes.

Passes depend on fresh elements: SGP4's error grows by about a second of time a day or two for the ISS, and a reboost (the ISS has one every month or two) moves the station by more than that all at once, so a pass is as good as the elements are new. Each pass says how old they are (elementAgeDays) and flags stale after two weeks.

インポート

import { findPasses } from "@johnmorrisdotca/chikyu-earth/passes";

定義

function findPasses(sets: ElementSet | readonly ElementSet[], observer: Observer, window: PassWindow, options?: PassOptions): SatellitePass[]

引数

名前型説明
setsElementSet | readonly ElementSet[]

One element set or several, in CelesTrak's JSON format (ElementSet), fetched by your page.

observerObserver

Where the watcher stands.

windowPassWindow

The span to look in, from to to in milliseconds since the Unix epoch; a pass is listed when its highest point is in it.

options (省略可)PassOptions

The lowest altitude, the lightest sky, whether to list the passes that cannot be seen, the limiting magnitude and your own standard magnitudes.

戻り値

SatellitePass[]

The passes, earliest first, each with its start, highest point and end, the part that can be seen and why not when none can.

例

import { findPasses } from "@johnmorrisdotca/chikyu-earth/passes";

const iss = {
  OBJECT_NAME: "ISS (ZARYA)",
  OBJECT_ID: "1998-067A",
  EPOCH: "2026-11-02T10:25:21.580320",
  MEAN_MOTION: 15.49150046,
  ECCENTRICITY: 0.0007139,
  INCLINATION: 51.6332,
  RA_OF_ASC_NODE: 335.9757,
  ARG_OF_PERICENTER: 339.3739,
  MEAN_ANOMALY: 20.6961,
  NORAD_CAT_ID: 25544,
  BSTAR: 0.00012,
  MEAN_MOTION_DOT: 0.0001,
  MEAN_MOTION_DDOT: 0,
};
const day = Date.UTC(2026, 10, 3);
const passes = findPasses(iss, { latitude: 51.5, longitude: -0.13 }, { from: day, to: day + 5 * 86_400_000 }, { all: true });
console.log(passes.length > 0, passes[0]?.highest.compass);
true S

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。