Python package for visualization and analysis of asteroid shape models and their light curves.
Project description
tvet is a Python package for visualization and analysis of asteroid shape models and their light curves. It computes mesh geometry, photometric cosines, fluxes, and light curves using selectable scattering laws. The tool also supports plotting light curves and interactive visualization of asteroid geometry and photometric data.
Installation
tvet is available on PyPI, download with:
pip install tvet
CLI usage
After installation, you can use the tvet command-line tool:
tvet --help
tvet asteroid.obj
tvet --jpl 103 --start 2026-02-16T00:00 --stop 2026-02-17T00:00 --step 10m
tvet --damit 10809
tvet asteroid.obj --jpl 103 --start 2026-02-16T00:00 --stop 2026-02-17T00:00 --step 10m
tvet --damit 10809 --jpl 103 --start 2026-02-16T00:00 --stop 2026-02-17T00:00 --step 10m
Options
-h, --help show this help message and exit
-j, --jpl JPL_ID JPL Horizons body id (integer)
-d, --damit DAMIT_ID DAMIT asteroid/model id (integer)
--s S Incident light vector, e.g. '1,0,0'
--o O Observer vector, e.g. '0,0,1'
--scattering {lambert,lommel,hapke}
Scattering law to use: lambert, lommel, or hapke (default: lambert)
--geometry Returns centers and normals of the asteroid triangle mesh and saves them to out/centers.txt and out/normals.txt
--cosines Returns mu_i and mu_e and saves them to out/mu_i.txt and out/mu_e.txt
--fluxes Returns phi_i, phi_e, and total flux and saves them to out/phi_i.txt, out/phi_e.txt, and out/total_flux.txt
--spin L B PERIOD EPOCH PHI0
Spin state: l, b, period, epoch, phi0. Example: --spin 4.0 0.0 1.2 1.57 0.0
-l, --light-curve Save the asteroid light curve points to out/light_curve.txt and plot the light curve
-i, --interactive-plot
Plot the interactive asteroid geometry and light curve
--shininess SHININESS
Shininess factor for the asteroid surface
--wireframe-width WIREFRAME_WIDTH
Width of the wireframe lines
--start START_TIME Ephemeris start time (e.g. 2026-02-16T00:00)
--stop STOP_TIME Ephemeris stop time (e.g. 2026-02-17T00:00)
--step STEP_SIZE Ephemeris step size (e.g. 10m, 1h, 1d)
--observer-center OBSERVER_CENTER
Horizons center for observer (default: 500@399)
--sun-center SUN_CENTER
Horizons center for Sun (default: 500@10)
--timeout TIMEOUT Horizons request timeout in seconds (default: 30)
-v, --verbose [VERBOSE]
Show preview of first n elements (defaults to 3)
-q, --quiet Suppress all stdout output (files are still saved)
--no-save Do not create output files/directories
--no-normalize Disable normalization of all vectors before computation
For more details, see the Key concepts.
Resources
- Key concepts (explains all key concepts used in tvet)
- Dokumentace v češtině
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tvet-0.1.0.tar.gz.
File metadata
- Download URL: tvet-0.1.0.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d744095c98040a8f308585fcc7e752eaa6a790fceed1386f1c92585c28098974
|
|
| MD5 |
020a3c1d06a15b57f0ae4687c52a2b31
|
|
| BLAKE2b-256 |
5f50a48b1ae8819504c5eb2162690bbbd907a927f63f9d5a8ac6973b35902122
|
File details
Details for the file tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 40.6 kB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554b218de85de65813d46761ca2f9825e497a0e1329c035d897d6f8732260e8e
|
|
| MD5 |
2ea4f2cf972c7fc251e0316e9a73db94
|
|
| BLAKE2b-256 |
0317ff5296bc912a92e5f22a60206f450fe4b379c2c621fca0adc83ea300a222
|