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.0.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.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sonar_vision_physics-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8fdd8c309d5ca2d1778e6a1d22a6cdb01570809bc5944deba4512918db938cd5
MD5 8ca4c5e74ecf4929f55f3983f9f46941
BLAKE2b-256 b4ff2a62760a47cc4fa06eb9207daf65aabd9fb513c600230381b8f729825b87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sonar_vision_physics-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4705e70ca0466784e3a2c1659d72c1ce2191b7966ae9505a52eb4d4760f585bf
MD5 c615bc5f76815fec66e2da9d9cb8a032
BLAKE2b-256 0045b3191b2d18148f73d49ed15308dafbeed3ba68e8d18afcb131dec5de42f1

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