-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain_script.py
More file actions
20 lines (19 loc) · 768 Bytes
/
main_script.py
File metadata and controls
20 lines (19 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import numpy as np
import matplotlib.pyplot as plt
import sys
import scipy.spatial as sp
import shapely.geometry as sg
from shapely.geometry.polygon import Polygon
from matplotlib import colors as mcolors
import Voronoi_boundaries as vb
import main_plot as mplot
if __name__ == '__main__':
if len(sys.argv) < 4:
print("Use: ", sys.argv[0], "[file name] [state shape file name] [output file name]")
exit(-1)
C_3D, A, assign_pairs, bbox = vb.Parse(sys.argv[1])
power_cells = vb.power_cells_fromfile(sys.argv[1])
mplot.plot_helperVoronoi(C_3D, A, assign_pairs, bbox,
sys.argv[3]+"voronoi")
mplot.plot_helperGNUplot(C_3D, A, power_cells, bbox, sys.argv[2],
sys.argv[3], False)