bluerobotics / bluerobotics/ping-python
Add speed of sound estimation from water properties
- Ngôn ngữ chính
- Python
- Star
- 60
- Fork
- 39
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Would help with #122, and would also better enable data processing capabilities.
Should probably be implemented as a `water.py` module, with a helper for estimating salinity as per [here](https://bluerobotics.com/learn/speed-of-sound-in-water-calculator/#salinity-estimation). Ideally there would be some kind of API access to NASA's global sea surface salinity data (queried by GPS location?) or something, but that is probably best left as a note/TODO for now.
Example `v_sound` code at bluerobotics/ping-viewer/issues/1003
Would be useful to include an `estimate_v_sound(self, depth=None, temperature=None, salinity=None)` method in `PingDevice` that uses `water.estimate_sound_speed(depth, temperature, salinity)`, which can be updated over time to use the most up to date implemented method. `PingDevice` can have its initialisation updated to include initial `depth=0, temperature=25, salinity=water.estimate_salinity_from_type("seawater")` values.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng việc xem xét triển khai PingDevice hiện có và mô-đun water.py được đề xuất, sau đó so sánh mã ví dụ v_sound trong bluerobotics/ping-viewer/issues/1003 với hướng dẫn ước tính độ mặn được liên kết. Được xem là hoàn tất khi cung cấp khả năng ước tính tốc độ âm thanh và độ mặn, expose PingDevice.estimate_v_sound(depth, temperature, salinity), và khởi tạo các giá trị mặc định đã nêu; việc truy cập dữ liệu NASA vẫn phải là một TODO.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend, data
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100