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 |
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.properties import Color, Material, Polygon, SolidColorMaterial, Ellipsoid
from czml3_ext import packets
from czml3_ext.colours import RGBA
blue = RGBA.blue.copy()
blue[-1] = 100
sensor = packets.sensor(
np.array([[31.4], [34.7], [1000]]),
10,
30,
100,
20,
10_000,
5_000,
name="A Sensor",
ellipsoid=Ellipsoid(
radii=[],
material=Material(solidColor=SolidColorMaterial(color=Color(rgba=blue))),
outlineColor=Color(rgba=RGBA.white),
fill=True,
outline=True,
),
)
doc = Document([Preamble(name="simple")] + sensor)
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
Built Distribution
File details
Details for the file czml3_ext-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: czml3_ext-0.7.0-py3-none-any.whl
- Upload date:
- Size: 7.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1267a888a4ed40704bca83e3262448ba9fadac7f03bde4e01f996dbf205bdb22 |
|
MD5 | 4cbf116b885e9f8328919913f0ac4e09 |
|
BLAKE2b-256 | 3c5947de207e42c42aff9f1f1b98ef9663a6c20a5a06b0573ae97fdf4063d53f |
Provenance
The following attestation bundles were made for czml3_ext-0.7.0-py3-none-any.whl
:
Publisher:
publish-to-pypi.yml
on Stoops-ML/czml3-ext
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
czml3_ext-0.7.0-py3-none-any.whl
- Subject digest:
1267a888a4ed40704bca83e3262448ba9fadac7f03bde4e01f996dbf205bdb22
- Sigstore transparency entry: 148354339
- Sigstore integration time:
- Predicate type: