-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubScript_PlotModelParams.m
More file actions
212 lines (190 loc) · 7.52 KB
/
Copy pathSubScript_PlotModelParams.m
File metadata and controls
212 lines (190 loc) · 7.52 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
%Sub-script to be called in Script_Dailymaps_NonStationaryMarginalAndCov.m
for my_type=1:nb_clusters
%for my_type=2:2
M_Data_type=M_Data_Training(:,V_RainTypes_Training==my_type);
figure(num_fig+my_type)
clf
colormap('jet')
%Marginal - a0 - at simulation locations
subplot(2,7,1)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_gauge=1:size(M_Data_gapfilled,1)
my_max=6;
my_val=M_ParamMarginal_ObsSites(my_gauge,1,my_type)+3;
my_ind_color=max(1,min(floor(my_val/my_max*255)+1,255));
plotm(V_Lat(my_gauge),V_Lon(my_gauge),'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([-3 3])
title('a0')
%Marginal - k - at simulation locations
subplot(2,7,2)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_gauge=1:size(M_Data_gapfilled,1)
my_max=1.5;
my_val=M_ParamMarginal_ObsSites(my_gauge,2,my_type);
my_ind_color=min(floor(my_val/my_max*255)+1,255);
plotm(V_Lat(my_gauge),V_Lon(my_gauge),'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([0 my_max])
title('k')
%Marginal - teta - at simulation locations
subplot(2,7,3)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_gauge=1:size(M_Data_gapfilled,1)
my_max=25;
my_val=M_ParamMarginal_ObsSites(my_gauge,3,my_type);
my_ind_color=min(floor(my_val/my_max*255)+1,255);
plotm(V_Lat(my_gauge),V_Lon(my_gauge),'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([0 my_max])
title('teta')
%Covariance - gamma1 - at PilotPoint locations
subplot(2,7,4)
hold on
my_max=150;
my_colormap=colormap('jet');
Plot_coastline()
for my_pilotpoint=1:length(V_X_ClimateDivisions)
my_val=M_ParamsMatern_ClimateDivisions(my_type,my_pilotpoint,1)+150;
my_ind_color=max(min(floor(my_val/300*255)+1,255),1);
plotm(V_Y_ClimateDivisions(my_pilotpoint)/111,V_X_ClimateDivisions(my_pilotpoint)/111,'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([-my_max my_max])
title('gamma1')
%Covariance - gamma2 - at PilotPoint locations
subplot(2,7,5)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_pilotpoint=1:length(V_X_ClimateDivisions)
my_val=M_ParamsMatern_ClimateDivisions(my_type,my_pilotpoint,2)+150;
my_ind_color=max(min(floor(my_val/300*255)+1,255),1);
plotm(V_Y_ClimateDivisions(my_pilotpoint)/111,V_X_ClimateDivisions(my_pilotpoint)/111,'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([-my_max my_max])
title('gamma2')
%Covariance - rho2 - at PilotPoint locations
subplot(2,7,6)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_pilotpoint=1:length(V_X_ClimateDivisions)
my_val=M_ParamsMatern_ClimateDivisions(my_type,my_pilotpoint,3);
my_ind_color=min(floor(my_val/my_max*255)+1,255);
plotm(V_Y_ClimateDivisions(my_pilotpoint)/111,V_X_ClimateDivisions(my_pilotpoint)/111,'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([0 my_max])
title('rho2')
%Covariance - nu - at PilotPoint locations
subplot(2,7,7)
hold on
my_colormap=colormap('jet');
Plot_coastline()
for my_pilotpoint=1:length(V_X_ClimateDivisions)
my_max=1.5;
my_val=M_ParamsMatern_ClimateDivisions(my_type,my_pilotpoint,4);
my_ind_color=min(floor(my_val/my_max*255)+1,255);
plotm(V_Y_ClimateDivisions(my_pilotpoint)/111,V_X_ClimateDivisions(my_pilotpoint)/111,'o','MarkerSize',5,'color','k','MarkerFaceColor',my_colormap(my_ind_color,:))
end
colorbar
caxis([0 my_max])
title('nu')
%Marginal - a0 - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamMarginal_SimulationPoints(1:length(V_X_SimulationGrid),my_type,1);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,8)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
caxis([-3 3])
title('a0 interp')
%Marginal - k - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamMarginal_SimulationPoints(1:length(V_X_SimulationGrid),my_type,2);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,9)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('k interp')
caxis([0 1.5])
%Marginal - teta - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamMarginal_SimulationPoints(1:length(V_X_SimulationGrid),my_type,3);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,10)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('teta interp')
caxis([0 25])
%Covariance - gamma1 - on SimulationGrid
my_max=150;
%my_max=40;
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamCovariance_SimulationPoints(1:length(V_X_SimulationGrid),my_type,1);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,11)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('gamma1 interp')
caxis([-my_max my_max])
%Covariance - gamma2 - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamCovariance_SimulationPoints(1:length(V_X_SimulationGrid),my_type,2);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,12)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('gamma2 interp')
caxis([-my_max my_max])
%Covariance - rho2 - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamCovariance_SimulationPoints(1:length(V_X_SimulationGrid),my_type,3);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,13)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('rho2 interp')
caxis([0 my_max])
%Covariance - nu - on SimulationGrid
Mamat=[];
ind=1;
V_Z_SimulationGrid=M_ParamCovariance_SimulationPoints(1:length(V_X_SimulationGrid),my_type,4);
[Mamat]=Transform_SimGrid_VectToMat(V_Z_SimulationGrid,V_convert_simgrid,dimX_simGrid,dimY_simGrid,Xmin_simGrid,Xmax_simGrid,Ymin_simGrid,Ymax_simGrid,step_simulation_grid);
subplot(2,7,14)
Mamat=flipud(Mamat);
imagesc(Mamat)
axis equal tight
colorbar
title('nu - interp')
caxis([0 1.5])
end