Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acoustics Module #349

Merged
merged 78 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
a319b33
Initial commit
jmcvey3 May 31, 2024
8a8664d
Write up docstrings and comments
jmcvey3 Jun 1, 2024
61ff635
Setup and read iclisten hydrophone wav file
jmcvey3 Jun 4, 2024
c648c24
Spectral analysis code
jmcvey3 Jun 4, 2024
091bc64
Subtle changes
jmcvey3 Jun 4, 2024
4fb4bcf
Read Soundtrap and any other .wav file
jmcvey3 Jun 6, 2024
865429e
Add first plots
jmcvey3 Jun 6, 2024
43a70e7
Updates
jmcvey3 Jun 13, 2024
3c941e4
Audio export, fractional octaves, plots
jmcvey3 Jun 13, 2024
7663273
Fix SPL calculation, add docstrings, upload test data
jmcvey3 Jun 14, 2024
5f89bd6
black formatting
jmcvey3 Jun 14, 2024
5ca2dc5
Fix third octave spl integral
jmcvey3 Jun 18, 2024
70ddf6d
Improve time binning
jmcvey3 Jun 18, 2024
9bb3c41
Updates backup
jmcvey3 Jun 27, 2024
24674f1
Merge pull request #337 from MHKiT-Software/develop
ssolson Jun 30, 2024
4f13ccb
Add and edit functions for correcting via a calibrated sensitivity curve
jmcvey3 Jul 9, 2024
6e869f1
Black formatting
jmcvey3 Jul 11, 2024
4ecaa66
Add function for decidecade SPL
jmcvey3 Jul 25, 2024
4cdbe03
Improve Reynolds stress ADCP estimation notebook discussion V2 (#326)
jmcvey3 Jul 3, 2024
20deee4
Improve `surface_elevation` internal method selection (#340)
simmsa Jul 10, 2024
ecbdfae
ipython notebook test (#330)
ssolson Jul 13, 2024
f843cd1
Update NOAA Request function (#332)
jmcvey3 Jul 15, 2024
a52e0c0
Speed up Wind Toolkit tests (#338)
akeeste Aug 8, 2024
b6f47c7
matplotlib >=3.8 (#345)
ssolson Aug 9, 2024
948c6b9
MHKiT version increase for new release (#346)
ssolson Aug 10, 2024
1fd72f0
Add decidecade levels
jmcvey3 Aug 26, 2024
d330162
Docstring fixes, notebook text
jmcvey3 Aug 27, 2024
dffc74c
Merge branch 'MHKiT-Software:master' into acoustics_module
jmcvey3 Aug 27, 2024
216c1b0
Update acoustics example notebook
jmcvey3 Aug 29, 2024
3450e10
Add testing
jmcvey3 Aug 29, 2024
05acb13
Merge branch 'develop' into acoustics_module
jmcvey3 Aug 29, 2024
74733dc
Add cmocean to reqs
jmcvey3 Aug 30, 2024
e80ba78
Remove cmocean
jmcvey3 Sep 3, 2024
e194da3
Minor fixes
jmcvey3 Sep 3, 2024
2409e0c
fix notebook merge conflicts
ssolson Sep 4, 2024
57c8d02
use latex interpreter
ssolson Sep 4, 2024
c294b05
pylint required on new modules
ssolson Sep 4, 2024
7252d9f
pylint
jmcvey3 Sep 10, 2024
53961e7
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Sep 13, 2024
d5ebdd3
should be `pressure`
ssolson Sep 13, 2024
defad06
add run on main call
ssolson Sep 13, 2024
452ddce
disable E1101
ssolson Sep 13, 2024
3396692
test on __main__
ssolson Sep 17, 2024
9159e32
R0914: use dict for freq limits
ssolson Sep 17, 2024
38180bb
ide was complaining about -max set so use the * operator
ssolson Sep 17, 2024
c74fddf
fix too many locals
ssolson Sep 17, 2024
984d5e2
pass method as dict
ssolson Sep 17, 2024
cd2bac5
base.py type hints
ssolson Sep 17, 2024
764433c
adjust quatile call to dict
ssolson Sep 17, 2024
38489b4
add tests for helper functions
ssolson Sep 18, 2024
fd5148f
test for iclisten metadata
ssolson Sep 18, 2024
48318ba
type hints & checks
ssolson Sep 18, 2024
c45a604
type and value hints
ssolson Sep 18, 2024
b933690
pylint
ssolson Sep 18, 2024
5417cfe
add tests for helper functions
ssolson Sep 19, 2024
2fc8527
modifiy to avoid inplace overwrite
ssolson Sep 19, 2024
57a1922
Merge pull request #6 from ssolson/acoustics_module
jmcvey3 Sep 19, 2024
f899f76
Cleanup and minor edits
jmcvey3 Sep 19, 2024
d560041
less dry but fine
jmcvey3 Sep 19, 2024
e7e7a02
handle non `freq` dim
ssolson Sep 20, 2024
09d08fb
water_depth can be array
ssolson Sep 20, 2024
b4b9ac2
pass float not array
ssolson Sep 20, 2024
a186779
Merge branch 'acoustics_module' of https://github.com/jmcvey3/MHKiT-P…
ssolson Sep 20, 2024
db0edab
fix errors from acoustics module updates
ssolson Sep 20, 2024
5ac20ad
pylint
ssolson Sep 20, 2024
68dc32a
Ignore too many POSITIONAL args in addition to too many args
ssolson Sep 20, 2024
8fe42de
Minor changes
jmcvey3 Oct 1, 2024
0de1b6a
Use 'bin' instead of 'window' to avoid confusion
jmcvey3 Oct 9, 2024
378ea29
Remove redundant type checks
jmcvey3 Oct 10, 2024
22512f1
Reduce complexity and don't hardcode plotting units
jmcvey3 Oct 10, 2024
4f0c18b
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Oct 16, 2024
5a1b8f3
Reduce data size by using float32 on output, f-string fix
jmcvey3 Oct 17, 2024
cc6bb2b
Merge branch 'acoustics_module' of https://github.com/jmcvey3/MHKiT-P…
jmcvey3 Oct 17, 2024
3ab73b1
Review updates
jmcvey3 Oct 24, 2024
3d3e0c8
Line too long for pylint
jmcvey3 Oct 25, 2024
dbb9f0e
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Oct 29, 2024
768ca0b
run wave_example
ssolson Oct 29, 2024
9569a49
improve module docstrings
ssolson Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pylint Loads
name: Pylint

on: [push, pull_request]

Expand Down Expand Up @@ -28,3 +28,7 @@ jobs:
- name: Run Pylint on mhkit/power/
run: |
pylint mhkit/power/

- name: Run Pylint on mhkit/acoustics/
run: |
pylint mhkit/acoustics/
1,040 changes: 1,040 additions & 0 deletions examples/acoustics_example.ipynb

Large diffs are not rendered by default.

Binary file added examples/data/acoustics/6247.230204150508.wav
Binary file not shown.
41 changes: 41 additions & 0 deletions examples/data/acoustics/6247_calibration.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Frequency,Analog Sensitivity,
1,-223.49,
1.183,-220.8,
1.399,-218.13,
1.655,-215.41,
1.958,-212.68,
2.316,-209.91,
2.74,-207.12,
3.241,-204.29,
3.834,-201.45,
4.535,-198.58,
5.364,-195.69,
6.345,-192.79,
7.506,-189.85,
8.879,-186.9,
10.5,-183.93,
12.42,-180.93,
14.7,-177.92,
17.38,-174.97,
20.56,-172.16,
24.33,-169.61,
28.78,-167.69,
34.04,-166.52,
40.26,-165.96,
47.63,-165.81,
56.34,-165.85,
66.65,-165.95,
78.84,-166.05,
93.26,-166.13,
110.3,-166.2,
130.5,-166.25,
154.4,-166.28,
182.6,-166.29,
216,-166.29,
255.5,-166.27,
302.2,-166.24,
357.5,-166.17,
422.9,-166.03,
500.3,-165.79,
591.8,-165.47,
700,-164.87,
Binary file not shown.
Loading
Loading