mirror of
https://codeberg.org/Yael-II/Astrobs-Tools.git
synced 2026-03-15 03:16:27 +01:00
Some fresh air
This commit is contained in:
53
Source/ASTROBS_SELECT_v1.py
Normal file
53
Source/ASTROBS_SELECT_v1.py
Normal file
@@ -0,0 +1,53 @@
|
||||
import SCOPE_v2_2
|
||||
import EQUATOR_v1_1
|
||||
|
||||
QUIT = ["QUIT", "EXIT", "Q"]
|
||||
DONE = ["DONE", "OK"]
|
||||
SCOPE = ["SCOPE"]
|
||||
EQUATOR = ["EQUATOR"]
|
||||
|
||||
stop = False
|
||||
first = True
|
||||
|
||||
|
||||
|
||||
while not stop:
|
||||
if first:
|
||||
print("\033[35m"
|
||||
+ "{:^80}".format("=== [ ASTROBS TOOLS ] ===")
|
||||
+"\033[0m")
|
||||
first = False
|
||||
print("\033[32m"
|
||||
+ "Please select a tool:"
|
||||
+ "\033[0m")
|
||||
print("\033[32m"
|
||||
+ "\tSCOPE: "
|
||||
+ "\033[0m"
|
||||
+ "Sky Coordinates for Observations Python Estimator")
|
||||
print("\033[32m"
|
||||
+ "\tEQUATOR: "
|
||||
+ "\033[0m"
|
||||
+ "Equator Queries simbAd to create Tables of Objects")
|
||||
choice = input("\033[32m" + "Choice: " + "\033[0m")
|
||||
|
||||
if choice.upper() in DONE + ["", " "]:
|
||||
None
|
||||
elif choice.upper() in SCOPE:
|
||||
print("\033[35m"
|
||||
+ "{:^80}".format("=== [ SCOPE ] ===")
|
||||
+"\033[0m")
|
||||
first = True
|
||||
SCOPE_v2_2.main()
|
||||
elif choice.upper() in EQUATOR:
|
||||
print("\033[35m"
|
||||
+ "{:^80}".format("=== [ EQUATOR ] ===")
|
||||
+"\033[0m")
|
||||
first = True
|
||||
EQUATOR_v1_1.main()
|
||||
elif choice.upper() in QUIT:
|
||||
stop = True
|
||||
else:
|
||||
print("\033[93m"
|
||||
+ "Warning: {} is not recognized".format(choice)
|
||||
+ "\033[0m")
|
||||
|
||||
Reference in New Issue
Block a user