grss.libgrss.Body#
- class grss.libgrss.Body#
- Bases: - pybind11_object- The Body class contains the properties of an integrated or SPICE body. - __init__(self: grss.libgrss.Body) None#
 - Methods - __init__(self)- set_J2(self, J2, poleRA, poleDec)- Set the J2 parameter of the body. - set_harmonics(self, poleRA, poleDec, nZon, ...)- Set the J2 parameter of the body. - Attributes - Sectoral coefficients of the spherical harmonics. - Zonal coefficients of the spherical harmonics. - J2 parameter of the body. - Tesseral coefficients of the spherical harmonics. - Distance tolerance for close approaches. - Whether the body has spherical harmonics. - Whether the body is a J2 body. - Whether the body is a major body (used for EIH PPN). - Whether the body has non-gravitational accelerations. - Whether the body is a PPN body. - Mass of the body. - Order of the spherical harmonics. - Degree of the spherical harmonics. - Name of the body. - Declination of the pole of the body. - Right ascension of the pole of the body. - Radius of the body. - Initial MJD TDB time of the body. - property C#
- Sectoral coefficients of the spherical harmonics. 
 - property J#
- Zonal coefficients of the spherical harmonics. 
 - property J2#
- J2 parameter of the body. 
 - property S#
- Tesseral coefficients of the spherical harmonics. 
 - property caTol#
- Distance tolerance for close approaches. 
 - property isHarmonic#
- Whether the body has spherical harmonics. 
 - property isJ2#
- Whether the body is a J2 body. 
 - property isMajor#
- Whether the body is a major body (used for EIH PPN). 
 - property isNongrav#
- Whether the body has non-gravitational accelerations. 
 - property isPPN#
- Whether the body is a PPN body. 
 - property mass#
- Mass of the body. 
 - property nTes#
- Order of the spherical harmonics. 
 - property nZon#
- Degree of the spherical harmonics. 
 - property name#
- Name of the body. 
 - property poleDec#
- Declination of the pole of the body. 
 - property poleRA#
- Right ascension of the pole of the body. 
 - property radius#
- Radius of the body. 
 - set_J2(self: grss.libgrss.Body, J2: SupportsFloat, poleRA: SupportsFloat, poleDec: SupportsFloat) None#
- Set the J2 parameter of the body. - Parameters:
- J2 (real) – J2 parameter of the body. 
- poleRA (real) – Right ascension of the pole of the body in degrees. 
- poleDec (real) – Declination of the pole of the body in degrees. 
 
- Returns:
- None – None. 
- Return type:
- NoneType 
 
 - set_harmonics(self: grss.libgrss.Body, poleRA: SupportsFloat, poleDec: SupportsFloat, nZon: SupportsInt, nTes: SupportsInt, J: collections.abc.Sequence[SupportsFloat], C: collections.abc.Sequence[collections.abc.Sequence[SupportsFloat]], S: collections.abc.Sequence[collections.abc.Sequence[SupportsFloat]]) None#
- Set the J2 parameter of the body. - Parameters:
- poleRA (real) – Right ascension of the pole of the body in degrees. 
- poleDec (real) – Declination of the pole of the body in degrees. 
- nZon (int) – Degree of the spherical harmonics. 
- nTes (int) – Order of the spherical harmonics. 
- J (list of real) – Zonal coefficients of the spherical harmonics. 
- C (list of list of real) – Sectoral coefficients of the spherical harmonics. 
- S (list of list of real) – Tesseral coefficients of the spherical harmonics. 
 
- Returns:
- None – None. 
- Return type:
- NoneType 
 
 - property t0#
- Initial MJD TDB time of the body. Same as the initial time of the propagator.