[spice] body orientation

General discussion about Celestia that doesn't fit into other forums.
Topic author
CAP-Team
Posts: 194
Joined: 27.12.2006
Age: 49
With us: 17 years 11 months
Location: Vriezenveen, the Netherlands
Contact:

[spice] body orientation

Post #1by CAP-Team » 01.05.2008, 18:56

I noticed that there's quite a difference in body orientation when using spice kernels for some bodies.

While the location is correct, the body orientation is totally wrong.

Here's the view of Voyager 2 when using kepler elements for Miranda (which is the correct view)

miranda_kepler.jpg


And here's the view when using spice kernels.

miranda_spice.jpg


I've tested the body orientations for other moons of Uranus and Triton as well, but their orientation is also not what it should be ;)

Here's my Miranda data:

Code: Select all

"Miranda" "Sol/Uranus"
{
  Class            "moon"
  Texture          "miranda.*"
  Color            [ 0.45 0.41 0.40 ]
  Radius                 235.8
  Albedo                   0.27

  OrbitFrame { EclipticJ2000 { Center "Sol/Uranus_bary"}}
  BodyFrame { EquatorJ2000 { Center "Sol/Uranus" }}

  Beginning        "1950 01 01 00:00:41.183"
  Ending           "2050 01 02 00:01:05.183"

  SpiceOrbit {
    Kernel         "ura083.bsp"
    Target         "705"
    Origin         "7"
    Period                 1.413
    BoundingRadius      1e10
  }

  UniformRotation {
    Period                33.92350159  # enforce sync rotation
    Inclination            0.0
    MeridianAngle        144.3
  }
}


I've tried changing the bodyframe to Uranus_bary but this doesn't change a bit.
The Uniform rotation is the same as in solarsys.ssc.
Windows 7 Ultimate x64, Intel Core i7 2600K 3.4 Ghz, 4 GB RAM, 120 GB SSD + 1 TB hdd, nVidia GTX460 1 GB, Celestia 1.6.0.xxxx
Download my latest SVN Build

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Re: [spice] body orientation

Post #2by chris » 01.05.2008, 19:47

The problem is that you are setting the BodyFrame of the object to EquatorJ2000. This is not required in order to use the the SPICE kernel for the orbit, and in fact it is not compatible with the UniformRotation from solarsys.ssc (which is defined for the equatorial frame of Uranus.) Simply removing the BodyFrame from the object definition will fix the problem.

Two further notes:

The center of a body frame is irrelevant; only the orientation matters. This fact would be clearer if Celestia allowed you to omit the center specification for a body frame. I plan on adding this in 1.6.0.

You should always be conscious of the reference frame in which an orbit or rotation model is defined. Most of the bodies in solarsys.ssc are defined in the default frame: the equatorial frame of the parent body. However, the new custom rotations being introduced in 1.6.0 must be used with the EquatorJ2000 reference frame. And, with SpiceRotations the choice of SPICE frame determines which Celestia body frame you should use.

--Chris

Topic author
CAP-Team
Posts: 194
Joined: 27.12.2006
Age: 49
With us: 17 years 11 months
Location: Vriezenveen, the Netherlands
Contact:

Re: [spice] body orientation

Post #3by CAP-Team » 01.05.2008, 22:00

Thanks! This helps indeed. I removed all bodyframes for bodies that don't have a customrotation, and now it looks fine again!
Windows 7 Ultimate x64, Intel Core i7 2600K 3.4 Ghz, 4 GB RAM, 120 GB SSD + 1 TB hdd, nVidia GTX460 1 GB, Celestia 1.6.0.xxxx
Download my latest SVN Build


Return to “Celestia Users”