summaryrefslogtreecommitdiff
path: root/map2globe.py
diff options
context:
space:
mode:
Diffstat (limited to 'map2globe.py')
-rwxr-xr-xmap2globe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/map2globe.py b/map2globe.py
index 8e58752..7b8ffb0 100755
--- a/map2globe.py
+++ b/map2globe.py
@@ -16,7 +16,8 @@ z="0"
# / 90 * math.pi
#they need to be in the range 0 to 2pi?
-print("globe addshape 1 0 0 0 1 -1 0")
+print("globe addshape 1 0 0 0 0 1 0")
+rotation=0
while(1):
#print (plat,plon,lat,lon)
@@ -42,6 +43,9 @@ while(1):
break
if(lat and lon and x and y and z and plat and plon and px and py and pz): #if the previouses exist
print("globe addshape 3 " + x + " " + y + " " + z + " " + x + " " + y + " " + z + " " + px + " " + py + " " + pz)
+ print("globe rotate 0 " + str(rotation) + " 0")
+ rotation+=1
+ rotation%=360
#set previouses to currents
(plat,plon,px,py,pz)=(lat,lon,x,y,z)