press.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Tue, 29 Jun 2021 09:14:43 -0400
changeset 23 e83393696a24
parent 0 0a450563f904
permissions -rw-r--r--
IX_14 Release Version

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 );