-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFig4.m
More file actions
161 lines (133 loc) · 4.73 KB
/
Copy pathFig4.m
File metadata and controls
161 lines (133 loc) · 4.73 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
%plots meander and no meander composites from both HYCOM and INALT on a single axes for JGR paper
% N. Malan, Cape Town, October 2017
close all;clear all;clc
%load HYCOM
load HYCOM_meander_compo.mat
figure(1)
%subaxis(2,2,1,'spacinghoriz',0.05,'spacingvert',0.05)
subaxis(3,2,1,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,pulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
cb=colorbar('horiz','position',[.15,.06,.7,.01]);
xlabel(cb,'SST [^oC]')
caxis([18 26])
m_grid('box','on')
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'HYCOM meander','fontsize',10)
m_text(18.4,-33.3,'a)','fontweight','bold','fontsize',14)
hold on
f= [1:4:length(lat_s)];
j= [1:4:length(lon_s)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),pulse_mean_U(f,j),pulse_mean_V(f,j),2,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
subaxis(3,2,2,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,nopulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
%colorbar('horiz','position',[.15,.2,.7,.01]);
caxis([18 26])
m_grid('box','on','yticklabels',[])
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'HYCOM non-meander','fontsize',10)
m_text(18.4,-33.3,'b)','fontweight','bold','fontsize',14)
hold on
f= [1:4:length(lat_s)];
j= [1:4:length(lon_s)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),nopulse_mean_U(f,j),nopulse_mean_V(f,j),2,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
%load INALT
load INALT_meander_compo.mat
subaxis(3,2,3,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,pulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
caxis([18 26])
m_grid('box','on')
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'INALT meander','fontsize',10)
m_text(18.4,-33.3,'c)','fontweight','bold','fontsize',14)
hold on
f= [1:4:length(lat_s)];
j= [1:4:length(lon_s)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),pulse_mean_U(f,j),pulse_mean_V(f,j),2,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
subaxis(3,2,4,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,nopulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
%colorbar('horiz','position',[.15,.2,.7,.01]);
caxis([18 26])
m_grid('box','on','yticklabels',[])
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'INALT non-meander','fontsize',10)
m_text(18.4,-33.3,'d)','fontweight','bold','fontsize',14)
hold on
f= [1:4:length(lat_s)];
j= [1:4:length(lon_s)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),nopulse_mean_U(f,j),nopulse_mean_V(f,j),2,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
%load AVISO & GHRSST
load AVISO_meander_compo.mat
subaxis(3,2,5,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,pulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
caxis([18 26])
m_grid('box','on','xticklabels',[])
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'Obs meander','fontsize',10)
m_text(18.4,-33.3,'e)','fontweight','bold','fontsize',14)
hold on
f= [1:2:length(Lat)];
j= [1:2:length(Lon)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),pulse_mean_U(f,j),pulse_mean_V(f,j),1,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
subaxis(3,2,6,'spacinghoriz',0.05,'spacingvert',0.05)
m_proj('mercator','longitude',[18 30],'latitude', [-38 -33])
m_pcolor(lon_s,lat_s,nopulse_mean_T)
map=brewermap(24,'OrRd')
colormap(map)
shading interp
%colorbar('horiz','position',[.15,.2,.7,.01]);
caxis([18 26])
m_grid('box','on','xticklabels',[],'yticklabels',[])
m_gshhs_i('patch',[.7 .7 .7])
m_text(19.2,-33.5,'Obs non-meander','fontsize',10)
m_text(18.4,-33.3,'f)','fontweight','bold','fontsize',14)
hold on
f= [1:2:length(Lat)];
j= [1:2:length(Lon)]; %Take every 4th arrow for plotting
m_quiver((lon1(f,j)),(lat1(f,j)),nopulse_mean_U(f,j),nopulse_mean_V(f,j),1,'k')
%add bathymetry
clevs=[-200];
[fat guy]=m_tbase('contour',0:-200:-200,'linewidth',2,'linecolor','k');
clabel(fat,guy,clevs)
%plot scale vector
m_vec(4,29.75,-37.5,-1,0)
m_text(28.75,-37.25,'1m/s')