mirror of
https://codeberg.org/Yael-II/Astrobs-Tools.git
synced 2026-03-15 03:16:27 +01:00
54 lines
1.3 KiB
Python
54 lines
1.3 KiB
Python
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")
|
|
|