OOIPY Documentation¶

OOIPY is a python toolbox designed to aid in scientific analysis of Ocean Observatories Initiative (OOI) data. Some data (such as broadband hydrophone data) is not available through the OOI API (M2M). This package is designed to help with the acquiring of datasets from the OOI Raw Data Server. Additionally, tools to analyze the data, such as spectrogram and power spectral density plotting are also provided.
First Steps¶

How to Install OOIPY¶
To fork our project, you can visit our Github Repository.
OOIPY is available on PyPI.
Install Instruction¶
OOIPY is designed to run on Python version 3.9 and above. To install OOIPY, run the following command:
pip install ooipy
Please see our Getting Started Guide for a tutorial on basic OOIPY usage.
How to setup OOIPY development environment¶
- Navigate into the folder where you wish to setup ooipy and clone the repository using this command:
git clone https://github.com/Ocean-Data-Lab/ooipy.git
- Setup a new Conda environment using this command:
conda create --name env_name python=3.10 pip
- Activate the environment using this command:
source activate env_name
- Install ooipy using this command in the same directory where the repository has been cloned:
pip install -e ooipy
- Install the development environment package requirements :
cd ooipy
pip install -r dev-requirements.txt
- When this runs successfully, open a python prompt to verify if installation is proper, using this command:
python
import ooipy
print(ooipy.__file__)
If the path printed out matches the __init__.py from your local installation path for the ooipy github repository, your development environment has been properly setup.

How to Cite OOIPY¶
Please cite our project as
Schwock, Felix, Ragland, John, Munson, Matthew, & Abadi, Shima. (2020, December 1). OOIPy: A Python toolbox designed to aid in the scientific analysis of Ocean Observatories Initiative (OOI) data (Version v1.0.3). Zenodo. http://doi.org/10.5281/zenodo.4300725

OOIPY Demos¶
This section is under development. Demos can currently be found on GitHub repository
- ooipy/hydrophone_demo.ipynb
- ooipy/ctd_demo.ipynb
API Documentation¶

Basic Hydrophone Functions¶

Basic CTD Functions¶

Request Module¶
This module provides the tools to download OOI data from the OOI Raw Data Server.
Hydrophone Nodes¶
- Slope Base Shallow (Fs = 64 kHz)
- ‘PC01A’
- Axial Base Seaflor (Fs = 200 Hz)
- ‘Axial_Base’
- ‘AXABA1’
- Central Caldera (Fs = 200 Hz)
- ‘Central_Caldera’
- ‘AXCC1’
- Eastern Caldera (Fs = 200 Hz)
- ‘Eastern_Caldera’
- ‘AXEC2’
- Southern Hydrate (Fs = 200 Hz)
- ‘Southern_Hydrate’
- ‘HYS14’
- Oregon Slope Base Seafloor (Fs = 200 Hz)
- ‘Slope_Base’
- ‘HYSB1’
Hydrophone¶
CTD¶

Tools Module¶
This module provides some additional tools for visualizing and saving spectrogram and power spectral density objects
Visualization¶
Workflow¶

Scripts¶
There are a collection of useful scripts that can be used to download and process data. The scripts are included in the package if downloaded with pypi, but can also be downloaded and run individually from the github repo.
download_hydrophone_data¶
location: ooipy/scripts/download_hydrophone_data.py
This script downloads hydrophone data that is specified in a csv.
Here is an example csv file:
The script can be run with the following command: