Create packets of CZML3
Project description
czml3-ext
This library is a collection of functions that outputs list
s of czml3.packet
s for various items, as shown in the table below. See czml3 for more information about CZML properties.
Item | Function in czml3_ext.packets |
---|---|
Sensor | sensor_polyline and sensor_polygon |
Grid | grid |
Border | border |
Coverage | coverage |
Installation
pip install czml3-ext
Examples
See the example notebook for a full demo of the package. Run pip install czml3_ext[examples]
to run the examples locally.
The following code produces a CZML file with a single sensor:
>> import numpy as np
>> from czml3 import Document, Preamble
>> from czml3_ext import packets
>>
>> sensor_polygon = packets.sensor_polygon(
>> np.array([[31.8], [34.68], [0]]), 90, 30, 50, 20, 20_000, 5_000
>> )
>> sensor_polyline = packets.sensor_polyline(
>> np.array([[31.8], [34.68], [0]]), 90, 30, 50, 20, 20_000, 5_000
>> )
>>
>> doc = Document([Preamble(name="simple")] + sensor_polygon + sensor_polyline)
>> with open("example.czml", "w") as f:
>> doc.dump(f)
This produces the following view:
Contributing
PRs are always welcome and appreciated!
After forking the repo install the dev requirements: pip install -e .[dev]
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for czml3_ext-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db1c487e6056cb2108147b5d963b3299f6e03b409dab820a9bf27e650b8e581e |
|
MD5 | db1211eefa9ff4cb4253069b22ed560e |
|
BLAKE2b-256 | 654c888f6e7ba363719313cd484d3b90d36b22ddb4a4b08ad2e08a65affde9d8 |