sgdepth2pres

PURPOSE ^

SGDEPTH2PRES Reverse Seaglider pressure to depth conversion.

SYNOPSIS ^

function pres = sgdepth2pres(depth)

DESCRIPTION ^

SGDEPTH2PRES  Reverse Seaglider pressure to depth conversion.

  Syntax:
    PRES = SGDEPTH2PRES(DEPTH)

  Description:
    PRES = SGDEPTH2PRES(DEPTH) converts depth estimates (cm) in array DEPTH to 
    pressure readings in engineering units (dbar) in array PRES, reversing the 
    on board conversion performed by a Seaglider glider (see note below).

  Notes:
    Seaglider gliders do not report pressure measurements. Instead, the 
    pressure readings are converted to approximate depth values using a 
    constant scale factor of 0.685 psig/m. This function reverses that
    conversion using that factor and 14.503774 psi/bar.

  Examples:
    pres = sgdepth2pres(depth)

  Authors:
    Joan Pau Beltran  <joanpau.beltran@socib.cat>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

sgdepth2pres.m

SOURCE CODE ^

0001 function pres = sgdepth2pres(depth)
0002 %SGDEPTH2PRES  Reverse Seaglider pressure to depth conversion.
0003 %
0004 %  Syntax:
0005 %    PRES = SGDEPTH2PRES(DEPTH)
0006 %
0007 %  Description:
0008 %    PRES = SGDEPTH2PRES(DEPTH) converts depth estimates (cm) in array DEPTH to
0009 %    pressure readings in engineering units (dbar) in array PRES, reversing the
0010 %    on board conversion performed by a Seaglider glider (see note below).
0011 %
0012 %  Notes:
0013 %    Seaglider gliders do not report pressure measurements. Instead, the
0014 %    pressure readings are converted to approximate depth values using a
0015 %    constant scale factor of 0.685 psig/m. This function reverses that
0016 %    conversion using that factor and 14.503774 psi/bar.
0017 %
0018 %  Examples:
0019 %    pres = sgdepth2pres(depth)
0020 %
0021 %  Authors:
0022 %    Joan Pau Beltran  <joanpau.beltran@socib.cat>
0023 
0024 %  Copyright (C) 2014-2016
0025 %  ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears
0026 %  <http://www.socib.es>
0027 %
0028 %  This program is free software: you can redistribute it and/or modify
0029 %  it under the terms of the GNU General Public License as published by
0030 %  the Free Software Foundation, either version 3 of the License, or
0031 %  (at your option) any later version.
0032 %
0033 %  This program is distributed in the hope that it will be useful,
0034 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
0035 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0036 %  GNU General Public License for more details.
0037 %
0038 %  You should have received a copy of the GNU General Public License
0039 %  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0040 
0041   psig2m = 0.685;
0042   bar2psi = 14.503774;
0043   pres = depth / (psig2m * bar2psi * 10);
0044 
0045 end

Generated on Fri 06-Oct-2017 10:47:42 by m2html © 2005