Sensor Algorithms

The algorithm code used to generate each data product in the OOI Cyberinfrastructure system can be found in the ion-functions GitHub repository.

Sensor algorithms are free for the community to download and utilize, either as they use OOI raw data, or to be adapted for their own observational data. Note that the provided algorithms are written in Python.

The OOI Data Functions are implemented in this group of modules. These modules, and the functions therein, represent the transforms and calculations applied to parameters uploaded to the system via either dataset or instrument agents, and are used to determine various OOI data products. A brief description of the modules and their contents are provided below. Each set of modules is grouped according to its Instrument Family as defined in SAF.


Available Python Scripts

pCO2 Water (PCO2W)

Calculation of the L1 PCO2WAT data product and extraction of the associated L0 data products. (co2_functions.py)

CTD (CTDAV, CTDBP, CTDGV, CTDMO, CTDPF)

Calculation of the L1 CONDWAT, TEMPWAT and PRESWAT data products, and the L2 PRACSAL and DENSITY data products. (ctd_functions.py)

Dissolved Oxygen (DOFST, DOSTA)

Calculates DOFST and DOSTA data products. (do2_functions.pyDirect Covariance Flux (FDCHP)Calculation of the FDCHP data products. (fdc_functions.py)

Fluorometers (FLORT, FLORD, FLNTU, FLDCR)

Calculation of the L1 CDOMFLO, L1 CHLAFLO, and L1 and L2 FLUBSCT data products. (flo_functions.py)

Hydrophone (HYDBB)

Calculates the L1 HYDAPLF and HYDAPBB data products. (hyd_functions.py)

Bulk Meteorology Instrument Package (METBK)

Calculation of the METBK L1 & L2 data products. (met_functions.py)

Mass Spectrometer (MASSP)

Calculates all of the L1 and L2 data products associated with the MASSP instrument. In addition, it includes all of the functions needed to calculate the necessary auxiliary data products including timestamp and calibration range information. (msp_functions.py)

Nitrate (NUTNR)

Calculates the L2 temperature and salinity corrected dissolved nitrate concentration (NITRTSC) data product. (nit_functions.py)

Ocean Bottom Seismometer (OBSBB)

Calculates the L1 GRNDVEL, GRNDACC and SGRDVEL data products. (obs_functions.py)

Optical Properties (OPTAA, PARAD, SPIKR)

Calculation of the data products from the OPTAA, PARAD, and SPKIR instrument classes. (opt_functions.py)

Provides an array of the published wavelength-dependent temperature and salinity correction factors for the OPTAA data products. Values are provided by the vendor. (opt_functions_tscor.py)

Seawater pH (PHSEN)

Covers calculation of the L1 PHWATER data product and extraction of the associated L0 data products.(ph_functions.py)

Seafloor Pressure (BOTPT)

Covers calculation of the L1 (BOTTILT) and L2 (BOTSFLU) data products collected from the BOTPT instruments. (prs_functions.py)

BOTTILT:
– Dictionary of compass calibration data required by prs_bottilt_ccmp. (prs_functions_ccmp.py)
– Re-organized dictionary of compass calibration data required by the faster version of prs_bottilt_ccmp; the code for the faster version is currently commented out within the prs_bottilt_ccmp code. (prs_functions_ccmp_lily_compass_cals.py)

BOTSFLU: Functions calculating data products and event notifications. Binary v7 matlab save file (prs_functions_tides_2014_thru_2019.mat)

Seafloor Properties (THSPH, TRHPH, and PRESF)

Covers calculation of L1 and L2 data products collected from the THSPH, TRHPH, and PRESF instruments (sfl_functions.py)

Recreates the 3 arrays of temperature (tdat), conductivty (sdat) and chloride (cdat) from the Larson et al 2007 derived calibration surface provided to CI in a Matlab file (Larson_2007surface.mat). This file is required by sfl_trhph_chloride. (sfl_functions_surface.py)

ADCP Water Velocity (ADCPA, ADCPS, ADCPT and VADCP)

Covers calculation of the L1 VELPROF, VELTURB and ECHOINT data products from the tRDI ADCPs used throughout the program (adcp_functions.py)

Single Point Water Velocity (VEL3D, VELPT)

Covers calculation of the L1 VEL3D Eastward, Northward, and Upward component data products from VEL3D and VELPT instruments (vel_functions.py)

Surface Wave Spectra (WAVSS)

Covers calculation of the WAVSS data products WAVSTAT from the TRIAXYS instrument (wav_functions.py)

Additional Functions

Provide for transforms and calculations that apply to multiple instrument families. (generic_functions.py)