unreal.CelestialBody

class unreal.CelestialBody(name: str = '', orbit_type: OrbitType = Ellipsis, raj2000: float = 0.0, decj2000: float = 0.0, ra: float = 0.0, dec: float = 0.0, ra_geocentric: float = 0.0, dec_geocentric: float = 0.0, distance_in_au: float = 0.0, radius: float = 0.0, magnitude: float = 0.0, ue_local_transform: Transform = Ellipsis, direction_toward_earth: Vector = Ellipsis)

Bases: StructBase

Runtime structure to store the properties common to all Celestial Bodies

C++ Source:

  • Plugin: CelestialVault

  • Module: CelestialVault

  • File: CelestialDataTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • dec (double): [Read-Write] The Body Declination of date (topocentric, from observer lat/lon)

  • dec_geocentric (double): [Read-Write] The Body Declination of date (geocentric) - used for 3D scene placement. In Degrees.

  • decj2000 (double): [Read-Write] The Body J2000 Declination (topocentric, from observer lat/lon) - In Degrees

    Note: The “true” catalog J2000 is always geocentric; We decided to express this value in the topocentric variant for validation against JPL Horizons or Stellarium, which use data generated with a surface observer.

  • direction_toward_earth (Vector): [Read-Write] Keep track of the location toward the Earth

  • distance_in_au (double): [Read-Write] The Body distance to Earth - In Astronomical Units!

  • magnitude (double): [Read-Write] The Magnitude of the Body seen from Earth

  • name (str): [Read-Write] The Body Name

  • orbit_type (OrbitType): [Read-Write] One of the predefined Orbit types (Solar system planets), any custom one for fantasy planets

  • ra (double): [Read-Write] The Body Right Ascension of date (topocentric, from observer lat/lon)

  • ra_geocentric (double): [Read-Write] The Body Right Ascension of date (geocentric) - used for 3D scene placement. In hours.

  • radius (double): [Read-Write] The Body Radius in Kilometers

  • raj2000 (double): [Read-Write] The Body J2000 Right Ascension (topocentric, from observer lat/lon) - In hours!

    Note: The “true” catalog J2000 is always geocentric; We decided to express this value in the topocentric variant for validation against JPL Horizons or Stellarium, which use data generated with a surface observer.

  • ue_local_transform (Transform): [Read-Write] Keep track of the Vault-relative transform, at ToD = 0 for animated bodies (Moon)

property dec: float

[Read-Write] The Body Declination of date (topocentric, from observer lat/lon)

Type:

(double)

property dec_geocentric: float

[Read-Write] The Body Declination of date (geocentric) - used for 3D scene placement. In Degrees.

Type:

(double)

property decj2000: float

[Read-Write] The Body J2000 Declination (topocentric, from observer lat/lon) - In Degrees

Note: The “true” catalog J2000 is always geocentric; We decided to express this value in the topocentric variant for validation against JPL Horizons or Stellarium, which use data generated with a surface observer.

Type:

(double)

property direction_toward_earth: Vector

[Read-Write] Keep track of the location toward the Earth

Type:

(Vector)

property distance_in_au: float

[Read-Write] The Body distance to Earth - In Astronomical Units!

Type:

(double)

property magnitude: float

[Read-Write] The Magnitude of the Body seen from Earth

Type:

(double)

property name: str

[Read-Write] The Body Name

Type:

(str)

property orbit_type: OrbitType

[Read-Write] One of the predefined Orbit types (Solar system planets), any custom one for fantasy planets

Type:

(OrbitType)

property ra: float

[Read-Write] The Body Right Ascension of date (topocentric, from observer lat/lon)

Type:

(double)

property ra_geocentric: float

[Read-Write] The Body Right Ascension of date (geocentric) - used for 3D scene placement. In hours.

Type:

(double)

property radius: float

[Read-Write] The Body Radius in Kilometers

Type:

(double)

property raj2000: float

[Read-Write] The Body J2000 Right Ascension (topocentric, from observer lat/lon) - In hours!

Note: The “true” catalog J2000 is always geocentric; We decided to express this value in the topocentric variant for validation against JPL Horizons or Stellarium, which use data generated with a surface observer.

Type:

(double)

property ue_local_transform: Transform

[Read-Write] Keep track of the Vault-relative transform, at ToD = 0 for animated bodies (Moon)

Type:

(Transform)