Web Visualizer Launcher

The examples/web-visualizer-launch.py script builds and serves the DSNS web visualizer locally. It copies the static assets, bundles the Python source code into a zip file for Pyodide, and serves the result using a web server.

Launch the DSNS web visualizer as a locally-served static site.

usage: web-visualizer-launch.py [-h]
                                [--preset {ground,gps,iridium,starlink,cubesat-tle,multi-layer,leo-leo,leo-meo,leo-geo,leo-meo-geo,earth-moon,earth-mars,walker}]
                                [--time-scale TIME_SCALE]
                                [--space-scale SPACE_SCALE]
                                [--interplanetary-scale INTERPLANETARY_SCALE]
                                [--step-interval STEP_INTERVAL] [--port PORT]

Named Arguments

--preset

Possible choices: ground, gps, iridium, starlink, cubesat-tle, multi-layer, leo-leo, leo-meo, leo-geo, leo-meo-geo, earth-moon, earth-mars, walker

Simulation preset to visualise

Default: 'walker'

--time-scale

Simulation time scale factor (sim seconds per real second)

Default: 100.0

--space-scale

Spatial scale factor (m -> visual units)

Default: 1e-06

--interplanetary-scale

Interplanetary distance scale factor

Default: 1e-10

--step-interval

Simulation step interval in ms (default 333 = ~3 steps/sec)

Default: 333.0

--port

HTTP server port

Default: 8000