gut-space / svarog

📡 A ground stations network for receiving satellite transmissions, using VHF, UHF, and more.
MIT License
10 stars 0 forks source link

Cesium visualization #40

Open tomaszmrugalski opened 3 years ago

tomaszmrugalski commented 3 years ago

The goal of this PR is to address the last open item in #9 - to use Cesium to visualize passes on 3D globe.

Two screenshots how this code looks like:

czml-1

czml-2

The code is now ready for review. Here's a couple comments:

  1. added documentation on how to run the code on dev system. The overall idea is that Flask handles the /czml/obs/1234 URL and will return CZML file.
  2. There is Cesium app running at /viewer/ (or http://localhost:9000/ if running locally).
  3. You can specify observation id using two methods. First, you can pass it directly in URL with ?obs_id=1234. This is useful for redirecting from other pages. Second, you can type the observation number and click load. This is useful if you are already on the page, but want to look at different observation.

For the time being it's not possible to show multiple observations at the same time. It may be in the future, but the CZML exporter will have to be tweaked slightly. The problem right now is it's always having the document packet, which determines the start and end of the simulation period.

tomaszmrugalski commented 3 years ago

On a related note, I think the CZML exporter is slightly wrong. I would assume that AOS and LOS points be equidistant to the ground station, but the example of observation 1276 shows otherwise.

tomaszmrugalski commented 3 years ago

@fivitti, compared to the old code we used long time ago, Cesium made substantial steps forward. There are official typescript bindings. I've split some of the code into small utility files that are easy to reuse or remove.

tomaszmrugalski commented 1 year ago

Okay, this needs to be redone.