--- Edit on 07-26-2018
combined Mercury,Venus,Earth,Mars into one file
--- new as of 07-26-18
-- google drive " Mars.ssc " ( part of the inner solar system ssc file )
https://drive.google.com/file/d/1vrUtd1 ... sp=sharingThe 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_docMars.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 "de438.bsp"
Target "4"
Origin "4"
Period 1.88
BoundingRadius 1e10
}
SpiceRotation
{
Kernel [ "pck00010.tpc" "naif0012.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" "naif0012.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" "naif0012.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 de438.bsp DOSE NOT have 499
( see the output of " brief -c de438.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.txtso 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=577this is an easy order to copy/ paste the numbers