-
Notifications
You must be signed in to change notification settings - Fork 0
/
C1973 E1 Kohoutek.py
39 lines (37 loc) · 1.12 KB
/
C1973 E1 Kohoutek.py
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
33
34
35
36
37
38
39
# show comet C/1973 E1 Kohoutek
#
# source: https://github.com/isenberg/cosmographia_comets
#
# start Cosmographia from the directory where the comet file is stored
# then select in the menu File -> Run Script and load the comet script with ending .py
#
# Cosmographia script documentation: https://cosmoguide.org
import os
import cosmoscripting
cosmo = cosmoscripting.Cosmo()
comet="C/1973 E1 Kohoutek"
cometfile=os.path.join(cosmo.scriptDir(), "C1973 E1 Kohoutek.json")
cosmo.displayNote( "Viewing comet " + comet, 3)
cosmo.loadCatalogFile(cometfile)
cosmo.setTimeRate(1)
cosmo.setTime("1973-12-20 01:00:00 UTC")
cosmo.setFov(90, 1)
cosmo.gotoHome(1)
cosmo.gotoObject("Earth", 3)
cosmo.moveTowardsCenter(12600, 3)
cosmo.pointAtObject(comet)
cosmo.rollLeft(80, 3)
#cosmo.rollToBodyFixedVector("Earth", "[0.0,1.0,0.0]", 3)
cosmo.trackObject(comet)
#cosmo.hideObject("Earth")
cosmo.showTrajectory(comet)
cosmo.showVelocityVector(comet)
cosmo.showDirectionVector(comet, "Sun")
cosmo.showDirectionVector(comet, "Earth")
cosmo.setTimeRate(10000)
cosmo.wait(10)
cosmo.setFov(6, 3)
cosmo.wait(90)
cosmo.setFov(90, 3)
cosmo.wait(10)
cosmo.setTimeRate(1)