-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
32 lines (25 loc) · 771 Bytes
/
Main.py
File metadata and controls
32 lines (25 loc) · 771 Bytes
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
#This is the main
#Created on Oct 10, 2018
#This is the main
import sys
#from scratch import scratch
import SingleOrbit as Single_Orbit
def main():
timeOfPass = 90
NumOfPass = 5
powers = []
#scratch(timeOfPass,NumOfPass) #Info of STK is obtained
TakePhotoTime_Occurances = findOnFile(timeOfPass,NumOfPass)
TakePhotoTime = TakePhotoTime_Occurances[0]
Single_Orbit.SingleOrbitSimulation(TakePhotoTime)
#Finds the places where a photo should be taken
def findOnFile(Time,Num):
occurances = []
fileA = open("random.txt","r")
for i in range(0,Time*Num):
line = fileA.readline()
if (line[0] == "1"):
occurances.append(i+1)
fileA.close()
return occurances
main()