Skip to content
Snippets Groups Projects
Commit 77405bc9 authored by Rafael Andres's avatar Rafael Andres
Browse files

SHT-476 (UC42)[cesium-viewer] Remote scene and data loading - README and documentation

parent 62756f8a
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ dump_file(features, 'flyby_janus.geojson')
print('done')
```
##### Embedded Cesium Viewer
##### Embedded Cesium Viewer - Display on-the-fly generated GEOJSON data
```python
......@@ -235,7 +235,7 @@ from geojson import FeatureCollection
from geojson import Feature, Point, LineString, Polygon
body = 'ganymede'
cesium_app_url = 'http://10.35.116.222:90'
cesium_app_url = 'https://juicesoc.esac.esa.int'
features = []
......@@ -257,7 +257,28 @@ viewer_url = send_geojson_content(body, geojson.dumps(feature_collection), cesiu
IPython.display.IFrame(viewer_url, width=800, height=600)
```
##### Embedded Cesium Viewer - Display on-the-fly generated CZML data
```python
import IPython
from cesium_script.jupyter.connector import send_czml_content
from cesium_script.czml.scene import generate_czml
import spiceypy as sp
body = 'europa'
cesium_app_url = 'https://juicesoc.esac.esa.int'
sp.kclear()
metakernel = 'juice_crema_5_1_150lb_23_1_v423_20230309_001.tm'
sp.furnsh(metakernel)
czml = generate_czml('2032-07-02T14:22:25Z', '2032-07-02T16:22:25Z', 60, 'Europa')
viewer_url = send_czml_content(body, czml.dumps(), cesium_app_url)
IPython.display.IFrame(viewer_url, width=1000, height=900)
``````
### Checking the results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment