Skip to main content

Real-time underwater sonar physics engine with ray tracing

Project description

SonarVision Physics

Real-time underwater sonar physics engine. Deterministic FLUX 9-opcode model.

Install

pip install sonar-vision-physics

Usage

from sonar_vision_physics import compute_physics

# Physics at 15m depth
result = compute_physics(depth=15.0, chlorophyll=4.0)
print(f"Water: {result['water_type_name']}")
print(f"Temperature: {result['temperature']}C")
print(f"Visibility: {result['visibility']}m")
print(f"Sound speed: {result['sound_speed']} m/s")

CLI

sonar-ping --depth 30 --format json
sonar-ping --dive --start 0 --end 100 --step 5
sonar-ping --serve --port 8081

WebSocket Streaming

sonar-ping --serve --port 8081
# Connect: ws://localhost:8081
# Commands: reset, pause, resume, goto:50

Physics Model

Op Function Model
B0 Absorption Francois-Garrison
B1 Scattering Rayleigh-like
B2 Jerlov Type Chlorophyll classification
B3 Thermocline Gaussian gradient
B4 Seabed Sediment reflectivity
B5 Attenuation Absorption + Scattering
B6 Visibility Secchi depth
B7 Sound Speed Mackenzie equation
B8 Refraction Snell's law

Deterministic: same inputs → bit-identical outputs across all instances.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sonar_vision_physics-1.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonar_vision_physics-1.2.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file sonar_vision_physics-1.2.0.tar.gz.

File metadata

  • Download URL: sonar_vision_physics-1.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for sonar_vision_physics-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6efdcc38e8ab1df401ad065caa78a75132814852c5704e3e3d5f6dcde87ec2ff
MD5 77ea2bdfd26151c92dd4c3910b6b5d9e
BLAKE2b-256 e9c62877c94ca95389ebabdca89077d7440c6b0a921f38c0069084b978b71826

See more details on using hashes here.

File details

Details for the file sonar_vision_physics-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sonar_vision_physics-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 425e83608ace755184ef776f6f7320f0b24cd273ae2c2f9396a14712575e16eb
MD5 d98b0b71893f54afdacbd33fd1ae8938
BLAKE2b-256 a977ffb7c2b16fa18754f052c21df4e1e768d09b8ff1c59c793b056008561bfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page