Removed now unnecessary test code
This commit is contained in:
parent
8ee4f9d2a0
commit
9fde97371c
35
qsomap.py
35
qsomap.py
|
@ -447,41 +447,6 @@ def render(ref_lat, ref_lon, output_stream):
|
|||
|
||||
R = 500
|
||||
|
||||
"""
|
||||
# Override data with test coordinate system
|
||||
coords = []
|
||||
|
||||
N = 128
|
||||
|
||||
# constant-latitude circles
|
||||
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
|
||||
np.ones(N) * np.pi/4]))
|
||||
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
|
||||
np.ones(N) * 0]))
|
||||
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
|
||||
np.ones(N) * -np.pi/4]))
|
||||
|
||||
# constant-longitude half-circles
|
||||
coords.append(np.array([np.ones(N) * -4*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * -3*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * -2*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * -1*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * 0*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * 1*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * 2*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
coords.append(np.array([np.ones(N) * 3*np.pi/4,
|
||||
np.linspace(-np.pi/2, np.pi/2, N)]))
|
||||
|
||||
simplegeodata = {"XY": {'name': 'test', 'coordinates': coords}}
|
||||
"""
|
||||
|
||||
map_all_polygons(simplegeodata, ref_lat, ref_lon, R)
|
||||
assign_country_colors(simplegeodata)
|
||||
|
||||
|
|
Loading…
Reference in a new issue