API Reference
The API reference is automatically generated from the function docstrings in the GliderTools package. Refer to the examples in the sidebar for reference on how to use the functions.
Loading Data
|
Load a list of variables from the SeaGlider object as a |
|
Loads an EGO formatted glider mission file. |
|
Load .mat file generated with the geomar MATLAB script for Slocum data. |
|
Load .nc file downloaded from https://observations.voiceoftheocean.org/. |
Adapts a VOTO xarray dataset, for example downloaded from the VOTO ERDAP server (https://erddap.observations.voiceoftheocean.org/erddap/index.html) to be used in GliderTools |
|
|
Concatenates multiple datasets along the time dimensions, profile_num and dives variable(s) are adapted so that they start counting from one for the first dataset and monotonically increase. |
High level processing
|
A standard setup for processing physics variables (temperature, salinity). |
|
This function processes oxygen. |
|
The function processes the raw backscattering data in counts into total backscatter (bbp) in metres. |
|
This function processes raw fluorescence and corrects for quenching using the Thomalla et al. (2018) approach [1]_. |
|
Calculates the theoretical PAR based on an exponential curve fit. |
Cleaning
|
Mask values outside the upper and lower outlier limits by standard deviation |
|
Mask values outside the upper/lower outlier limits by interquartile range: |
|
Find Z-score outliers (> 3) on the horizontal. |
|
Find bad dives - where more than a fraction of the dive is masked |
|
Use the 2D density cloud of observations to find outliers for any variables |
|
Return a smooth baseline of data and the anomalous spikes |
|
A report for the results of cleaning.despike. |
|
A rolling window function that is nan-resiliant |
|
Smooth (and optionally differentiate) data with a Savitzky-Golay filter. |
Physics
|
Calculates the MLD for ungridded glider array. |
|
Calculate density from glider measurements of salinity and temperature. |
|
Calculate the square of the buoyancy frequency. |
Optics
|
Find profiles that exceed a threshold at a reference depth. |
|
Calculates an in situ dark count from the PAR sensor. |
|
Calculates an in situ dark count from the backscatter sensor. |
|
Calculates an in situ dark count from the fluorescence sensor. |
|
Scaling correction for par with factory calibration coefficients. |
|
Algebraically calculates the top 5 metres of the par profile. |
|
Algebraically calculates the euphotic depth. |
|
Calculates the local sunrise/sunset of the glider location. |
|
Corrects the fluorescence data based upon Thomalla et al. (2017). |
|
A report for the results of optics.quenching_correction. |
Calibration
|
Performs a matchup between glider and bottle samples based on time and depth (or density). |
|
Creates the figure for a linear model fit. |
|
Perform a robust linear regression using a Huber Loss Function to remove outliers. |
Gridding and Interpolation
|
Performs objective interpolation (or Kriging) of a 2D field. |
|
Grids the input variable to bins for depth/dens (y) and time/dive (x). |
|
Find the interpolation parameters and x and y scaling of the horizontal and vertical coordinate paramters for objective interpolation (Kriging). |
Plotting
|
Plot data (gridded or not) as a section and more. |
General Utilities
|
Gets the average time stamp per dive. |
|
Masks all data above depths. |
|
Masks all data below depths. |
|
Masks either above or below mask_depth. |
|
Merges variables measured at different time intervals. |
|
Calculate glider vertical velocity in cm/s |
|
Determine the glider dive phase |
|
Determine the glider dive number (based on dive phase) |
|
|
|
Great-circle distance in m between lon, lat points. |
|
Group profiles by dives column. |