-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGenerate_plots_new.m
23 lines (23 loc) · 993 Bytes
/
Generate_plots_new.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
load("correct_4D_4_15.mat");
load("area_mask.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_area", output_str)
for day = 1:8
output = strcat("comb_figures_area\", output_str, "\", output_str, "day", num2str(day), ".jpg");
R_day = plot_1_day_area(day, prec, lightning, grid_WWLLN_8days, grid_IMERG_8days, VOSTOK_hour_8days, area_mask);
R_list_day(prec, lightning, day) = R_day;
print("-djpeg", output ,"-r600");
close;
end
output = strcat("comb_figures_area\", output_str, "\", output_str, " combination", ".jpg");
R = plot_8_day_area(prec, lightning, grid_WWLLN_8days, grid_IMERG_8days, VOSTOK_hour_8days, area_mask);
R_list(prec, lightning) = R;
print("-djpeg", output ,"-r600");
close;
end
prec
end