Skip to content

Commit a6c3547

Browse files
Test modeling functions before release v1.0 (#7)
* Remove specification for Fröhlich et al. in prep for GJI - reference to this publication - cluster highlighting in model parameter plot - phi -90/90 shift at ECH - model sketch highlighting in synthetic stereoplot
1 parent befef41 commit a6c3547

File tree

4 files changed

+2
-93
lines changed

4 files changed

+2
-93
lines changed

003_modeling/SWS_modeling_calc_misfit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
dir_res_simw = dir(datasimw);
364364

365365
% use only good & fair qualities
366-
% no query from function >>> SWS_modelling_read_data <<< appears
366+
% no query from function >>> SWS_modeling_read_data <<< appears
367367
use_QUAL = 2; % adjust if you want other qualities
368368

369369
[RES_split, RES_null, RES_stack, RES_simw_split, RES_simw_null] = ...

003_modeling/SWS_modeling_plot_results.m

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ function SWS_modeling_plot_results( ...
9999
% % -> only stack splits in NE quadrant
100100
% leg_symb_stack_split = 'diamond';
101101

102-
% % Fröhlich et al. 2022 Geophysical Journal International
103-
% % -> single splits and stack splits
104102
leg_symb_stack_split = 'square';
105103

106104
% TickLabel position of RMSE colorbar
@@ -884,7 +882,6 @@ function SWS_modeling_plot_results( ...
884882
h_leg_split.Position = [0.195 0.360 0.065 0.1];
885883
else
886884
% BAZ range to plot 0 deg to 360 deg
887-
% -> Fröhlich et al. 2022 Geophysical Journal International
888885
h_leg_split.Position = [0.695 0.610 0.065 0.1];
889886
end
890887

@@ -992,8 +989,6 @@ function SWS_modeling_plot_results( ...
992989
% axis
993990
xlim([0,length(models_sort)])
994991
ylim([0,max([models_sort.RMSE])])
995-
% % Fröhlich et al. 2022 Geophysical Journal International
996-
% ylim([0, 0.7])
997992
xlabel('worst \leftarrow sorted models \rightarrow best', 'fontsize',fontsize)
998993
ylabel(cb_label_rmse, 'fontsize',fontsize)
999994
set(gca, 'XDir','reverse')
@@ -1114,35 +1109,6 @@ function SWS_modeling_plot_results( ...
11141109
box on, grid on
11151110
hold on
11161111

1117-
%--------------------------------------------------------------------------
1118-
% % plot polyon around cluster
1119-
% % Fröhlich et al. 2022 Geophysical Journal International
1120-
%
1121-
% % TMO44 - paper URG
1122-
% if strcmp(staname_split,"TMO44")==1 && ...
1123-
% strcmp(data_used,"multiWS")==1 &&
1124-
%
1125-
% x_pol_1 = [0.90, 1.25, 1.75, 2.10, 2.10, 1.75, 1.50, 0.90];
1126-
% y_pol_1 = [ 35, 30, 30, 40, 50, 60, 65, 55];
1127-
% pol_1 = polyshape(x_pol_1,y_pol_1);
1128-
%
1129-
% plot(pol_1, 'FaceColor','g', 'EdgeColor','k', 'Facealpha',0.25)
1130-
%
1131-
% disp('TMO07polyon')
1132-
% end
1133-
% % TMO07 - paper URG
1134-
% if strcmp(staname_split,"TMO07")==1 && ...
1135-
% strcmp(data_used,"multiWS")==1 &&
1136-
%
1137-
% x_pol_1 = [0.90, 1.25, 1.50, 1.85, 1.85, 1.50, 1.25, 0.90];
1138-
% y_pol_1 = [ 45, 40, 40, 45, 70, 75, 75, 70];
1139-
% pol_1 = polyshape(x_pol_1,y_pol_1);
1140-
%
1141-
% plot(pol_1, 'FaceColor','g', 'EdgeColor','k', 'Facealpha',0.25)
1142-
%
1143-
% disp('TMO44polyon')
1144-
% end
1145-
11461112
%--------------------------------------------------------------------------
11471113
% RMSE color-coding
11481114
if cmap_rms_ind~=0
@@ -1277,7 +1243,6 @@ function SWS_modeling_plot_results( ...
12771243
%--------------------------------------------------------------------------
12781244
% % plot polyons around clusters
12791245
% % Ritter et al. 2022 Journal of Seismology
1280-
% % Fröhlich et al. 2022 Geophysical Journal International
12811246

12821247
% % BFO
12831248
% if strcmp(staname_split,"BFO")==1 && ...
@@ -1302,60 +1267,12 @@ function SWS_modeling_plot_results( ...
13021267
%
13031268
% disp('BFOpolyons')
13041269
% end
1305-
% % STU
1306-
% if strcmp(staname_split,"STU")==1 && ...
1307-
% modrange_low==0 && ...
1308-
% strcmp(data_used,"multiWS")==1
1309-
%
1310-
% x_pol_1 = [0.10 0.10 0.60 1.00 0.40 0.40];
1311-
% y_pol_1 = [ -90 -60 -30 -30 -60 -90];
1312-
% pol_1 = polyshape(x_pol_1,y_pol_1);
1313-
%
1314-
% x_pol_2 = [0.40 0.10 0.10 0.40 1.70 1.70 2.10 2.10 0.80 0.40 0.40 0.60 0.60];
1315-
% y_pol_2 = [ -25 -10 25 60 60 65 65 50 50 30 -5 -15 -25];
1316-
% pol_2 = polyshape(x_pol_2,y_pol_2);
1317-
%
1318-
% x_pol_3 = [0.50 0.15 0.15 0.40 0.40 0.80 1.70 1.70];
1319-
% y_pol_3 = [ 60 80 90 90 85 70 70 60];
1320-
% pol_3 = polyshape(x_pol_3,y_pol_3);
1321-
%
1322-
% plot(pol_1, 'FaceColor','r', 'EdgeColor','k', 'Facealpha',0.25)
1323-
% plot(pol_2, 'FaceColor','b', 'EdgeColor','k', 'Facealpha',0.25)
1324-
% plot(pol_3, 'FaceColor','r', 'EdgeColor','k', 'Facealpha',0.25)
1325-
%
1326-
% disp('STUpolyons')
1327-
% end
1328-
% % ECH
1329-
% if strcmp(staname_split,"ECH")==1 && ...
1330-
% modrange_low==0 && ...
1331-
% strcmp(data_used,"multiWS")==1
1332-
%
1333-
% x_pol_1 = [0.40 0.40 0.20 0.20 0.60 0.60 1.10 1.10 1.60 1.60 2.05 2.05];
1334-
% y_pol_1 = [ -90 -60 -30 -10 -10 -75 -75 -80 -80 -85 -85 -90];
1335-
% pol_1 = polyshape(x_pol_1,y_pol_1);
1336-
%
1337-
% x_pol_2 = [0.20 0.20 0.40 1.00 1.20 1.80 1.80 1.15 0.80 0.50 0.50 0.80 0.80];
1338-
% y_pol_2 = [ 0 77 85 85 90 90 80 80 75 55 30 15 0] ;
1339-
% pol_2 = polyshape(x_pol_2,y_pol_2);
1340-
%
1341-
% plot(pol_1, 'FaceColor','b', 'EdgeColor','k', 'Facealpha',0.25)
1342-
% plot(pol_2, 'FaceColor','r', 'EdgeColor','k', 'Facealpha',0.25)
1343-
%
1344-
% disp('ECHpolyons')
1345-
% end
13461270

13471271
%--------------------------------------------------------------------------
13481272
% RMSE color-coding
13491273
if cmap_rms_ind~=0
13501274
for ii = plot_mod_max:-1:1
13511275

1352-
% % Fröhlich et al. 2022 Geophysical Journal International
1353-
% if strcmp(staname_split,"ECH") && ...
1354-
% strcmp(data_used,"multiWS") && phi_H2(2,ii)==90
1355-
% phi_H2(2,ii) = -90;
1356-
% disp('switch value')
1357-
% end
1358-
13591276
plot(dt_H2(1,ii),phi_H2(1,ii), 's', ...
13601277
'MarkerSize',mymarkersize_symbols, ...
13611278
'LineWidth',mylinewidth_symbols, ...

003_modeling/SWS_modeling_plot_stereo_synthetic.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ function SWS_modeling_plot_stereo_synthetic( ...
100100
col_dip_cryst = 'b'; % black
101101
col_dip_ray = 'r'; % red
102102

103-
% % Fröhlich et al. 2022 Geophysical Journal International
104-
% col_lay_upp = [102 178 255] ./256; % light blue
105-
% col_lay_low = [255 102 102] ./256; % light red
106-
% col_lay_one = [102 205 0] ./256; % light green
107-
% col_dip_sta = [255 215 0] ./256; % GMT gold
108-
% col_dip_cryst = 'w'; % white
109-
% col_dip_ray = [0.4 0.4 0.4]; % dark gray
110-
111103
% horizontal layers
112104
y_low = -0.2933;
113105
y_upp = -0.3220;

003_modeling/SWS_modeling_read_data.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
% search for quality as input argument and make query
9090

9191
if isempty(varargin)
92-
select_qual = input(['Qualities (of splits and nulls) you to use ' ...
92+
select_qual = input(['Qualities (splits, nulls) you want to use ' ...
9393
'(default all)? \n',...
9494
' [0] all \n',...'
9595
' [1] good \n',...'

0 commit comments

Comments
 (0)