-
Notifications
You must be signed in to change notification settings - Fork 0
/
Generate_plots.m
22 lines (22 loc) · 925 Bytes
/
Generate_plots.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
load("corrected_8day_4D.mat");
R_list = zeros(100, 10);
R_list_day = zeros(100, 10, 8);
for prec = 1:100
for lightning = 1:10
output_str = strcat("prec",num2str(prec),"lightning",num2str(lightning));
mkdir("comb_figures", output_str)
for day = 1:8
output = strcat("comb_figures\", output_str, "\", output_str, "day", num2str(day), ".jpg");
R_day = plot_1_day(day, prec, lightning, grid_WWLLN_8days, grid_IMERG_8days, VOSTOK_hour_8days);
R_list_day(prec, lightning, day) = R_day;
print("-djpeg", output ,"-r600");
close;
end
output = strcat("comb_figures\", output_str, "\", output_str, " combination", ".jpg");
R = plot_8_day(prec, lightning, grid_WWLLN_8days, grid_IMERG_8days, VOSTOK_hour_8days);
R_list(prec, lightning) = R;
print("-djpeg", output ,"-r600");
close;
end
prec
end