Skip to main content

Real-time underwater sonar physics engine with WebSocket streaming

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.1.1.tar.gz (1.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.1.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sonar_vision_physics-1.1.1.tar.gz
  • Upload date:
  • Size: 1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 e7186090f9f0319615bac92a94a0355c092309a61dac27ba8e15d583c394562a
MD5 0a1840bbf30a7dfbde80ef7d4df63d0d
BLAKE2b-256 eb13647177d9d724f6cc0a67511ce1163f2dcc19fef21582cb788c10896a57af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sonar_vision_physics-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fea41a3dcdd56aad1fc3b9dc9e01e0499559e0474928419b7447b5de16eee923
MD5 90d91e085d7a3922d56602fe35f83360
BLAKE2b-256 b4af17fbebab733c933cb1d8a647008f3dfc4f55ce91d1b97db52b125dc95498

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