Matlab scripts for oceanographic calculations

Shell-scripts I have written:

  • aou – Calculate the apparent oxygen utilization from the measured oxygen concentration, T and S.
  • densatp – Calculate the density of seawater at a given S, T and P-hydrostatic (dbar).
  • density – Calculate the density of seawater for a given S and T at 1 atm total pressure.
  • n2sat – Calculate nitrogen saturation as a function of S and T according to Weiss (1970).
  • n2satv2 – Calculate nitrogen saturation as a function of T and S according to Hamme & Emerson (2004).
  • o2sat – Calculate oxygen saturation as a function of S and T.
  • o2satv2a – Calculate oxygen saturation (ml O2/L) as a function of T and S according to Garcia & Gordon (1992).
  • o2satv2b – Calculate oxygen saturation (umol O2/kg) as a function of S and T according to Garcia & Gordon (1992).
  • pH_total –  Calculate pH of the total scale, plus all of the CO2 system parameters from S, T, P, phosphate, silicate, alkalinity, and total CO2.
  • salinity – Calculate the salinity (pss) of seawater from conductivity (S/m), T and P.
  • sbec2sal – Calculate the salinity (pss) of seawater from conductivity (mS/cm), T and P.
  • vapprs – Calculate the vapor pressure of water as a function of (S,T,P) according to Weiss and Price (1980).
  • Vsnd_stp1 – Calculate the speed of sound in seawater using the van ‘t Hoff equation with coefficients fitted to a data matrix calculated using the UNESCO 1995 speed of sound equation for seawater as determined by Wong and Zhu (1995).
  • Vsnd_stp2 – Calculate the speed of sound in seawater using the van ‘t Hoff equation with coefficients fitted to a data matrix calculated using the TEOS-10 complete EoS for seawater.
  • Vsnd_un95 – Calculate the speed of sound in seawater using the UNESCO 1995 sound speed equation for seawater as determined by Wong and Zhu (1995).

Shell-scripts that I have collected and modified/optimized for use on a PC (see note below):

  • Adiabat – Computes the adiabatic temperature gradient.
  • Depth – Computes depth given the pressure at some latitude.
  • Potentmp – Computes potential temperature from in-situ measurements. Requires adiabat.
  • Pressure – Computes pressure given the depth at some latitude.
  • Sndspd – Computes the speed of sound in seawater using any one of 5 (user selectable) formulations.

Note: These files were originally part of the oceanography toolbox [v1.4] compiled by R. Pawlowicz @ WHOI. I have renamed and modified these files for use with the Windows version of MATLAB®. These files will also work well in a UNIX environment.

Products

Data repository
Data policy
What is happening in Monterey Bay today?
Central and Northern California Ocean Observing System
Chemical data
Ocean float data
Slough data
Mooring ISUS measurements
M1 ISUS CTD Data Display
Southern Ocean Data
Mooring data
M1 Mooring Summary Data
M1 ADCP (CeNCOOS)
M1 Asimet
M1 Download Info
M1 EMeter
M1 Fluorometer (CeNCOOS)
M1 GPS Location
Molecular and genomics data
ESP Web Portal
Seafloor mapping
Upper ocean data
Spatial Temporal Oceanographic Query System (STOQS) Data
Tide prediction
Image gallery
Video library
Seminars
Previous seminars
David Packard Distinguished Lecturers
Research software
Video Annotation and Reference System
System Overview
Knowledgebase
Installation
Annotation Interface
Video Tape User Guide
Video File User Guide
Installation
Annotation Glossary
Query Interface
Basic User Guide
Advanced User Guide
Results
Installation
Query Glossary
FAQ
VARS Publications
Oceanographic Decision Support System
MB-System seafloor mapping software
MB-System Documentation
MB-System Announcements
MB-System Announcements (Archive)
How to Download and Install MB-System
MB-System Discussion Lists
MB-System FAQ
Matlab scripts: Linear regressions
Introduction to Model I and Model II linear regressions
A brief history of Model II regression analysis
Index of downloadable files
Summary of modifications
Regression rules of thumb
Results for Model I and Model II regressions
Graphs of the Model I and Model II regressions
Which regression: Model I or Model II?
Matlab scripts: Oceanographic calculations
Matlab scripts: Sound velocity
Visual Basic for Excel: Oceanographic calculations
Educational resources
MBARI Summer Internship Program
Education and Research: Testing Hypotheses (EARTH)
EARTH workshops
2016—New Brunswick, NJ
2015—Newport, Oregon
2016 Satellite workshop—Pensacola, FL
2016 Satellite workshop—Beaufort, NC
EARTH resources
EARTH lesson plans
Lesson plans—published
Lesson plans—development
Lesson drafts—2015
Lesson drafts—2016 Pensacola
Center for Microbial Oceanography: Research and Education (C-MORE) Science Kits
Publications
Sample archive