Dawn mission addon

Post requests, images, descriptions and reports about work in progress here.
Topic author
CAP-Team
Posts: 194
Joined: 27.12.2006
Age: 49
With us: 17 years 10 months
Location: Vriezenveen, the Netherlands
Contact:

Re: Dawn mission addon

Post #61by CAP-Team » 24.07.2008, 16:26

BobHegwood wrote:I just know that I'm going to be sorry I asked this, but the add-on does not work on my system (see specs below) and I just thought I'd ask what we need in order to use spice kernels.
In fact, what ARE spice kernels? Can this be explained in terms that the Brain-Dead can understand? When I install your complete revision, I don't even see Dawn listed as being contained in the Solar System.
Thanks, Brain-Dead

Well spice kernels are basically big lookup tables for solar system bodies. They span a specific period and can contain several bodies.
Like xyz files positions are stored with respect to a specific body, like a planet or the sun.

These data files, can be downloaded from NASA, and are available and maintained on the NAIF FTP-site (ftp://naif.jpl.nasa.gov/pub/naif/). By using these kernels you achieve the biggest accuracy possible. In fact, NASA uses these files to plan their missions, so you're working with the same data the NASA scientists work with.

I configured my celestia to use spice kernels for all bodies, like planets and moons (and the sun, which is probably the cause that the addon won't work on your system).

You can use this code for the sun (sol.stc in Celestia\data):

Code: Select all

Barycenter "Solar System Barycenter:SSB" {
  RA                       0
  Dec                      0
  Distance                 0
}

0 "Sol:Sun"
{
  OrbitBarycenter            "Solar System Barycenter"
  CustomOrbit                "vsop87-sun"
  SpectralType               "G2V"
  AbsMag                   4.83
  RotationPeriod         609.12        # 25.38 days
  Obliquity                7.25        # correct orientation relative to ecliptic
  EquatorAscendingNode    75.77
  RotationOffset          23.00        # standard meridian
  Texture                    "sun.*"
}


You don't need a special version of Celestia to use this.
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

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Dawn mission addon

Post #62by BobHegwood » 24.07.2008, 17:15

CAP-Team wrote:Well spice kernels are basically big lookup tables for solar system bodies. They span a specific period and can contain several bodies.
Like xyz files positions are stored with respect to a specific body, like a planet or the sun.

These data files, can be downloaded from NASA, and are available and maintained on the NAIF website. By using these kernels you achieve the biggest possible accuracy possible.

I configured my celestia to use spice kernels for all bodies, like planets and moons (and the sun, which is probably the cause that the addon won't work on your system).
Very much appreciate the explanation here CAP-Team. :wink:
In my case though, I really do not wish to spend all my time downloading specialized BSP files so that I can see the accuracy you describe.
I'd simply rather use my Celestia program to explore the universe. Also, there are a number of other considerations if I understand all of this correctly.
As you made reference to, you also have to have any dependent files installed and configured prior to viewing a specific add-on. Sorry, but this is all just too much for me.
I am, after all, Brain-Dead Bob. :roll:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

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

Re: Dawn mission addon

Post #63by chris » 24.07.2008, 17:26

Adirondack wrote:SPICE kernels (.bsp files) should work with the basic installation of Celestia 1.5.1 (WIN32).
So I would assume that Bob don't need a special version of Celestia.

Correct: the Celestia 1.5.1 for Windows does have SPICE support built in. But I think that the 1.5.1 for Mac OS X was built without SPICE support. We should correct this in the future. I have no problems enabling SPICE support on the Mac for either Intel or PPC, but I haven't yet figured out to build a universal binary with SPICE. DW probably knows what to do here.

--Chris

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Dawn mission addon

Post #64by ElChristou » 24.07.2008, 17:41

chris wrote:...I have no problems enabling SPICE support on the Mac for either Intel or PPC, but I haven't yet figured out to build a universal binary with SPICE. DW probably knows what to do here.

But is this really interesting for the lambda user (majority I suppose) who will never dig the Spice topic? (I mean is there an impact on the size of the package and on the performance for a classical usage of Celestia?)
Image

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

Re: Dawn mission addon

Post #65by chris » 24.07.2008, 17:53

ElChristou wrote:
chris wrote:...I have no problems enabling SPICE support on the Mac for either Intel or PPC, but I haven't yet figured out to build a universal binary with SPICE. DW probably knows what to do here.

But is this really interesting for the lambda user (majority I suppose) who will never dig the Spice topic? (I mean is there an impact on the size of the package and on the performance for "normal" usage of Celestia?)

SPICE support does increase the size of the package, but has no impact on performance. It is quite an important feature for users that are interested high accuracy spacecraft trajectories. I don't want to force these users to build Celestia themselves. Also, you can use add-ons with SPICE kernels even if you don't know a thing about SPICE, so it's not just experts who benefit.

The one problem we have is that the built-in orbits for the planets and moons of the solar system aren't quite accurate enough to reproduce close spacecraft fly-bys. So people like CAP-Team have downloaded and installed SPICE kernels to use for orbits of the planets and moons. It might be a good idea to create a standard 'Accurate Solar System' add-on that people could use with SPICE spacecraft add-ons.

--Chris

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Dawn mission addon

Post #66by BobHegwood » 24.07.2008, 17:59

chris wrote:The one problem we have is that the built-in orbits for the planets and moons of the solar system aren't quite accurate enough to reproduce close spacecraft fly-bys. So people like CAP-Team have downloaded and installed SPICE kernels to use for orbits of the planets and moons. It might be a good idea to create a standard 'Accurate Solar System' add-on that people could use with SPICE spacecraft add-ons.
Now this kind of add-on I would be interested in. As I mentioned before, the accuracy of any orbital body is of obvious importance. It's just that - in the case of the Dawn add-on - I just did not think that the levels of complexity which needed to be added were worth the end result.
If a standard way of adding the required preliminary data were made available, I would be very much interested in using this. :wink:
Thanks, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Dawn mission addon

Post #67by ElChristou » 24.07.2008, 18:04

chris wrote:SPICE support does increase the size of the package, but has no impact on performance. It is quite an important feature for users that are interested high accuracy spacecraft trajectories. I don't want to force these users to build Celestia themselves. Also, you can use add-ons with SPICE kernels even if you don't know a thing about SPICE, so it's not just experts who benefit.

Is the difference significant?

chris wrote:...The one problem we have is that the built-in orbits for the planets and moons of the solar system aren't quite accurate enough to reproduce close spacecraft fly-bys. So people like CAP-Team have downloaded and installed SPICE kernels to use for orbits of the planets and moons. It might be a good idea to create a standard 'Accurate Solar System' add-on that people could use with SPICE spacecraft add-ons...

Yes I fully agree with Bob, this is a VERY good idea. I would also add that a repository of Spice based addons would also be really welcome... (or at best a "SPICE" tag well visible @ ML would be nice, or a special page...)
Image

RVS
Posts: 64
Joined: 02.11.2006
With us: 18 years
Location: Russia

Re: Dawn mission addon

Post #68by RVS » 25.07.2008, 18:03

Let me note that the line 'Orientation [ 90 0 0 1 ]' of ElChristou's ssc file somehow disappeared from the ssc file currently on the ML, so the model is tracking the Sun by solar arrays' edges… :wink:

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Dawn mission addon

Post #69by BobHegwood » 25.07.2008, 18:16

RVS wrote:Let me note that the line 'Orientation [ 90 0 0 1 ]' of ElChristou's ssc file somehow disappeared from the ssc file currently on the ML, so the model is tracking the Sun by solar arrays' edges… :wink:
You are quite correct here. It simply must have been my fault as I prepared the package. I'll revise it shortly...
Thanks for the "Heads Up." :wink:

EDIT: I have uploaded the revised package, and Ulrich has posted it.

Sorry, Brain-Dead Bob :roll:
Last edited by BobHegwood on 25.07.2008, 23:53, edited 2 times in total.
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Re: Dawn mission addon

Post #70by symaski62 » 25.07.2008, 22:12

pck00008.TPC

Code: Select all

Sun
 
     Old values:
 
        Values are unchanged in the 2000 IAU report.
 
     Current values:
 
        \begindata
 
        BODY10_POLE_RA         = (  286.13       0.          0. )
        BODY10_POLE_DEC        = (   63.87       0.          0. )
        BODY10_PM              = (   84.10      14.18440     0. )
        BODY10_LONG_AXIS       = (    0.                        )

        \begintext


Code: Select all

Sun
 
     Value for the Sun is from the [7], page K7.
 
        \begindata
 
        BODY10_RADII      = (   696000.     696000.      696000.     )
 
        \begintext



:?:

Code: Select all

    SpiceRotation
    {
        Kernel              "pck00008.TPC"
        Frame               "IAU_SUN"
        BaseFrame           "eclipj2000"
        Period    609.12        # 25.38 days
    }


:mrgreen:
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

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

Re: Dawn mission addon

Post #71by CAP-Team » 15.02.2009, 17:49

When I first created this addon, I tested the Mars flyby, which occurred quite nicely.
Funny thing is that it happens on 11 februari while the real flyby occurs on 17/18 february.

I tested this with the xyz orbit elements as with the official latest spice kernels, and in both cases the flyby is on 11 february.
Can anyone else confirm this?
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

TerraNova
Posts: 1
Joined: 11.01.2009
With us: 15 years 10 months

Re: Dawn mission addon

Post #72by TerraNova » 16.02.2009, 17:11

CAP-Team wrote:When I first created this addon, I tested the Mars flyby, which occurred quite nicely.
Funny thing is that it happens on 11 februari while the real flyby occurs on 17/18 february.

I tested this with the xyz orbit elements as with the official latest spice kernels, and in both cases the flyby is on 11 february.
Can anyone else confirm this?

Yea; I have Dawn flying by Mars on the 11th of February also, placing it more than 1,000,000 km away on the 16th when the flyby should be about to occur. According to the trajectory on the NASA site, at the time of this post Dawn is ~303,000 km away and approaching. The addon has the flyby occuring too early... :?

http://neo.jpl.nasa.gov/orbits/fulltraj.jpg
http://neo.jpl.nasa.gov/orbits/fullview2.jpg

volcanopele
Posts: 103
Joined: 05.02.2007
With us: 17 years 9 months

Re: Dawn mission addon

Post #73by volcanopele » 16.02.2009, 22:06

Using the latest SPICE kernel files, I get a close approach distance of 543.81 km on February 18, 2009 at 00:27:28 UTC.

This is with spice kernels for Mars AND Dawn.
Hands off: C55AFB738D58F4B81D3A4722551D25E1
The Gish Bar Times - A Blog all about Jupiter's Moon Io

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

Re: Dawn mission addon

Post #74by CAP-Team » 16.02.2009, 22:45

I saw your posting on unmannedspaceflight.com :lol:
What kernel file do you use for dawn? I use
dawn_ref_081031-090601_090213_dc024p1_v1.bsp
for Dawn and for Mars I use spice kernels too.
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

volcanopele
Posts: 103
Joined: 05.02.2007
With us: 17 years 9 months

Re: Dawn mission addon

Post #75by volcanopele » 16.02.2009, 23:13

I adapted the Dawn add-on in the Motherlode for that:

Code: Select all

"Dawn" "Sol"
{
   Class            "spacecraft"
   Mesh               "dawn.3ds"
   Radius            0.012
   Orientation         [ 90 0 0 1 ]
   Timeline
   [
      #Before SPICE
      {
         SampledOrbit "dawn.xyz"

         Beginning "2007 09 27 12:41:00"
         Ending "2008 11 01 00:00:00"
      }
      
      
      # Mars Flyby
      {
         OrbitFrame { EclipticJ2000 { Center "SSB"}}
   
         Ending    "2009 06 01 00:00"

         SpiceOrbit
         {
            Kernel
            [
               "dawn_ref_081031-090601_090213_dc024p1_v1.bsp"
               "de421.bsp"
            ]
                     Target "-203"
                      Origin "0"
            BoundingRadius 1e10
            Beginning "2008 11 01 00:00"
            Ending    "2009 06 01 00:00"
         }
      }
      
      #After Mars flyby
      {
         SampledOrbit "dawn.xyz"

         Ending "2015 02 01 00:00:00"
      }
   ]
}


For some reason, adding other timeline segments for other spice kernels covering other times seems to break it and I get the February 11 flyby again.
Hands off: C55AFB738D58F4B81D3A4722551D25E1
The Gish Bar Times - A Blog all about Jupiter's Moon Io

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Dawn mission addon

Post #76by selden » 17.02.2009, 12:34

For some reason, adding other timeline segments for other spice kernels covering other times seems to break it and I get the February 11 flyby again.

This implies errors in the Spice specifications so that it's reverting to using the xyz file.
Have you looked at the console log (~) to see if there are any error messages?
Selden

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

Re: Dawn mission addon

Post #77by CAP-Team » 17.02.2009, 18:17

I'm not at my celestia pc right now, but I'm gonna try later using just that one kernel.
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 9 months
Location: Seattle, Washington, USA

Re: Dawn mission addon

Post #78by chris » 17.02.2009, 20:39

selden wrote:
For some reason, adding other timeline segments for other spice kernels covering other times seems to break it and I get the February 11 flyby again.

This implies errors in the Spice specifications so that it's reverting to using the xyz file.
Have you looked at the console log (~) to see if there are any error messages?

I think that Selden's diagnosis is correct. Are there any SPICE errors appearing in the console log? (open it by pressing ~)

--Chris

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

Re: Dawn mission addon

Post #79by CAP-Team » 17.02.2009, 22:53

I viewed the log with ~ and it said nothing about spice.
Then I started celestia with: celestia.exe >log.txt
And still no errors concerning spice.

I tried using just that one spice kernel that VolcanoPele mentioned, and then the flyby occurs on 18 february. So somehow there's something wrong here when stitching multiple kernels together with a timeline.
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 9 months
Location: Seattle, Washington, USA

Re: Dawn mission addon

Post #80by chris » 17.02.2009, 23:07

CAP-Team wrote:I viewed the log with ~ and it said nothing about spice.
Then I started celestia with: celestia.exe >log.txt
And still no errors concerning spice.

I tried using just that one spice kernel that VolcanoPele mentioned, and then the flyby occurs on 18 february. So somehow there's something wrong here when stitching multiple kernels together with a timeline.

I'd like to look into this problem. Can you post your ssc definition for Dawn that uses multiple kernels?

--Chris


Return to “Add-on development”