3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cesiumで衛星確認

3
Last updated at Posted at 2018-04-29

概要

 まずは、TLEから衛星の航跡を見てみましょう

方法

 まあ、今回は単純にczmlをtleから作って表示するだけです。

TLE

 TLE(Two Line Element)ってのは


ISS (ZARYA)             
1 25544U 98067A   18046.55817189  .00001353  00000-0  27714-4 0  9990
2 25544  51.6417 265.0608 0003589 103.0964 344.3049 15.54096060 99608

こんな感じで、最初の行がISSつまり国際宇宙ステーションですね。
次の2行が衛星の軌道を表現している公開情報なわけです。

 これを、tle2czmlというpythonライブラリを持ってきて、ceciumで表示すれば
おしまいなわけです。
 tle2czmlはpip tle2czmlでインストールできます。
 gitはここ

ちょっとトラブル

 ここにほとんどかいてあるんだけど、


AGGIESAT 4              
1 41313U 98067HP  18046.57341670  .00209614  31071-4  29378-3 0  9994
2 41313  51.6292 173.0661 0005230 335.8780  24.1986 16.05344224117524

って3行は抜いて計算した方がいい。
なんだかエラーがでて、表示されなかった。

成功!

image.png
image.png

今後

cesiumにUIを作って、TLEを選択できるようにしようかなあ・・と思っている。
まあ、webにはあるんだけどね

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?