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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonar_vision_physics-1.0.1.tar.gz.
File metadata
- Download URL: sonar_vision_physics-1.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b75ea7c97aade5ef668b32e787c72b2ca01888b7cb3e4c40dd20832bac640df1
|
|
| MD5 |
cdbef818b34b79245392b5c1b4bf9d46
|
|
| BLAKE2b-256 |
7527a67e71db0be545a206ef5e4ca21acd07f5903c7408fd27466d34c9892219
|
File details
Details for the file sonar_vision_physics-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sonar_vision_physics-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dee872a0a777e041c820e502c3b672c99d537959c8e9005d764df0b98a6aaeb
|
|
| MD5 |
d9ab3d8b619de0c16b367698fc4fe7c9
|
|
| BLAKE2b-256 |
6a133ca2ac0c79e1a26697b0ac5608754ffcd88de591a977ade72a95842bafa2
|