From 6dc14db7b92a6a413a00337c489df0799172b96b Mon Sep 17 00:00:00 2001 From: jmcvey3 <53623232+jmcvey3@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:55:14 -0700 Subject: [PATCH 01/14] Improve and make surface cleaning functions more robust --- examples/adcp_example.ipynb | 237 +++++++++--------- .../dolfyn/test_data/AWAC_test01_clean.nc | Bin 74049 -> 74049 bytes .../data/dolfyn/test_data/RDI_test01_clean.nc | Bin 0 -> 64249 bytes .../dolfyn/test_data/Sig1000_tidal_clean.nc | Bin 224083 -> 228153 bytes .../dolfyn/test_data/Sig500_Echo_clean.nc | Bin 256111 -> 262676 bytes mhkit/dolfyn/adp/clean.py | 235 ++++++++++++----- mhkit/dolfyn/adv/clean.py | 1 - mhkit/dolfyn/io/rdi.py | 6 - mhkit/dolfyn/velocity.py | 18 +- mhkit/tests/dolfyn/test_clean.py | 21 +- 10 files changed, 312 insertions(+), 206 deletions(-) create mode 100644 examples/data/dolfyn/test_data/RDI_test01_clean.nc diff --git a/examples/adcp_example.ipynb b/examples/adcp_example.ipynb index 717f48cb5..f83d007f8 100644 --- a/examples/adcp_example.ipynb +++ b/examples/adcp_example.ipynb @@ -82,7 +82,6 @@ "name": "stdout", "output_type": "stream", "text": [ - "Indexing data/dolfyn/Sig1000_tidal.ad2cp... Done.\n", "Reading file data/dolfyn/Sig1000_tidal.ad2cp ...\n" ] } @@ -515,26 +514,26 @@ " coord_sys: earth\n", " fs: 1\n", " has_imu: 1\n", - " beam_angle: 25