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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
use *;
use pysolarsystem;
use *;
use crateAstroTime;
use cratejplephem;
use crateSolarSystem;
use crateSKResult;
use nalgebra as na;
/// Return the position and velocity of the given body in Geocentric coordinate system (GCRF)
///
/// Args:
/// body (satkit.solarsystem): Solar system body for which to return position
/// tm (satkit.time|numpy.ndarray|list): Time(s) at which to return position
///
/// Returns:
/// tuple: (r, v) where r is the position in meters and v is the velocity in meters / second. If input is list or numpy array of N times, then r and v will be Nx3 arrays
/// Return the position & velocity the given body in the barycentric coordinate system (origin is solar system barycenter)
///
///
/// Args:
/// body (satkit.solarsystem): Solar system body for which to return position
/// tm (satkit.time|numpy.ndarray|list): Time(s) at which to return position
///
/// Returns:
/// tuple: (r, v) where r is the position in meters and v is the velocity in meters / second. If input is list or numpy array of N times, then r and v will be Nx3 arrays
///
/// Notes:
/// * Positions for all bodies are natively relative to solar system barycenter,
/// with exception of moon, which is computed in Geocentric system
/// * EMB (2) is the Earth-Moon barycenter
/// * The sun position is relative to the solar system barycenter
/// (it will be close to origin)
///
/// Return the position of the given body in the GCRF coordinate system (origin is Earth center)
///
/// Args:
/// body (satkit.solarsystem): Solar system body for which to return position
/// tm (satkit.time|numpy.ndarray|list): Time(s) at which to return position
///
/// Returns:
/// numpy.ndarray: 3-vector of cartesian Geocentric position in meters. If input is list or numpy array of N times, then r will be Nx3 array
/// Return the position of the given body in the Barycentric coordinate system (origin is solarsystem barycenter)
///
/// Args:
/// body (satkit.solarsystem): Solar system body for which to return position
/// tm (satkit.time|numpy.ndarray|list): Time(s) at which to return position
///
/// Returns:
/// numpy.ndarray: 3-vector of cartesian Heliocentric position in meters. If input is list or numpy array of N times, then r will be Nx3 array
///
/// Notes:
/// * Positions for all bodies are natively relative to solar system barycenter,
/// with exception of moon, which is computed in Geocentric system
/// * EMB (2) is the Earth-Moon barycenter
/// * The sun position is relative to the solar system barycenter
/// (it will be close to origin)