czml3-ext
This library is a collection of functions that outputs lists of czml3.packets 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 examples folder 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, Packet, CZML_VERSION
from czml3.properties import (
Color,
Ellipsoid,
EllipsoidRadii,
Material,
SolidColorMaterial,
)
from czml3_ext import packets
from czml3_ext.colours import RGBA_blue, RGBA_white
sensor = packets.sensor(
np.array([[31.4], [34.7], [1000]]),
10,
30,
100,
20,
10_000,
5_000,
name="A Sensor",
ellipsoid=Ellipsoid(
radii=EllipsoidRadii(cartesian=[0, 0, 0]),
material=Material(
solidColor=SolidColorMaterial(
color=Color(rgbaf=Colour("blue", alpha=0.3).rgba)
)
),
outlineColor=Color(rgba=list(Colour("white").rgb)),
fill=True,
outline=True,
),
)
doc = Document(
packets=[Packet(name="simple", id="document", version=CZML_VERSION)] + sensor
)
with open("example.czml", "w") as f:
f.write(doc.dumps())
This produces the following view:
Contributing
PRs are always welcome and appreciated!
After forking the repo install the dev requirements: pip install -e .[dev].
Metadata
Release files for czml3-ext 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| czml3_ext-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for czml3_ext-0.11.0-py3-none-any.whl |
Release files / czml3_ext-0.11.0-py3-none-any.whl
| Download URL | czml3_ext-0.11.0-py3-none-any.whl |
|---|---|
| Size | 7.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74b8f2ddea3d11bb95304d60aba336e693b1af4a78ca36f224e70684e6d91e6c
|
|
BLAKE2b-256 checksum How to use checksums |
dfee6c7e18b0fc72d67410e24cec923e85c978f3ec57e8d1c71d332a290197bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logSecurity for czml3-ext 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 1 file in this release has been uploaded with provenance metadata.
Attestation for czml3_ext-0.11.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.