Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions satviz/scripts/visualize_constellation.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@


# General files needed to generate visualizations; Do not change for different simulations
topFile = "../static_html/top.html"
bottomFile = "../static_html/bottom.html"
topFile = "static_html/top.html"
bottomFile = "static_html/bottom.html"

# Output directory for creating visualization html files
OUT_DIR = "../viz_output/"
OUT_DIR = "viz_output/"
# JSON_NAME = NAME+"_5shell.json"
# OUT_JSON_FILE = OUT_DIR + JSON_NAME
OUT_HTML_FILE = OUT_DIR + NAME + ".html"
Expand Down Expand Up @@ -248,5 +248,6 @@ def write_viz_files():
writer_html.close()


viz_string = generate_satelite_trajectories()
write_viz_files()
viz_string = generate_satellite_trajectories()
write_viz_files()

16 changes: 10 additions & 6 deletions satviz/static_html/top.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cesiumjs.org/releases/1.57/Build/Cesium/Cesium.js"></script>
<link href="https://cesiumjs.org/releases/1.57/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<link href="https://cesium.com/downloads/cesiumjs/releases/1.118/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.118/Build/Cesium/Cesium.js"></script>
</head>
<body>
<div id="cesiumContainer" style="width: 100%; height:100%"></div>
Expand Down Expand Up @@ -38,13 +38,17 @@
globe.imageryLayers.removeAll();
globe.baseColor = Cesium.Color.fromCssColorString('#f7fbff');

// var tonerLayer = globe.imageryLayers.addImageryProvider(
// Cesium.createOpenStreetMapImageryProvider({
// url : 'https://stamen-tiles.a.ssl.fastly.net/toner-background/',
// credit : 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'
// })
// );
var tonerLayer = globe.imageryLayers.addImageryProvider(
Cesium.createOpenStreetMapImageryProvider({
url : 'https://stamen-tiles.a.ssl.fastly.net/toner-background/',
credit : 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'
new Cesium.OpenStreetMapImageryProvider({
url : 'https://a.tile.openstreetmap.org/'
})
);
tonerLayer.alpha = 0.3;
tonerLayer.brightness = 3;
tonerLayer.contrast = 0.7;