press.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Thu, 18 Feb 2016 11:21:04 +0000
changeset 19 b0fe24d04ba8
parent 0 0a450563f904
permissions -rw-r--r--
Version IX_12

function p = press(z)
%function p = press(z)
%C-------------------------------------------------------------------------------
%C
%C                            Function = PRESS
%C
%C     This computes pressure in decibars, given the depth in meters.           *
%C     Formula is from the GEOSECS operation group (See computer routine
%C     listings in the El Nino Watch Data Reports).
%C
%C-------------------------------------------------------------------------------

C1=  2.398599584e05;
C2=  5.753279964e10;
C3=  4.833657881e05;
ARG = C2 -  C3 * z;
p = C1 - sqrt( ARG );