1 |
|
---|
2 |
function dS = sw_salds(Rtx,delT) |
---|
3 |
|
---|
4 |
% SW_SALDS Differiential dS/d(sqrt(Rt)) at constant T. |
---|
5 |
%========================================================================= |
---|
6 |
% SW_SALDS $Id: sw_salds.m,v 1.1 2003/12/12 04:23:22 pen078 Exp $ |
---|
7 |
% Copyright (C) CSIRO, Phil Morgan 1993. |
---|
8 |
% |
---|
9 |
% USAGE: dS = sw_salds(Rtx,delT) |
---|
10 |
% |
---|
11 |
% DESCRIPTION: |
---|
12 |
% Calculates Salinity differential dS/d(sqrt(Rt)) at constant T. |
---|
13 |
% UNESCO 1983 polynomial. |
---|
14 |
% |
---|
15 |
% INPUT: (all must have same dimensions) |
---|
16 |
% Rtx = sqrt(Rt) where Rt defined in sw_salt.m |
---|
17 |
% delT = T-15 [degree C (IPTS-68)] |
---|
18 |
% |
---|
19 |
% OUTPUT: |
---|
20 |
% dS = S differential dS/d(sqrt(Rt)) at constant T. |
---|
21 |
% |
---|
22 |
% AUTHOR: Phil Morgan 93-04-21, Lindsay Pender (Lindsay.Pender@csiro.au) |
---|
23 |
% |
---|
24 |
% DISCLAIMER: |
---|
25 |
% This software is provided "as is" without warranty of any kind. |
---|
26 |
% See the file sw_copy.m for conditions of use and licence. |
---|
27 |
% |
---|
28 |
% REFERENCES: |
---|
29 |
% Fofonoff, P. and Millard, R.C. Jr |
---|
30 |
% Unesco 1983. Algorithms for computation of fundamental properties of |
---|
31 |
% seawater, 1983. _Unesco Tech. Pap. in Mar. Sci._, No. 44, 53 pp. |
---|
32 |
%========================================================================= |
---|
33 |
|
---|
34 |
% CALLER: sw_cndr.m |
---|
35 |
% CALLEE: none |
---|
36 |
|
---|
37 |
%------------- |
---|
38 |
% CHECK INPUTS |
---|
39 |
%------------- |
---|
40 |
if nargin~=2 |
---|
41 |
error('sw_salds.m: must have 2 input arguments') |
---|
42 |
end %if |
---|
43 |
|
---|
44 |
[m1,n1] = size(Rtx); |
---|
45 |
[m2,n2] = size(delT); |
---|
46 |
if ~(m1==m2 | n1==n2) |
---|
47 |
error('sw_salds.m: Rtx and delT must have the same shape') |
---|
48 |
end %if |
---|
49 |
|
---|
50 |
%------- |
---|
51 |
% BEGIN |
---|
52 |
%------- |
---|
53 |
|
---|
54 |
a0 = 0.0080; |
---|
55 |
a1 = -0.1692; |
---|
56 |
a2 = 25.3851; |
---|
57 |
a3 = 14.0941; |
---|
58 |
a4 = -7.0261; |
---|
59 |
a5 = 2.7081; |
---|
60 |
|
---|
61 |
b0 = 0.0005; |
---|
62 |
b1 = -0.0056; |
---|
63 |
b2 = -0.0066; |
---|
64 |
b3 = -0.0375; |
---|
65 |
b4 = 0.0636; |
---|
66 |
b5 = -0.0144; |
---|
67 |
|
---|
68 |
k = 0.0162; |
---|
69 |
|
---|
70 |
dS = a1 + (2*a2 + (3*a3 + (4*a4 + 5*a5.*Rtx).*Rtx).*Rtx).*Rtx + ... |
---|
71 |
(delT./(1+k*delT))* ... |
---|
72 |
(b1 + (2*b2 + (3*b3 + (4*b4 + 5*b5.*Rtx).*Rtx).*Rtx).*Rtx); |
---|
73 |
|
---|