-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_config.m
129 lines (119 loc) · 5.11 KB
/
do_config.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
function s_config = do_config(setup_dir)
%function s_config = do_config(setup_dir)
% s_config = struct(...
% 'batim_contour_scale', batim_contour_scale, ...
% 'coastline_file', coastline_file, ...
% 'save_coastline', save_coastline, ...
% 'coastline_res', coastline_res, ...
% 'coastline_patch_color', coastline_patch_color, ...
% 'plot_color', plot_color, ...
% 'colorlimits', colorlimits, ...
% 'scalecolor', scalecolor, ...
% 'colormap_type', colormap_type, ...
% 'colormap_inv', colormap_inv, ...
% 'shading_type', shading_type, ...
% 'autocolortitle', autocolortitle, ...
% 'colorbartitle', colorbartitle,...
% 'plot_contour', plot_contour, ...
% 'contourlimits', contourlimits, ...
% 'autoscale', autoscale, ...
% 'contour_scale', contour_scale, ...
% 'contour_line_style', contour_line_style, ...
% 'contour_colormap_type', contour_colormap_type, ...
% 'filetype', filetype, ...
% 'matfile', matfile, ...
% 'matdims', matdims, ...
% 'file', file, ...
% 'projection', projection, ...
% 'grid_fontsize', grid_fontsize, ...
% 'title_fontsize', title_fontsize, ...
% 'override_ll', override_ll, ...
% 'lat_lon_override_file', lat_lon_override_file, ...
% 'closematlab', closematlab, ...
% 'change_miss', change_miss, ...
% 'new_miss', new_miss, ...
% 'output_format', output_format, ...
% 'output_extension', output_extension, ...
% 'output_dir', output_dir, ...
% 'output_visible', output_visible, ...
% 'horizontal_scale_x', horizontal_scale_x, ...
% 'horizontal_scale_y', horizontal_scale_y, ...
% 'horizontal_scale_size', horizontal_scale_size, ...
% 'plot_vectors', plot_vectors, ...
% 'u_vec', u_vec, ...
% 'v_vec', v_vec, ...
% 'inc', inc, ...
% 'legpos', legpos, ...
% 'legcol', legcol, ...
% 'legscale', legscale, ...
% 'legkey', legkey, ...
% 'vec_headlength', vec_headlength, ...
% 'vec_headwidth', vec_headwidth, ...
% 'vec_shaftwidth', vec_shaftwidth );
wd = cd;
cd(setup_dir);
disp('Loading user defined config')
%Get default configuration input
config_netcdf;
config_batim;
config_coastline;
config_scale;
config_global;
config_output;
config_color;
config_contour;
config_vectors;
cd(wd);
%Construct the config structure
s_config = struct(...
'batim_contour_scale', batim_contour_scale, ...
'coastline_file', coastline_file, ...
'save_coastline', save_coastline, ...
'coastline_res', coastline_res, ...
'coastline_patch_color', coastline_patch_color, ...
'plot_color', plot_color, ...
'colorlimits', colorlimits, ...
'scalecolor', scalecolor, ...
'colormap_type', colormap_type, ...
'colormap_inv', colormap_inv, ...
'shading_type', shading_type, ...
'autocolortitle', autocolortitle, ...
'colorbartitle', colorbartitle,...
'plot_contour', plot_contour, ...
'contourlimits', contourlimits, ...
'autoscale', autoscale, ...
'contour_scale', contour_scale, ...
'contour_line_style', contour_line_style, ...
'contour_colormap_type', contour_colormap_type, ...
'filetype', filetype, ...
'matfile', matfile, ...
'matdims', matdims, ...
'file', file, ...
'maskit', maskit, ...
'projection', projection, ...
'grid_fontsize', grid_fontsize, ...
'title_fontsize', title_fontsize, ...
'override_ll', override_ll, ...
'lat_lon_override_file', lat_lon_override_file, ...
'closematlab', closematlab, ...
'change_miss', change_miss, ...
'new_miss', new_miss, ...
'output_format', output_format, ...
'output_extension', output_extension, ...
'output_dir', output_dir, ...
'output_visible', output_visible, ...
'output_renderer', output_renderer, ...
'horizontal_scale_x', horizontal_scale_x, ...
'horizontal_scale_y', horizontal_scale_y, ...
'horizontal_scale_size', horizontal_scale_size, ...
'plot_vectors', plot_vectors, ...
'u_vec', u_vec, ...
'v_vec', v_vec, ...
'inc', inc, ...
'legpos', legpos, ...
'legcol', legcol, ...
'legscale', legscale, ...
'legkey', legkey, ...
'vec_headlength', vec_headlength, ...
'vec_headwidth', vec_headwidth, ...
'vec_shaftwidth', vec_shaftwidth );