@@ -17,7 +17,7 @@ def main():
17
17
observer = planets ['earth' ].at (t )
18
18
target = planets ['mars' ]
19
19
r , v , t2 , light_time = cfltt (observer , target )
20
- print (t .shape , observer .position .km .shape , r .shape )
20
+ print (t .shape , observer .xyz .km .shape , r .shape )
21
21
22
22
print ('==== N times, one observer, one target ====' )
23
23
@@ -26,7 +26,7 @@ def main():
26
26
observer = planets ['earth' ].at (t )
27
27
target = planets ['mars' ]
28
28
r , v , t2 , light_time = cfltt (observer , target )
29
- print (t .shape , observer .position .km .shape , '->' , r .shape )
29
+ print (t .shape , observer .xyz .km .shape , '->' , r .shape )
30
30
print ('Here is where the planet wound up:' )
31
31
print (r )
32
32
@@ -45,17 +45,17 @@ def main():
45
45
earth ._at = build_multi_at (earth ._at )
46
46
47
47
observer = earth .at (t )
48
- print ('observer' , observer .position .au .shape )
48
+ print ('observer' , observer .xyz .au .shape )
49
49
50
50
target = planets ['mars' ]
51
51
target ._at = build_multi_at (target ._at ) # Turn Mars into 2 planets.
52
- print ('target' , target .at (t ).position .au .shape )
52
+ print ('target' , target .at (t ).xyz .au .shape )
53
53
54
54
# t = ts.tt(t.tt[:,None]) # What if we add a dimension to t?
55
55
# print('t', t.shape)
56
56
57
57
r , v , t2 , light_time = _correct_for_light_travel_time2 (observer , target )
58
- print (t .shape , observer .position .km .shape , '->' , r .shape )
58
+ print (t .shape , observer .xyz .km .shape , '->' , r .shape )
59
59
60
60
print ('Does it look like a second planet 1 AU away at the same 4 times?' )
61
61
print ('First planet:' )
@@ -74,17 +74,17 @@ def main():
74
74
earth = planets ['earth' ]
75
75
earth ._at = build_multi_at (earth ._at )
76
76
observer = earth .at (t )
77
- print ('observer' , observer .position .au .shape )
77
+ print ('observer' , observer .xyz .au .shape )
78
78
79
79
target = planets ['mars' ]
80
80
target ._at = build_multi_at (target ._at ) # Turn Mars into 2 planets.
81
- print ('target' , target .at (t ).position .au .shape )
81
+ print ('target' , target .at (t ).xyz .au .shape )
82
82
83
83
# t = ts.tt(t.tt[:,None]) # What if we add a dimension to t?
84
84
# print('t', t.shape)
85
85
86
86
r , v , t2 , light_time = _correct_for_light_travel_time3 (observer , target )
87
- print (t .shape , observer .position .km .shape , '->' , r .shape )
87
+ print (t .shape , observer .xyz .km .shape , '->' , r .shape )
88
88
89
89
print ('Does it look like a second planet 1 AU away at the same 4 times?' )
90
90
print ('First planet:' )
@@ -109,15 +109,15 @@ def main():
109
109
110
110
earth = planets ['earth' ]
111
111
observer = earth .at (t )
112
- print ('observer' , observer .position .au .shape )
112
+ print ('observer' , observer .xyz .au .shape )
113
113
print ('Supplementing dimensions' )
114
- observer .position .au = observer .position .au [:,:,None ]
114
+ observer .xyz .au = observer .xyz .au [:,:,None ]
115
115
observer .velocity .au_per_d = observer .velocity .au_per_d [:,:,None ]
116
- print ('observer' , observer .position .au .shape )
116
+ print ('observer' , observer .xyz .au .shape )
117
117
118
118
target = planets ['mars' ]
119
119
target ._at = build_multi_at (target ._at ) # Turn Mars into 2 planets.
120
- print ('target' , target .at (t ).position .au .shape )
120
+ print ('target' , target .at (t ).xyz .au .shape )
121
121
122
122
# TODO: if we work out how we can expand the time's dimensions, as
123
123
# in the following line, before earth.at(t) without raising an
@@ -130,7 +130,7 @@ def main():
130
130
# print('t !!!!!!!!!!!!!!', t.tdb_fraction.shape)
131
131
132
132
r , v , t2 , light_time = _correct_for_light_travel_time4 (observer , target )
133
- print (t .shape , observer .position .au .shape , '->' , r .shape )
133
+ print (t .shape , observer .xyz .au .shape , '->' , r .shape )
134
134
135
135
print ('Does it look like a second planet 1 AU away at the same 4 times?' )
136
136
print ('First planet:' )
@@ -180,7 +180,7 @@ def _correct_for_light_travel_time(observer, target):
180
180
whole = t .whole
181
181
tdb_fraction = t .tdb_fraction
182
182
183
- cposition = observer .position .au
183
+ cposition = observer .xyz .au
184
184
cvelocity = observer .velocity .au_per_d
185
185
186
186
tposition , tvelocity , gcrs_position , message = target ._at (t )
@@ -222,7 +222,7 @@ def _correct_for_light_travel_time2(observer, target):
222
222
whole = t .whole
223
223
tdb_fraction = t .tdb_fraction
224
224
225
- cposition = observer .position .au
225
+ cposition = observer .xyz .au
226
226
cvelocity = observer .velocity .au_per_d
227
227
228
228
tposition , tvelocity , gcrs_position , message = target ._at (t )
@@ -276,7 +276,7 @@ def _correct_for_light_travel_time3(observer, target):
276
276
whole = t .whole
277
277
tdb_fraction = t .tdb_fraction
278
278
279
- cposition = observer .position .au
279
+ cposition = observer .xyz .au
280
280
cvelocity = observer .velocity .au_per_d
281
281
282
282
cposition = cposition .T
@@ -327,7 +327,7 @@ def _correct_for_light_travel_time4(observer, target):
327
327
whole = t .whole
328
328
tdb_fraction = t .tdb_fraction
329
329
330
- cposition = observer .position .au
330
+ cposition = observer .xyz .au
331
331
cvelocity = observer .velocity .au_per_d
332
332
333
333
print ('======' , cposition .shape )
0 commit comments