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.0.0.tar.gz (6.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.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sonar_vision_physics-1.0.0.tar.gz
  • Upload date:
  • Size: 6.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.0.0.tar.gz
Algorithm Hash digest
SHA256 3e77e1a8c40acd39a99a689839968b30a080b582e2219e0de9bf0410a1e8d71f
MD5 2e7f4d81f01a4dd6100ae7fc68d4f141
BLAKE2b-256 89aa35ff2e154075d35ca59b0c1273bc4fdcaaec187791846973cb264932b2d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sonar_vision_physics-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13922927748e9286521b1aa7d7bbc017a8f59314502ae8800f7ac9c4207ac3b5
MD5 e34bda0c2adf7735ad6f444cc4f1f8ed
BLAKE2b-256 1dff6eb83dd4e5d7e875b9c073941770ae6a32f7975e5da51769fe21267f5a44

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