Skip to main content

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

Metadata

Release files for tvet 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tvet 0.1.0
File Size Uploaded Provenance Actions
tvet-0.1.0.tar.gz 26.8 kB Without provenance Details for tvet-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tvet 0.1.0
File Interpreter ABI Platform Actions
tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl CPython 3.13 CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) Details for tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl

Total release size: 67.3 kB

Release files / tvet-0.1.0.tar.gz

Download URL tvet-0.1.0.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d744095c98040a8f308585fcc7e752eaa6a790fceed1386f1c92585c28098974
BLAKE2b-256 checksum
How to use checksums
5f50a48b1ae8819504c5eb2162690bbbd907a927f63f9d5a8ac6973b35902122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl

Download URL tvet-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
Size 40.6 kB
Tags CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
554b218de85de65813d46761ca2f9825e497a0e1329c035d897d6f8732260e8e
BLAKE2b-256 checksum
How to use checksums
0317ff5296bc912a92e5f22a60206f450fe4b379c2c621fca0adc83ea300a222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for tvet 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page