gliderad2cp
Processing toolchain for AD2CP data collected from autonomous underwater gliders. Processes from raw data to shear values ready for referencing.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.2%) to scientific vocabulary
Repository
Processing toolchain for AD2CP data collected from autonomous underwater gliders. Processes from raw data to shear values ready for referencing.
Basic Info
- Host: GitHub
- Owner: bastienqueste
- License: mit
- Language: Python
- Default Branch: main
- Size: 20.3 MB
Statistics
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 5
- Releases: 5
Metadata Files
README.md
gliderad2cp
gliderad2cp processes data from the Nortek AD2CP acoustic doppler current profiler (ADCP) mounted on a glider. gliderad2cp takes data from the ADCP unit and the glider and combines them to produce estimates of vertical shear of velocity. The gliderad2cp toolbox greatly simplifies file handling, integration of any glider data to ADCP data, and the complex trigonometry necessary to obtain high quality shear data. In particular, the integration of the Nortek AD2CP varies across glider manufacturers, either using alternating 3-beam configurations between up and down profiles (on the Seaglider or the Spray) or using 4 beams at all times (on the SeaExplorer). This python package allows users to easily load Nortek AD2CP netCDF files and pull the raw data to provide clean shear estimates with consistent processing and quality control independent of which glider they use. Finally, it provides a final referenced velocity profile and corrects for shear bias when the data permits.
Documentation is hosted at flow-lab.org/gliderad2cp/
Code is hosted at https://github.com/bastienqueste/gliderad2cp
Installation
gliderad2cp can be installed with pip
python -m pip install gliderad2cp
Usage
gliderad2cp requires 2 inputs: 1. A netcdf (.nc) file of Nortek AD2CP data as output by the Nortek MIDAS post-processing software. This software should be procured from Nortek. 2. Glider data in a timeseries dataset with the following variables:
- time
- pressure
- temperature
- salinity
- latitude
- longitude
- profile_number
Process shear
The primary functionality of gliderad2cp is to produce a gridded dataset of velocity shear using data from the glider and AD2CP. This is achieved with the function process_shear.process:
python
from gliderad2cp import process_adcp
adcp_file_path = "path/to/adcp/files"
glider_file_path = "path/to/glider/files"
ds_adcp = process_shear.process(adcp_file_path, glider_file_path)
Process currents
Once shear velocities have been calculated using this function, the function process_currents.process can be used to estimate absolute velocity profiles:
python
from gliderad2cp import process_currents
currents, DAC = process_currents.process(ds_adcp, gps_predive, gps_postdive)
This requires the output of process_shear.process and GPS locations before and after each dive.
Correct shear bias
Shear bias can be estimated and corrected with the function process_bais.process
python
from gliderad2cp import process_bias
process_bias.process(currents)
Additional options
Several options are available to fine tune the processing.
By default, the first of each option is used during processing. unless otherwise specified.
python
{correct_compass_calibration : [False, 'compass correction algorithm is awaiting publication and will be added upon acceptance. Contact Bastien Queste if you require.'],
shear_to_velocity_method : ['integrate'],
ADCP_mounting_direction : ['auto', 'top', 'bottom'],
QC_correlation_threshold : [80, 'minimum acceptable along-beam correlation value.'],
QC_amplitude_threshold : [80, 'maximum acceptable along-beam amplitude.'],
QC_velocity_threshold : [0.8, 'maximum acceptable along-beam velocity in m.s-1.'],
QC_SNR_threshold : [3, 'minimum acceptable dB above the noise floor.'],
velocity_regridding_distance_from_glider : ['auto', 'array of depth-offsets from the glider, in m, at which to interpolate beam velocities onto isobars to avoid shear-smearing. Negative for bottom-mounted ADCPs.'],
xaxis : [1, 'x-axis resolution in number of profiles of the final gridded products.'],
yaxis : [None, 'If None: ADCP cell size. If int: y-axis resolution in metres of the final gridded products.'],
weight_shear_bias_regression : [False, True, 'Give greater weight to dives with greater travel distance which can increase signal to noise.'],
velocity_dependent_shear_bias_correction : [False, True, 'Determine velocity dependent shear-bias correction coefficients rather than constant coefficients.'],
shear_bias_regression_depth_slice : [(0, 1000), 'A tuple containing the upper and lower depth limits over which to determine shear bias. Helpful to avoid increased noise due to surface variability. For deep diving gliders (500,1000) is good.'],
pitch_offset : [0, 'value to be added to pitch to correct for transducer-compass misalignment'],
roll_offset : [0, 'value to be added to roll to correct for transducer-compass misalignment'],}
These options can be changed by using the options kwarg in the relevant functions.
Contributing
gliderad2cp welcomes contributions. Feel free to submit an Issue or Pull Request if you have recommendations or have experienced issues with the package. Please see the community guidelines, CONTRIBUTING.md and make use of the Issue and Pull Request templates.
Citation (CITATION.cff)
cff-version: 1.2.0 title: gliderad2cp message: "If you use this software, please cite it using the metadata from this file." type: software authors: - family-names: Queste given-names: Bastien Yves orcid: 'https://orcid.org/0000-0002-3786-2275' affiliation: Department of Marine Science, University of Gothenburg, Natrium, Box 463, 405 30 Göteborg, Sweden - family-names: Rollo given-names: Callum orcid: https://orcid.org/0000-0002-5134-7886 affiliation: Voice of the Ocean Foundation. Skeppet Ärans väg 19, 426 71 Västra Frölunda, Sweden - family-names: Font given-names: Estel orcid: 'https://orcid.org/0000-0002-8767-6665' affiliation: Department of Marine Science, University of Gothenburg, Natrium, Box 463, 405 30 Göteborg, Sweden - family-names: Mohrmann given-names: Martin orcid: 'https://orcid.org/0000-0001-8056-4866' affiliation: Voice of the Ocean Foundation, Skeppet Ärans väg 19, 426 71 Västra Frölunda, Sweden repository-code: 'https://github.com/bastienqueste/gliderad2cp' abstract: "gliderad2cp processes data from the Nortek AD2CP acoustic doppler current profiler (ADCP) mounted on a glider." license: MIT
GitHub Events
Total
- Create event: 14
- Release event: 4
- Issues event: 14
- Delete event: 9
- Issue comment event: 18
- Push event: 35
- Pull request review event: 5
- Pull request event: 41
- Fork event: 1
Last Year
- Create event: 14
- Release event: 4
- Issues event: 14
- Delete event: 9
- Issue comment event: 18
- Push event: 35
- Pull request review event: 5
- Pull request event: 41
- Fork event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 6
- Total pull requests: 9
- Average time to close issues: 6 months
- Average time to close pull requests: 3 months
- Total issue authors: 4
- Total pull request authors: 2
- Average comments per issue: 0.67
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 5
- Pull requests: 8
- Average time to close issues: 13 days
- Average time to close pull requests: 6 days
- Issue authors: 4
- Pull request authors: 2
- Average comments per issue: 0.6
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- callumrollo (7)
- bastienqueste (1)
- maupintj (1)
- JGradone (1)
- nbronikowski (1)
Pull Request Authors
- callumrollo (26)
- bastienqueste (10)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 23 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
pypi.org: gliderad2cp
process glider AD2CP data
- Documentation: https://gliderad2cp.readthedocs.io/
- License: MIT License Copyright (c) 2023 Bastien Queste Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 0.0.10
published over 1 year ago