-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.it
executable file
·36 lines (28 loc) · 1.57 KB
/
make.it
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
#!/bin/bash
echo "making pdfs directories"
mkdir voltage_magnitude_flow
mkdir voltage_magnitude_loss
mkdir admittance_angle_flow
mkdir admittance_angle_loss
# mkdir admittance_magnitude_flow
# mkdir admittance_magnitude_loss
mkdir transformer_angle_flow
mkdir transformer_angle_loss
mkdir transformer_magnitude_flow
mkdir transformer_magnitude_loss
echo "making pdfs"
R CMD BATCH --no-save --no-restore ac_power_examples.r
R CMD BATCH --no-save --no-restore voltage_animations.r
R CMD BATCH --no-save --no-restore admittance_animations.r
R CMD BATCH --no-save --no-restore transformer_animations.r
echo "making gifs"
convert -density 200 -dispose previous voltage_magnitude_flow/*.pdf voltage_magnitude_flow.gif
convert -density 200 -dispose previous voltage_magnitude_loss/*.pdf voltage_magnitude_loss.gif
convert -density 200 -dispose previous admittance_angle_flow/*.pdf admittance_angle_flow.gif
convert -density 200 -dispose previous admittance_angle_loss/*.pdf admittance_angle_loss.gif
# convert -density 200 -dispose previous admittance_magnitude_flow/*.pdf admittance_magnitude_flow.gif
# convert -density 200 -dispose previous admittance_magnitude_loss/*.pdf admittance_magnitude_loss.gif
convert -density 200 -dispose previous transformer_angle_flow/*.pdf transformer_angle_flow.gif
convert -density 200 -dispose previous transformer_angle_loss/*.pdf transformer_angle_loss.gif
convert -density 200 -dispose previous transformer_magnitude_flow/*.pdf transformer_magnitude_flow.gif
convert -density 200 -dispose previous transformer_magnitude_loss/*.pdf transformer_magnitude_loss.gif