It is currently Sun, 17-12-17, 21:29 GMT

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: #5) Mars
PostPosted: Tue, 03-01-17, 1:17 GMT 
Offline
User avatar

Joined: Tue, 04-09-07, 21:55 GMT
Posts: 775
Location: N 42.38846 W 83.45456
--- Edit on 1-2-17
combined Mercury,Venus,Earth,Mars into one file


-- google drive " Mars.ssc "
https://drive.google.com/file/d/0B6ZYAd ... sp=sharing

MD5 b90dd5d94b55e7f57a129f6b1f309450
SHA1 d44d71ce5beb17bf92464a702eeee1f22f09b6ec
SHA256 f1b551574b889441c0fee398a51a3ced4b7176bd44627be2f2eb694f65e75f15




The Earth had one moon that the defaults work fairly well for
but Mars has two that are not in such an easy orbit as "The Moon"


A new kernel is needed for Mars's moons
"mar097.bsp"
ftp://naif.jpl.nasa.gov/pub/naif/generi ... atellites/


this is where things get a bit complicated the before and after spice orbits for the moons
-- this applies to all the other moons in the solar system as well
--- ALL OF THEM ! ----

this is where JPL Horizons web site comes in
http://ssd.jpl.nasa.gov/?horizons

-- warning --
Telnet dose NOT support encryption and is VERY INSECURE !!
but for this it works

You might need to enable telnet and open a port or install it .
Telnet might not be installed on new linux OS's
MS windows should still have this tool
Code:
telnet horizons.jpl.nasa.gov 6775


but for this the web browser interface works just fine
http://ssd.jpl.nasa.gov/horizons.cgi
( see the post on using this site )
And/or read the documentation
http://ssd.jpl.nasa.gov/?horizons_doc

