Skip to content

Instantly share code, notes, and snippets.

@kerel-fs
Last active December 12, 2019 20:19
Show Gist options
  • Save kerel-fs/6cdcfe33b933329f807382b0c5bbf1a9 to your computer and use it in GitHub Desktop.
Save kerel-fs/6cdcfe33b933329f807382b0c5bbf1a9 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"\n",
"from datetime import timedelta\n",
"from itertools import islice\n",
"\n",
"from astropy.time import Time\n",
"\n",
"from czml3.widget import CZMLWidget\n",
"from czml3 import Document\n",
"\n",
"from poliastro.czml.extract_czml import CZMLExtractor\n",
"from poliastro.examples import iss"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"6772 x 6790 km x 51.6 deg (GCRS) orbit around Earth (♁) at epoch 2013-03-18 12:00:00.000 (UTC)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"iss"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"start_epoch = Time(iss.epoch, scale='utc')\n",
"end_epoch = Time(iss.epoch + timedelta(minutes=90), scale='utc')\n",
"samples = 50"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"extractor = CZMLExtractor(start_epoch, end_epoch, samples)\n",
"extractor.add_orbit(iss, label_text='ISS')\n",
"packets = extractor.packets"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[{'id': 'document',\n",
" 'version': '1.0',\n",
" 'name': 'document_packet',\n",
" 'clock': {'interval': '2013-03-18T12:00:00.000Z/2013-03-18T13:30:00.000Z',\n",
" 'currentTime': '2013-03-18T12:00:00.000',\n",
" 'multiplier': 60,\n",
" 'range': 'LOOP_STOP',\n",
" 'step': 'SYSTEM_CLOCK_MULTIPLIER'},\n",
" 'currentTime': '2013-03-18T12:00:00.000Z'},\n",
" {\n",
" \"id\": \"custom_properties\",\n",
" \"properties\": {\n",
" \"custom_attractor\": true,\n",
" \"ellipsoid\": [\n",
" {\n",
" \"array\": [\n",
" 6378136.6,\n",
" 6378136.6,\n",
" 6356751.9\n",
" ]\n",
" }\n",
" ],\n",
" \"map_url\": [\n",
" \"https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg\"\n",
" ],\n",
" \"scene3D\": true\n",
" }\n",
" },\n",
" {\n",
" \"id\": 0,\n",
" \"availability\": \"2013-03-18T12:00:00Z/2013-03-18T13:30:00Z\",\n",
" \"position\": {\n",
" \"epoch\": \"2013-03-18T12:00:00.000\",\n",
" \"interpolationAlgorithm\": \"LAGRANGE\",\n",
" \"interpolationDegree\": 5,\n",
" \"referenceFrame\": \"INERTIAL\",\n",
" \"cartesian\": [\n",
" 0.0,\n",
" 859072.5599999996,\n",
" -4137203.6800000006,\n",
" 5295568.71,\n",
" 108.0,\n",
" 1646948.719548854,\n",
" -3881994.402668959,\n",
" 5303434.500695579,\n",
" 216.0,\n",
" 2410240.064792342,\n",
" -3568834.656646169,\n",
" 5232130.886478722,\n",
" 324.0,\n",
" 3137566.6657637786,\n",
" -3202420.531653743,\n",
" 5082753.4832401555,\n",
" 432.0,\n",
" 3818095.4702802957,\n",
" -2788240.0733339884,\n",
" 4857563.74661669,\n",
" 540.0,\n",
" 4441701.676480319,\n",
" -2332489.7110357187,\n",
" 4559953.104732846,\n",
" 648.0,\n",
" 4999118.886578232,\n",
" -1841980.317723423,\n",
" 4194390.213407859,\n",
" 756.0,\n",
" 5482075.845176365,\n",
" -1324034.3990663274,\n",
" 3766352.2524544927,\n",
" 864.0,\n",
" 5883417.8026646925,\n",
" -786376.0238335556,\n",
" 3282241.413840814,\n",
" 972.0,\n",
" 6197210.805816001,\n",
" -237015.1940643188,\n",
" 2749287.939936621,\n",
" 1080.0,\n",
" 6418827.49785709,\n",
" 315871.5888534068,\n",
" 2175441.250576071,\n",
" 1188.0,\n",
" 6545013.303417724,\n",
" 864062.7764167723,\n",
" 1569250.8497798601,\n",
" 1296.0,\n",
" 6573932.174489463,\n",
" 1399413.454983205,\n",
" 939738.8259661038,\n",
" 1404.0,\n",
" 6505191.376961204,\n",
" 1913975.4914154836,\n",
" 296265.8532561609,\n",
" 1512.0,\n",
" 6339845.099054477,\n",
" 2400114.4222796718,\n",
" -351607.3334925995,\n",
" 1620.0,\n",
" 6080376.959244642,\n",
" 2850621.4338824656,\n",
" -994260.9801377525,\n",
" 1728.0,\n",
" 5730661.778786782,\n",
" 3258818.867218234,\n",
" -1622157.8509184069,\n",
" 1836.0,\n",
" 5295907.260080694,\n",
" 3618657.7860126095,\n",
" -2225983.256886705,\n",
" 1944.0,\n",
" 4782576.474615694,\n",
" 3924806.26554187,\n",
" -2796781.6082958733,\n",
" 2052.0,\n",
" 4198292.311357868,\n",
" 4172727.1929546143,\n",
" -3326087.5851295707,\n",
" 2160.0,\n",
" 3551725.266726949,\n",
" 4358744.514766233,\n",
" -3806050.1018939433,\n",
" 2268.0,\n",
" 2852466.1695246487,\n",
" 4480097.022543795,\n",
" -4229547.344375705,\n",
" 2376.0,\n",
" 2110885.6272093994,\n",
" 4534978.932204136,\n",
" -4590291.276128666,\n",
" 2484.0,\n",
" 1337982.152675216,\n",
" 4522566.68458054,\n",
" -4882920.149946865,\n",
" 2592.0,\n",
" 545221.0820427863,\n",
" 4443031.5738075785,\n",
" -5103077.713573347,\n",
" 2700.0,\n",
" -255633.4773513877,\n",
" 4297537.994470407,\n",
" -5247477.968493195,\n",
" 2808.0,\n",
" -1052691.3249885815,\n",
" 4088227.287146486,\n",
" -5313954.524971403,\n",
" 2916.0,\n",
" -1834111.04851051,\n",
" 3818187.3535931413,\n",
" -5301493.79454101,\n",
" 3024.0,\n",
" -2588274.634097347,\n",
" 3491408.4058766966,\n",
" -5210251.471778995,\n",
" 3132.0,\n",
" -3303959.309227795,\n",
" 3112725.4064349034,\n",
" -5041551.9790338315,\n",
" 3240.0,\n",
" -3970504.1297883596,\n",
" 2687747.94637377,\n",
" -4797870.779070416,\n",
" 3348.0,\n",
" -4577968.864843364,\n",
" 2222778.4948886945,\n",
" -4482799.699266448,\n",
" 3456.0,\n",
" -5117282.807956682,\n",
" 1724720.130937036,\n",
" -4100995.654480027,\n",
" 3564.0,\n",
" -5580381.2549188165,\n",
" 1200975.0362776401,\n",
" -3658113.4009991405,\n",
" 3672.0,\n",
" -5960327.534728907,\n",
" 659335.1836138588,\n",
" -3160723.19760416,\n",
" 3780.0,\n",
" -6251418.663710037,\n",
" 107866.7915704177,\n",
" -2616214.48782119,\n",
" 3888.0,\n",
" -6449272.910921648,\n",
" -445209.7637055192,\n",
" -2032686.9456489605,\n",
" 3996.0,\n",
" -6550897.814908701,\n",
" -991642.7956338417,\n",
" -1418830.4408730224,\n",
" 4104.0,\n",
" -6554737.474664784,\n",
" -1523273.059595834,\n",
" -783795.6748651359,\n",
" 4212.0,\n",
" -6460698.247849623,\n",
" -2032156.5174204397,\n",
" -137057.4088490243,\n",
" 4320.0,\n",
" -6270152.322163263,\n",
" -2510684.2119923406,\n",
" 511727.6504753536,\n",
" 4428.0,\n",
" -5985918.975772672,\n",
" -2951697.3738991953,\n",
" 1152866.132418175,\n",
" 4536.0,\n",
" -5612223.70342191,\n",
" -3348595.939406636,\n",
" 1776774.2005464113,\n",
" 4644.0,\n",
" -5154635.749277063,\n",
" -3695438.749919359,\n",
" 2374122.3811654127,\n",
" 4752.0,\n",
" -4619984.94814491,\n",
" -3987033.82658016,\n",
" 2935976.7399226334,\n",
" 4860.0,\n",
" -4016259.1257202798,\n",
" -4219017.267994778,\n",
" 3453934.170367128,\n",
" 4968.0,\n",
" -3352483.6382626784,\n",
" -4387919.501577568,\n",
" 3920249.6456428496,\n",
" 5076.0,\n",
" -2638584.935195907,\n",
" -4491217.826188074,\n",
" 4327953.411978417,\n",
" 5184.0,\n",
" -1885240.2977630843,\n",
" -4527374.411340687,\n",
" 4670956.267900972,\n",
" 5292.0,\n",
" -1103716.137085964,\n",
" -4495859.161489989,\n",
" 4944141.272739428,\n",
" 5400.0,\n",
" -305697.4208480601,\n",
" -4397157.107464438,\n",
" 5143440.457655071,\n",
" 5508.0,\n",
" 496889.0643620393,\n",
" -4232760.245532351,\n",
" 5265895.367024506\n",
" ]\n",
" },\n",
" \"billboard\": {\n",
" \"image\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=\",\n",
" \"show\": true\n",
" },\n",
" \"label\": {\n",
" \"text\": \"ISS\",\n",
" \"font\": \"11pt Lucida Console\",\n",
" \"style\": \"FILL\",\n",
" \"fillColor\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" },\n",
" \"outlineColor\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" },\n",
" \"outlineWidth\": 1.0\n",
" },\n",
" \"path\": {\n",
" \"resolution\": 120,\n",
" \"material\": {\n",
" \"solidColor\": {\n",
" \"color\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" }\n",
" }\n",
" }\n",
" }\n",
" }]"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def fix_packets(packets):\n",
" # Add 'Z' to clock and currentTime\n",
" packet0 = json.loads(str(packets[0]))\n",
" packet0['clock']['interval'] = '2013-03-18T12:00:00.000Z/2013-03-18T13:30:00.000Z'\n",
" packet0['currentTime'] = '2013-03-18T12:00:00.000Z'\n",
" return [packet0, *list(islice(packets, 1, None))]\n",
"\n",
"# To eneable the fix, uncomment this line:\n",
"packets = fix_packets(extractor.packets)\n",
"packets"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"czml_documnet = Document(packets)"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<link rel=\"stylesheet\" href=\"https://cesium.com/downloads/cesiumjs/releases/1.64/Build/Cesium/Widgets/widgets.css\" type=\"text/css\">\n",
"<div id=\"cesiumContainer-cad4b050-278c-45df-adc3-eb6e09bb16f2\" style=\"width:100%; height:100%;\"></div>\n",
"<script type=\"text/javascript\">\n",
"\n",
"require.config({\n",
" paths: {\n",
" 'cesium': 'https://cesium.com/downloads/cesiumjs/releases/1.64/Build/Cesium/Cesium'\n",
" }\n",
"});\n",
"\n",
"// Set this global variable to avoid problems with non-local Jupyter deployments\n",
"// Basically this line:\n",
"// https://github.com/AnalyticalGraphicsInc/cesium/blob/1.64/Source/Core/buildModuleUrl.js#L13\n",
"// Fails because of this:\n",
"// https://github.com/jupyter/notebook/blob/6.0.2/notebook/templates/page.html#L25-L27\n",
"// Also, finding out about CESIUM_BASE_URL was not very straightforward,\n",
"// see https://github.com/AnalyticalGraphicsInc/cesium/issues/8327\n",
"var CESIUM_BASE_URL = 'https://cesium.com/downloads/cesiumjs/releases/1.64/Build/Cesium/'\n",
"\n",
"require(['cesium'], function (Cesium) {\n",
" var czml = [{\"id\": \"document\", \"version\": \"1.0\", \"name\": \"document_packet\", \"clock\": {\"interval\": \"2013-03-18T12:00:00.000Z/2013-03-18T13:30:00.000Z\", \"currentTime\": \"2013-03-18T12:00:00.000\", \"multiplier\": 60, \"range\": \"LOOP_STOP\", \"step\": \"SYSTEM_CLOCK_MULTIPLIER\"}, \"currentTime\": \"2013-03-18T12:00:00.000Z\"}, {\"id\": \"custom_properties\", \"properties\": {\"custom_attractor\": true, \"ellipsoid\": [{\"array\": [6378136.6, 6378136.6, 6356751.9]}], \"map_url\": [\"https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg\"], \"scene3D\": true}}, {\"id\": 0, \"availability\": \"2013-03-18T12:00:00Z/2013-03-18T13:30:00Z\", \"position\": {\"epoch\": \"2013-03-18T12:00:00.000\", \"interpolationAlgorithm\": \"LAGRANGE\", \"interpolationDegree\": 5, \"referenceFrame\": \"INERTIAL\", \"cartesian\": [0.0, 859072.5599999996, -4137203.6800000006, 5295568.71, 108.0, 1646948.719548854, -3881994.402668959, 5303434.500695579, 216.0, 2410240.064792342, -3568834.656646169, 5232130.886478722, 324.0, 3137566.6657637786, -3202420.531653743, 5082753.4832401555, 432.0, 3818095.4702802957, -2788240.0733339884, 4857563.74661669, 540.0, 4441701.676480319, -2332489.7110357187, 4559953.104732846, 648.0, 4999118.886578232, -1841980.317723423, 4194390.213407859, 756.0, 5482075.845176365, -1324034.3990663274, 3766352.2524544927, 864.0, 5883417.8026646925, -786376.0238335556, 3282241.413840814, 972.0, 6197210.805816001, -237015.1940643188, 2749287.939936621, 1080.0, 6418827.49785709, 315871.5888534068, 2175441.250576071, 1188.0, 6545013.303417724, 864062.7764167723, 1569250.8497798601, 1296.0, 6573932.174489463, 1399413.454983205, 939738.8259661038, 1404.0, 6505191.376961204, 1913975.4914154836, 296265.8532561609, 1512.0, 6339845.099054477, 2400114.4222796718, -351607.3334925995, 1620.0, 6080376.959244642, 2850621.4338824656, -994260.9801377525, 1728.0, 5730661.778786782, 3258818.867218234, -1622157.8509184069, 1836.0, 5295907.260080694, 3618657.7860126095, -2225983.256886705, 1944.0, 4782576.474615694, 3924806.26554187, -2796781.6082958733, 2052.0, 4198292.311357868, 4172727.1929546143, -3326087.5851295707, 2160.0, 3551725.266726949, 4358744.514766233, -3806050.1018939433, 2268.0, 2852466.1695246487, 4480097.022543795, -4229547.344375705, 2376.0, 2110885.6272093994, 4534978.932204136, -4590291.276128666, 2484.0, 1337982.152675216, 4522566.68458054, -4882920.149946865, 2592.0, 545221.0820427863, 4443031.5738075785, -5103077.713573347, 2700.0, -255633.4773513877, 4297537.994470407, -5247477.968493195, 2808.0, -1052691.3249885815, 4088227.287146486, -5313954.524971403, 2916.0, -1834111.04851051, 3818187.3535931413, -5301493.79454101, 3024.0, -2588274.634097347, 3491408.4058766966, -5210251.471778995, 3132.0, -3303959.309227795, 3112725.4064349034, -5041551.9790338315, 3240.0, -3970504.1297883596, 2687747.94637377, -4797870.779070416, 3348.0, -4577968.864843364, 2222778.4948886945, -4482799.699266448, 3456.0, -5117282.807956682, 1724720.130937036, -4100995.654480027, 3564.0, -5580381.2549188165, 1200975.0362776401, -3658113.4009991405, 3672.0, -5960327.534728907, 659335.1836138588, -3160723.19760416, 3780.0, -6251418.663710037, 107866.7915704177, -2616214.48782119, 3888.0, -6449272.910921648, -445209.7637055192, -2032686.9456489605, 3996.0, -6550897.814908701, -991642.7956338417, -1418830.4408730224, 4104.0, -6554737.474664784, -1523273.059595834, -783795.6748651359, 4212.0, -6460698.247849623, -2032156.5174204397, -137057.4088490243, 4320.0, -6270152.322163263, -2510684.2119923406, 511727.6504753536, 4428.0, -5985918.975772672, -2951697.3738991953, 1152866.132418175, 4536.0, -5612223.70342191, -3348595.939406636, 1776774.2005464113, 4644.0, -5154635.749277063, -3695438.749919359, 2374122.3811654127, 4752.0, -4619984.94814491, -3987033.82658016, 2935976.7399226334, 4860.0, -4016259.1257202798, -4219017.267994778, 3453934.170367128, 4968.0, -3352483.6382626784, -4387919.501577568, 3920249.6456428496, 5076.0, -2638584.935195907, -4491217.826188074, 4327953.411978417, 5184.0, -1885240.2977630843, -4527374.411340687, 4670956.267900972, 5292.0, -1103716.137085964, -4495859.161489989, 4944141.272739428, 5400.0, -305697.4208480601, -4397157.107464438, 5143440.457655071, 5508.0, 496889.0643620393, -4232760.245532351, 5265895.367024506]}, \"billboard\": {\"image\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=\", \"show\": true}, \"label\": {\"text\": \"ISS\", \"font\": \"11pt Lucida Console\", \"style\": \"FILL\", \"fillColor\": {\"rgba\": [255, 255, 0, 255]}, \"outlineColor\": {\"rgba\": [255, 255, 0, 255]}, \"outlineWidth\": 1.0}, \"path\": {\"resolution\": 120, \"material\": {\"solidColor\": {\"color\": {\"rgba\": [255, 255, 0, 255]}}}}}];\n",
"\n",
" var ion_token = '';\n",
" if (ion_token !== '') {\n",
" Cesium.Ion.defaultAccessToken = ion_token;\n",
" }\n",
" var viewer = new Cesium.Viewer('cesiumContainer-cad4b050-278c-45df-adc3-eb6e09bb16f2', {\n",
" shouldAnimate : true\n",
" });\n",
"\n",
" // To have an inertial (ICRF) view\n",
" function icrf(scene, time) {\n",
" var icrfToFixed = Cesium.Transforms.computeIcrfToFixedMatrix(time);\n",
" if (Cesium.defined(icrfToFixed)) {\n",
" var camera = viewer.camera;\n",
" var offset = Cesium.Cartesian3.clone(camera.position);\n",
" var transform = Cesium.Matrix4.fromRotationTranslation(icrfToFixed);\n",
" camera.lookAtTransform(transform, offset);\n",
" }\n",
" }\n",
" // Temporarily disable inertial view\n",
" // until we make it work with 2D Mercator view\n",
" // and fix the zoom sensitivity, see\n",
" // https://groups.google.com/d/msg/cesium-dev/vuXmepd4T2E/i71tq2I8EAAJ\n",
" // viewer.scene.postUpdate.addEventListener(icrf);\n",
"\n",
" viewer.camera.flyHome(0);\n",
" viewer.scene.globe.enableLighting = true;\n",
"\n",
" viewer.dataSources.add(Cesium.CzmlDataSource.load(czml));\n",
"});\n",
"\n",
"</script>"
],
"text/plain": [
"CZMLWidget(document=[\n",
" {\n",
" \"id\": \"document\",\n",
" \"version\": \"1.0\",\n",
" \"name\": \"document_packet\",\n",
" \"clock\": {\n",
" \"interval\": \"2013-03-18T12:00:00.000Z/2013-03-18T13:30:00.000Z\",\n",
" \"currentTime\": \"2013-03-18T12:00:00.000\",\n",
" \"multiplier\": 60,\n",
" \"range\": \"LOOP_STOP\",\n",
" \"step\": \"SYSTEM_CLOCK_MULTIPLIER\"\n",
" },\n",
" \"currentTime\": \"2013-03-18T12:00:00.000Z\"\n",
" },\n",
" {\n",
" \"id\": \"custom_properties\",\n",
" \"properties\": {\n",
" \"custom_attractor\": true,\n",
" \"ellipsoid\": [\n",
" {\n",
" \"array\": [\n",
" 6378136.6,\n",
" 6378136.6,\n",
" 6356751.9\n",
" ]\n",
" }\n",
" ],\n",
" \"map_url\": [\n",
" \"https://upload.wikimedia.org/wikipedia/commons/c/c4/Earthmap1000x500compac.jpg\"\n",
" ],\n",
" \"scene3D\": true\n",
" }\n",
" },\n",
" {\n",
" \"id\": 0,\n",
" \"availability\": \"2013-03-18T12:00:00Z/2013-03-18T13:30:00Z\",\n",
" \"position\": {\n",
" \"epoch\": \"2013-03-18T12:00:00.000\",\n",
" \"interpolationAlgorithm\": \"LAGRANGE\",\n",
" \"interpolationDegree\": 5,\n",
" \"referenceFrame\": \"INERTIAL\",\n",
" \"cartesian\": [\n",
" 0.0,\n",
" 859072.5599999996,\n",
" -4137203.6800000006,\n",
" 5295568.71,\n",
" 108.0,\n",
" 1646948.719548854,\n",
" -3881994.402668959,\n",
" 5303434.500695579,\n",
" 216.0,\n",
" 2410240.064792342,\n",
" -3568834.656646169,\n",
" 5232130.886478722,\n",
" 324.0,\n",
" 3137566.6657637786,\n",
" -3202420.531653743,\n",
" 5082753.4832401555,\n",
" 432.0,\n",
" 3818095.4702802957,\n",
" -2788240.0733339884,\n",
" 4857563.74661669,\n",
" 540.0,\n",
" 4441701.676480319,\n",
" -2332489.7110357187,\n",
" 4559953.104732846,\n",
" 648.0,\n",
" 4999118.886578232,\n",
" -1841980.317723423,\n",
" 4194390.213407859,\n",
" 756.0,\n",
" 5482075.845176365,\n",
" -1324034.3990663274,\n",
" 3766352.2524544927,\n",
" 864.0,\n",
" 5883417.8026646925,\n",
" -786376.0238335556,\n",
" 3282241.413840814,\n",
" 972.0,\n",
" 6197210.805816001,\n",
" -237015.1940643188,\n",
" 2749287.939936621,\n",
" 1080.0,\n",
" 6418827.49785709,\n",
" 315871.5888534068,\n",
" 2175441.250576071,\n",
" 1188.0,\n",
" 6545013.303417724,\n",
" 864062.7764167723,\n",
" 1569250.8497798601,\n",
" 1296.0,\n",
" 6573932.174489463,\n",
" 1399413.454983205,\n",
" 939738.8259661038,\n",
" 1404.0,\n",
" 6505191.376961204,\n",
" 1913975.4914154836,\n",
" 296265.8532561609,\n",
" 1512.0,\n",
" 6339845.099054477,\n",
" 2400114.4222796718,\n",
" -351607.3334925995,\n",
" 1620.0,\n",
" 6080376.959244642,\n",
" 2850621.4338824656,\n",
" -994260.9801377525,\n",
" 1728.0,\n",
" 5730661.778786782,\n",
" 3258818.867218234,\n",
" -1622157.8509184069,\n",
" 1836.0,\n",
" 5295907.260080694,\n",
" 3618657.7860126095,\n",
" -2225983.256886705,\n",
" 1944.0,\n",
" 4782576.474615694,\n",
" 3924806.26554187,\n",
" -2796781.6082958733,\n",
" 2052.0,\n",
" 4198292.311357868,\n",
" 4172727.1929546143,\n",
" -3326087.5851295707,\n",
" 2160.0,\n",
" 3551725.266726949,\n",
" 4358744.514766233,\n",
" -3806050.1018939433,\n",
" 2268.0,\n",
" 2852466.1695246487,\n",
" 4480097.022543795,\n",
" -4229547.344375705,\n",
" 2376.0,\n",
" 2110885.6272093994,\n",
" 4534978.932204136,\n",
" -4590291.276128666,\n",
" 2484.0,\n",
" 1337982.152675216,\n",
" 4522566.68458054,\n",
" -4882920.149946865,\n",
" 2592.0,\n",
" 545221.0820427863,\n",
" 4443031.5738075785,\n",
" -5103077.713573347,\n",
" 2700.0,\n",
" -255633.4773513877,\n",
" 4297537.994470407,\n",
" -5247477.968493195,\n",
" 2808.0,\n",
" -1052691.3249885815,\n",
" 4088227.287146486,\n",
" -5313954.524971403,\n",
" 2916.0,\n",
" -1834111.04851051,\n",
" 3818187.3535931413,\n",
" -5301493.79454101,\n",
" 3024.0,\n",
" -2588274.634097347,\n",
" 3491408.4058766966,\n",
" -5210251.471778995,\n",
" 3132.0,\n",
" -3303959.309227795,\n",
" 3112725.4064349034,\n",
" -5041551.9790338315,\n",
" 3240.0,\n",
" -3970504.1297883596,\n",
" 2687747.94637377,\n",
" -4797870.779070416,\n",
" 3348.0,\n",
" -4577968.864843364,\n",
" 2222778.4948886945,\n",
" -4482799.699266448,\n",
" 3456.0,\n",
" -5117282.807956682,\n",
" 1724720.130937036,\n",
" -4100995.654480027,\n",
" 3564.0,\n",
" -5580381.2549188165,\n",
" 1200975.0362776401,\n",
" -3658113.4009991405,\n",
" 3672.0,\n",
" -5960327.534728907,\n",
" 659335.1836138588,\n",
" -3160723.19760416,\n",
" 3780.0,\n",
" -6251418.663710037,\n",
" 107866.7915704177,\n",
" -2616214.48782119,\n",
" 3888.0,\n",
" -6449272.910921648,\n",
" -445209.7637055192,\n",
" -2032686.9456489605,\n",
" 3996.0,\n",
" -6550897.814908701,\n",
" -991642.7956338417,\n",
" -1418830.4408730224,\n",
" 4104.0,\n",
" -6554737.474664784,\n",
" -1523273.059595834,\n",
" -783795.6748651359,\n",
" 4212.0,\n",
" -6460698.247849623,\n",
" -2032156.5174204397,\n",
" -137057.4088490243,\n",
" 4320.0,\n",
" -6270152.322163263,\n",
" -2510684.2119923406,\n",
" 511727.6504753536,\n",
" 4428.0,\n",
" -5985918.975772672,\n",
" -2951697.3738991953,\n",
" 1152866.132418175,\n",
" 4536.0,\n",
" -5612223.70342191,\n",
" -3348595.939406636,\n",
" 1776774.2005464113,\n",
" 4644.0,\n",
" -5154635.749277063,\n",
" -3695438.749919359,\n",
" 2374122.3811654127,\n",
" 4752.0,\n",
" -4619984.94814491,\n",
" -3987033.82658016,\n",
" 2935976.7399226334,\n",
" 4860.0,\n",
" -4016259.1257202798,\n",
" -4219017.267994778,\n",
" 3453934.170367128,\n",
" 4968.0,\n",
" -3352483.6382626784,\n",
" -4387919.501577568,\n",
" 3920249.6456428496,\n",
" 5076.0,\n",
" -2638584.935195907,\n",
" -4491217.826188074,\n",
" 4327953.411978417,\n",
" 5184.0,\n",
" -1885240.2977630843,\n",
" -4527374.411340687,\n",
" 4670956.267900972,\n",
" 5292.0,\n",
" -1103716.137085964,\n",
" -4495859.161489989,\n",
" 4944141.272739428,\n",
" 5400.0,\n",
" -305697.4208480601,\n",
" -4397157.107464438,\n",
" 5143440.457655071,\n",
" 5508.0,\n",
" 496889.0643620393,\n",
" -4232760.245532351,\n",
" 5265895.367024506\n",
" ]\n",
" },\n",
" \"billboard\": {\n",
" \"image\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=\",\n",
" \"show\": true\n",
" },\n",
" \"label\": {\n",
" \"text\": \"ISS\",\n",
" \"font\": \"11pt Lucida Console\",\n",
" \"style\": \"FILL\",\n",
" \"fillColor\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" },\n",
" \"outlineColor\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" },\n",
" \"outlineWidth\": 1.0\n",
" },\n",
" \"path\": {\n",
" \"resolution\": 120,\n",
" \"material\": {\n",
" \"solidColor\": {\n",
" \"color\": {\n",
" \"rgba\": [\n",
" 255,\n",
" 255,\n",
" 0,\n",
" 255\n",
" ]\n",
" }\n",
" }\n",
" }\n",
" }\n",
" }\n",
"], cesium_version='1.64', ion_token='', _container_id=UUID('cad4b050-278c-45df-adc3-eb6e09bb16f2'))"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"CZMLWidget(czml_documnet)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "poliastro",
"language": "python",
"name": "poliastro"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
astropy
czml3
poliastro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment