-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathts.m
executable file
·112 lines (82 loc) · 1.69 KB
/
ts.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
intr=365;
nperday=8;
!csh get_eta.sh
fileID = fopen('eta.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
t=datetime(2000,4,15)+3*hours(1:length(x));
figure(1)
plot(t,x)
grid on
ylabel('eta [m]')
print -djpeg figs/TS_ETA
fileID = fopen('sst.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(2)
plot(t,x)
grid on
ylabel('sst [DegC]')
print -djpeg figs/TS_SST
fileID = fopen('theta.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(3)
plot(t,x)
grid on
ylabel('theta [DegC]')
print -djpeg figs/TS_THETA
fileID = fopen('salt.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(4)
plot(t,x)
grid on
ylabel('salt [psu]')
print -djpeg figs/TS_SALT
fileID = fopen('sss.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(5)
plot(t,x)
grid on
ylabel('sss [DegC]')
print -djpeg figs/TS_SSS
fileID = fopen('area.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(6)
plot(t,x.*6370000^2*4*pi*0.7021)
grid on
ylabel('area [m^2]')
print -djpeg figs/Ice_TS_AREA
fileID = fopen('heff.txt');
x1=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
fileID = fopen('area.txt');
x2=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(7)
plot(t,x1./x2)
grid on
ylabel('heff [m]')
print -djpeg figs/Ice_TS_HEFF
fileID = fopen('heff.txt');
x=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(8)
plot(t,x.*6370000^2*4*pi*0.7021)
grid on
ylabel('volume [m^3]')
print -djpeg figs/Ice_TS_VOLICE
fileID = fopen('hsnow.txt');
x1=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
fileID = fopen('area.txt');
x2=cell2mat(textscan(fileID,'%f'));
fclose(fileID);
figure(9)
plot(t,x1./x2)
grid on
ylabel('hsnow [m]')
print -djpeg figs/Ice_TS_HSNOW