-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgsw_t90_from_t48.m
52 lines (46 loc) · 1.79 KB
/
gsw_t90_from_t48.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
function t90 = gsw_t90_from_t48(t48)
% gsw_t90_from_t48 ITS-90 temperature from IPTS-48 temperature
%==========================================================================
%
% USAGE:
% t90 = gsw_t90_from_t48(t48)
%
% DESCRIPTION:
% Calculates IPTS-48 temperature to International Temperature Scale 1990
% (ITS-90) temperature. This conversion should be applied to all in-situ
% data collected prior to 31/12/1967.
%
% INPUT:
% t48 = in-situ temperature (IPTS-48) [ deg C ]
%
% OUTPUT:
% t90 = in-situ temperature (ITS-90) [ deg C ]
%
% AUTHOR:
% Paul Barker and Trevor McDougall [ help@teos-10.org ]
%
% VERSION NUMBER: 3.05 (27th January 2015)
%
% REFERENCES:
% International Temperature Scales of 1948, 1968 and 1990, an ICES
% note, available from http://www.ices.dk/ocean/procedures/its.htm
%
% IOC, SCOR and IAPSO, 2010: The international thermodynamic equation of
% seawater - 2010: Calculation and use of thermodynamic properties.
% Intergovernmental Oceanographic Commission, Manuals and Guides No. 56,
% UNESCO (English), 196 pp. Available from http://www.TEOS-10.org
%
% The software is available from http://www.TEOS-10.org
%
%==========================================================================
%--------------------------------------------------------------------------
% Check variables
%--------------------------------------------------------------------------
if ~(nargin == 1)
error('gsw_t90_from_t48: Requires only one input argument')
end %if
%--------------------------------------------------------------------------
% Start of the calculation
%--------------------------------------------------------------------------
t90 = (t48 - (4.4e-6)*t48.*(100 - t48))./1.00024;
end