Mars.ssc
the below code is out of date and just an example
Code:
   
 Replace "Mars" "Sol"
   {
     Texture "Mars.ctx"      # use the map you want to
     NormalMap "MarsNormal.ctx"      # use the map you want to 
     #Color   [ 0.6 0.6 0.6 ]
     HazeColor [ 0.55 0.35 0.25 ]
     HazeDensity 0.25
     SpecularColor [ 0.2 0.19 0.19 ]
     SpecularPower 2.0
     Radius 3396 # equatorial
     Oblateness 0.0069
     
     Atmosphere {
       Height 30
       Lower [ 0.7 0.5 0.5 ]
       Upper [ 0.6 0.2 0.2 ]
       Sky [ 0.73 0.65 0.55 ]
       Sunset [ 0.6 0.6 0.7 ]
       # Slightly bluish sunset, as seen in true color pictures
       # from Pathfinder
       
       Mie 0.00015
       MieAsymmetry -0.25
       Rayleigh [ 0.00015 0.00011 0.00010 ]
       Absorption [ 0.000055 0.00030 0.00025 ]
       MieScaleHeight 30
     }
     
     Timeline
     [
     # Before Spice
     {
       CustomOrbit "vsop87-mars"
       Ending   "1550 02 27 00:00:00.000"  # add 2 month for orbit drawing
       BodyFrame { EquatorJ2000 { Center "Sol"} }
       CustomRotation "iau-mars"
     }
     # spice
     {
       OrbitFrame { EclipticJ2000  { Center "Sol/Mars_bary" }}
       BodyFrame  { EclipticJ2000 { Center "Sol"           }}
       Ending     "2649 11 25 00:00:00.000"  # less 2 month for orbit
       SpiceOrbit
       {
         Kernel "de430.bsp"
         Target "4"
         Origin "4"
         Period  1.88
         BoundingRadius 1e10
       }
       
       SpiceRotation
       {
         Kernel    [ "pck00010.tpc" "naif0011.tls" ]
         Frame       "IAU_MARS"       
       }
     }
     # After Spice
     {     
       CustomOrbit "vsop87-mars"
       BodyFrame { EquatorJ2000 { Center "Sol"} }
       CustomRotation "iau-mars"
     }
    ]
   }
   
 Replace "Phobos" "Sol/Mars"
   {     
     Mesh "Phobos.cmod"      # this is my cmod - use the one you like best
     Texture "2kPhobosMap.png"  # the same for the texture .
     Radius 13.0 # maximum semi-axis
     
     Timeline
     [
     # Before
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars" }}
       BodyFrame  { EquatorJ2000  {Center "Sol/Mars"  }}
       Ending    "1900 02 04 00:00:41.184 " # add 1 month for drawing orbit
       
       EllipticalOrbit
       {
         Epoch        2415054.500000000              # 1900 02 04
         Eccentricity       1.518802400727606E-02    # well Ecc.
         AscendingNode      8.267052630230310E+01    # Deg.
         SemiMajorAxis      9.377996595568880E+03    # Km.
         ArgOfPericenter    3.043077586819960E+02    # Deg.
         MeanAnomaly        5.332310656837983E+01    # Deg.
         Inclination        2.565060806629375E+01    # Deg.
         Period             3.191283906993064E-01    # days
       }
       
        CustomRotation  "iau-phobos"
         
     }
     # spice
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars_bary" }}
       BodyFrame  { EclipticJ2000  { Center "Sol/Mars"      }}
       Ending    "2099 12 01 00:01:07.183"  # minus 1 month for drawing orbit
       SpiceOrbit
       {
         Kernel "mar097.bsp"
         Target "401"
         Origin "4"   
         Period  0.32
         BoundingRadius 1e10
       }
       
       SpiceRotation
       {
         Kernel            [ "pck00010.tpc"   "naif0011.tls" ]
         Frame               "IAU_PHOBOS"
       }
     }
     # After Spice
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars" }}
       BodyFrame  { EquatorJ2000  { Center "Sol/Mars" }}
       
       EllipticalOrbit
       {
         Epoch        2488038.500000000              # 2099 12 01
         Eccentricity       1.483145872129236E-02    # well Ecc.
         AscendingNode      8.481820919888818E+01    # Deg.
         SemiMajorAxis      9.378104214658177E+03    # Km.
         ArgOfPericenter    2.643240481919602E+01    # Deg.
         MeanAnomaly        1.350188208358036E+02    # Deg.
         Inclination        2.718705574276600E+01    # Deg.
         Period             3.191338840482787E-01    # days
       }
       
       # CustomRotation "iau-phobos"
     }
         ]
         
         Albedo         0.08
         
   }
   
  Replace "Deimos" "Sol/Mars"
   {
     Mesh "Deimos.cmod"     # this is my cmod - use the one you like best
     Texture "2kDeimos.png"   # the same for the texture .
     Radius 7.9
     Timeline
     [
     # Before
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars" }}
       BodyFrame  { EquatorJ2000  { Center "Sol/Mars" }}
       Ending    "1900 02 04 00:00:41.184 " # add 1 month for drawing orbit
       
       EllipticalOrbit
       {
         Epoch        2415054.500000000              # 1900 02 04
         Eccentricity       2.727221939061092E-04    # well Ecc.
         AscendingNode      8.014712522595053E+01    # Deg.
         SemiMajorAxis      2.345843133762753E+04    # Km.
         ArgOfPericenter    2.794630125575130E+02    # Deg.
         MeanAnomaly        4.109833170706100E+01    # Deg.
         Inclination        2.706516195488203E+01    # Deg.
         Period             1.262550557566290E+00    #  days
       }
       
       
       CustomRotation "iau-deimos"
     }
     # spice
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars_bary" }}
       BodyFrame  { EclipticJ2000  { Center "Sol/Mars"      }}
       Ending    "2099 12 01 00:01:07.183"  # minus 1 month for drawing orbit
       SpiceOrbit
       {
         Kernel "mar097.bsp"
         Target "402"
         Origin "4"   
         Period   1.2624408
         BoundingRadius 1e10
       }
       
       
       #CustomRotation "iau-deimos"
       SpiceRotation
       {
         Kernel           [ "pck00010.tpc"   "naif0011.tls" ]
         Frame               "IAU_DEIMOS"
       }
     }
     # After Spice
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Mars" }}
       BodyFrame  { EquatorJ2000  { Center "Sol/Mars" }}
       
       EllipticalOrbit
       {
         Epoch        2488038.500000000              # 2099 12 01
         Eccentricity       2.636999497781226E-04    # well Ecc.
         AscendingNode      8.643314121870986E+01    # Deg.
         SemiMajorAxis      2.345856863586203E+04    # Km.
         ArgOfPericenter    1.469351423033623E+02    # Deg.
         MeanAnomaly        1.026800017839986E+02    # Deg.
         Inclination        2.641083360077538E+01    # Deg.
         Period             1.262561641825100E+00    # days
       }     
       CustomRotation "iau-deimos"
     }
    ]       
         Albedo   0.08
   }
   
   
   



Mars is almost like the first 3 planets , but the difference is the orbits for the two moons and the barycenter

the de430.bsp DOSE NOT have 499
( see the output of " brief -c de430.bsp " )
the reason is that the difference is only 20 Centimeters, yes only than small
you can read about this in the notes on this kernel
ftp://naif.jpl.nasa.gov/pub/naif/generi ... t_SPKs.txt
so the kernel ONLY has "4"

the built in orbits DO NOT match well at all
so they need to be defined
for example the Before SPICE orbit for Phobos
Code:
    EllipticalOrbit
       {
         Epoch        2415054.500000000              # 1900 02 04
         Eccentricity       1.518802400727606E-02    # well Ecc.
         AscendingNode      8.267052630230310E+01    # Deg.
         SemiMajorAxis      9.377996595568880E+03    # Km.
         ArgOfPericenter    3.043077586819960E+02    # Deg.
         MeanAnomaly        5.332310656837983E+01    # Deg.
         Inclination        2.565060806629375E+01    # Deg.
         Period             3.191283906993064E-01    # days
       }


this is for ONE ( 1 ) month AFTER the spice data time frame begins
this is for drawing the orbit and NOT having a big gap
-- try it out
use the time that the spice data really starts ( and the orbit data for that time ) and run celestia

there is a reason for the order
-------------
Epoch
Eccentricity
AscendingNode
SemiMajorAxis
ArgOfPericenter
MeanAnomaly
Inclination
Period
-------------

this will become clear in the horizons forum post
viewtopic.php?f=18&t=577
this is an easy order to copy/ paste the numbers


Last bumped by John Van Vliet on Tue, 03-01-17, 1:17 GMT.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group