tracker – matoken's blog https://matoken.org/blog Is there no plan B? Fri, 06 Jun 2025 23:11:37 +0000 ja hourly 1 https://wordpress.org/?v=6.9.4 https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9-32x32.jpeg tracker – matoken's blog https://matoken.org/blog 32 32 terminal衛星追跡アプリのtrackerに衛星を追加 https://matoken.org/blog/2025/06/07/add-satellites-to-the-tracker/ https://matoken.org/blog/2025/06/07/add-satellites-to-the-tracker/#respond Fri, 06 Jun 2025 23:10:48 +0000 https://matoken.org/blog/?p=4594

ターミナル上で動作する衛星追跡,軌道予測ソフトウェアのtrackerが楽しくて色々な衛星の軌道を見たりして楽しんでいます.

しかし設定された衛星しか見ることができません.
任意の衛星を登録してみました.

sourceを眺めると衛星はsource内にハードコードされていて,それを元にCelesTrakから軌道データを取得しているようです.
衛星のタイプは2種類の方法で登録してあり,ISSなどは任意のYYYY-NNNAAA形式の(例えば1994-029AAB)国際識別子で個別の衛星を設定,若しくはCelesTrakでGROUPで検索できるgroup名でそのグループの衛星群(例えばWeatherで様々な気象衛星)が登録してあります.

個別の衛星を追加

時別の衛星を登録してみます.

まず対象の衛星の国際識別子を調べます.
先ずはCelesTrakの以下のページで衛星を検索します.

検索結果から「International Designator」をメモします.

例えば「あらせ」を登録したい場合,「ARASE」で検索,検索結果を見ると国際識別子は「2016-080A」なのでこれをメモしておきます.

次にtrackerのsourceを編集します.
衛星の情報は src/satellite_group.rs に書かれているのでこれを編集します.
pub enum SatelliteGroup { の適当な場所に衛星名を登録します.
fn cospar_id(&self) → Option<&str> { の中に国際識別子を登録します.

今回は以下のようにしました.

$ git diff
diff --git a/src/satellite_group.rs b/src/satellite_group.rs
index 88bbce8..b895b54 100644
--- a/src/satellite_group.rs
+++ b/src/satellite_group.rs
@@ -51,6 +51,7 @@ pub enum SatelliteGroup {
     #[strum(to_string = "Radar calibration")]
     RadarCalibration,
     CubeSats,
+    Arase,
 }

 impl SatelliteGroup {
@@ -124,6 +125,7 @@ impl SatelliteGroup {
             Self::Iss => Some("1998-067A"),
             Self::Css => Some("2021-035A"),
             Self::Dfh1 => Some("1970-034A"),
+            Self::Arase => Some("2016-080A"),
             _ => None,
         }
     }

buildして実行して動作確認をします.

$ cargo build
$ target/debug/tracker

あらせの楕円軌道が表示できるようになりました :)

tracker arase

衛星グループを登録

一つ一つ衛星を登録してくのは面倒です.CelesTrakの以下のページから好みのグループを探したり,

以下のページから該当の衛星のCatalog Numberから検索します.groupに存在する場合表示されます.

group名がわかったらsourceをいじります.
今回は最近第1弾の衛星群の打ち上げのあったAmazonの低軌道通信衛星サービスのProject Kuiperだと思われるkuiperで試してみます.

わかりやすいように一旦元に戻します.

$ git reset --hard

今夏も src/satellite_group.rs を編集します.

$ git diff src/satellite_group.rs
diff --git a/src/satellite_group.rs b/src/satellite_group.rs
index 88bbce8..33c5d0b 100644
--- a/src/satellite_group.rs
+++ b/src/satellite_group.rs
@@ -37,6 +37,9 @@ pub enum SatelliteGroup {
     Galileo,
     Beidou,

+    // Communications Satellites
+    Kuiper,
+
     // Scientific satellites
     #[strum(to_string = "Space & Earth Science")]
     SpaceEarthScience,
@@ -141,6 +144,7 @@ impl SatelliteGroup {
             Self::Glonass => Some("glo-ops"),
             Self::Galileo => Some("galileo"),
             Self::Beidou => Some("beidou"),
+            Self::Kuiper => Some("kuiper"),
             Self::SpaceEarthScience => Some("science"),
             Self::Geodetic => Some("geodetic"),
             Self::Engineering => Some("engineering"),

buildして実行して動作確認をします.

$ cargo build
$ target/debug/tracker

まだ1回の打ち上げしか無いので1つの軌道しかなさそうです.

tracker kuiper

Note

Project Kuiperの次の打ち上げ予定日は6/13.その後今年だけで48回予定がされていそうで追い上げがすごいですね.FCCとの兼ね合いなんでしょうが.
https://nextspaceflight.com/launches/?search=kuiper

Note

ちなみにStarlinkも試したところ7500機以上あるので極以外の地図が埋もれてしまいました…….

View on Mastodon

後はCelesTrakのgroupに無い自分で選んだ衛星群(みちびき群とか)も登録できるといいなと思うのですが少しロジックをいじらないといけなそうです.

]]>
https://matoken.org/blog/2025/06/07/add-satellites-to-the-tracker/feed/ 0
terminal衛星追跡アプリのtracker https://matoken.org/blog/2025/05/31/terminal-based-real-time-satellite-tracking/ https://matoken.org/blog/2025/05/31/terminal-based-real-time-satellite-tracking/#comments Fri, 30 May 2025 22:11:21 +0000 https://matoken.org/blog/?p=4576

ターミナル上で動作する衛星追跡,軌道予測アプリケーションを見つけたので試してみました.

導入はcargoコマンドで行いました.

$ cargo install --git https://github.com/ShenMian/tracker
$ which tracker
/home/matoken/.cargo/bin/tracker
Note

Raspberry Pi OS bookworm armhfではcargoのバージョンの問題でうまく行きませんでした.

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2024` edition, and only supports `2015`, `2018`, and `2021` editions.

若しくはいくつかの環境向けにはreleasesページにバイナリがおいてあるようです.(未確認)

tracker-linux-x86_64.tar.gz
tracker-macos-aarch64.tar.gz
tracker-macos-x86_64.tar.gz
tracker-windows-x86_64.zip

起動します.もしbuildは成功したのにコマンドが見当たらない場合はPATHが通っていないと思うのでPATHを通すか ~/.cargo/bin/tracker で起動するかもしれません.

$ tracker

操作はマウスのみのようです.
まず右下の「Satellite groups」から好みのグループをクリックで選びます.(複数選択可)
すると少し経ってからマップに衛星(群)がプロットされるので好みの衛星をクリックすると予測軌道が(おそらくこの後の地球1周分)マップ上に,それと右上の「Object information」が表示されます.
以下の画像ではISSの予想軌道が表示されています.

tracker

以下はWratherとEarth resourcesグループを表示して日本のALOS-2(だいち2号)の軌道を表示しています.

tracker alos2

静止衛星のひまわりなどを選ぶと予想軌道は見えません.

色々と衛星を眺めつつその衛星について調べたりすると楽しいです.
この衛星はもう運用終わって墓場軌道でこんな動きなのかとか.

若しくは少し実用的にだと上の画像だと右上のPeriodが90分ほどなのでしばらくするとISSが日本上空を通過するので晴れていれば見えそうとかがわかります.

リアルタイムで衛星は遷移していくので眺めているだけでも楽しいです.

ターミナルで動作する天文ソフトウェアだと星図のastrotermもおすすめです.

]]>
https://matoken.org/blog/2025/05/31/terminal-based-real-time-satellite-tracking/feed/ 4