http://forum.celestialmatters.org/

#4) Earth
http://forum.celestialmatters.org/viewtopic.php?f=18&t=574
Page 1 of 1

Author:  John Van Vliet [ Tue, 03-01-17, 1:16 GMT ]
Post subject:  #4) Earth

--- Edit on 1-2-17
combined Mercury,Venus,Earth,Mars into one file


-- Google drive "Earth.ssc" ( inner solar system )
https://drive.google.com/file/d/0B6ZYAd ... sp=sharing

MD5 b90dd5d94b55e7f57a129f6b1f309450
SHA1 d44d71ce5beb17bf92464a702eeee1f22f09b6ec
SHA256 f1b551574b889441c0fee398a51a3ced4b7176bd44627be2f2eb694f65e75f15


Finally a moon in the picture
Use what ever maps you want , the ones listed here are mine .

the below code is out of date and just an example
Code:
 
   Replace "Earth" "Sol"
   {
     Texture "Earth.ctx"
     NightTexture "EarthNight.ctx"
     NormalMap "EarthNormal.ctx"
     SpecularTexture "EarthSpec.png"
     SpecularColor [ 0.2 0.2 0.25 ]
     SpecularPower 18.0
     Oblateness 0.0034
     Radius 6378.140

     Atmosphere {
       Height 60
       Lower [ 0.43 0.52 0.65 ]
       Upper [ 0.26 0.47 0.84 ]
       Sky [ 0.20 0.4 0.8 ]
       Sunset [ 1.0 0.6 0.2 ]

       CloudHeight 20
       CloudSpeed 0
       CloudMap "EarthClouds.ctx"
       #CloudShadowDepth 15.0
       Mie 0.001
       MieAsymmetry -0.25
       Rayleigh [ 0.001 0.0025 0.006 ]
       MieScaleHeight 12
     }

     Timeline
     [
     # Before SPICE
     {
       BodyFrame { EquatorJ2000 { Center "Sol" } }
       Ending   "1550 02 27 00:00:00.000"  # add 2 month for orbit drawing
       CustomOrbit "vsop87-earth"
       CustomRotation "iau-earth"
     }
     # SPICE
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
       BodyFrame { EclipticJ2000 { Center "Sol" } }
       Ending    "2649 11 25 00:00:00.000"  # less 2 month for orbit
       SpiceOrbit
       {
         Kernel "de432.bsp"
         Target "399"
         Origin "3"
         Period 1
         BoundingRadius 1e10
       }
       SpiceRotation
       {

          Kernel         [ "pck00010.tpc" "naif0011.tls" "earth_fixed.tf"  ]
          Frame                 "EARTH_FIXED"
       }
     }
     # After Spice
     {
       BodyFrame { EquatorJ2000 { Center "Sol" } }
       CustomOrbit "vsop87-earth"
       CustomRotation "iau-earth"
     }
    ]
   }

 Replace "Moon" "Sol/Earth"
   {
     Texture "Moon.ctx"
     NormalMap "MoonNormal.ctx"
     SpecularColor [ 0.16 0.16 0.17 ]
     SpecularPower 0.5
     Oblateness 0.002
     Radius 1737.4
     Timeline
     [
     # Before SPICE
     {
       OrbitFrame { EquatorJ2000 { Center "Sol/Earth"}}
       BodyFrame  { EquatorJ2000 { Center "Sol/Earth"}}
       Ending   "1550 02 27 00:00:00.000"  # add 2 month for orbit drawing
       CustomOrbit "moon"
       CustomRotation "iau-moon"
     }
     # SPICE
     {
       OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
       BodyFrame  { EclipticJ2000 { Center "Sol/Earth"     }}
       Ending     "2649 11 25 00:00:00.000"  # less 2 month for orbit

       SpiceOrbit
       {
         Kernel "de430.bsp"
         Target "301"
         Origin "3"
         Period         27.321661
         BoundingRadius 1e10
       }

       SpiceRotation
       {
         Kernel         [ "pck00010.tpc"  "naif0011.tls"  ]
         Frame               "IAU_MOON"
       }
     }
     # After SPICE
     {
       OrbitFrame { EquatorJ2000 { Center "Sol/Earth"}}
       BodyFrame  { EquatorJ2000 { Center "Sol/Earth"}}
       CustomOrbit "moon"
       CustomRotation "iau-moon"
     }
         ]
         LunarLambert 1.0
         Albedo           0.12
   }

   ##############
   # Easter Egg #
   ##############
   Location "TMA-1" "Sol/Earth/Moon"
   {
     LongLat [ -10.52 -43.00 -1.5 ]
     Size 2.00
     Importance  5.0
     Type "AA"
   }




this spice rotation requires a EXTRA file "earth_fixed.tf"
as the name of the file says "earth fixed"
basically a bug fix
ftp://naif.jpl.nasa.gov/pub/naif/generic_kernels/pck/


a moon -- yeaaa
planets have there origin on the SSB , moons are relative to the parent body so "The Moon" is using the Earths barycenter
OrbitFrame { EclipticJ2000 { Center "Sol/Earth_bary"}}
and
-----
Target "301"
Origin "3"
-----

however the built in celestia defaults for before and after the spice are almost spot on
so there is no real need to use JPL Horizons to create them ( like we will for Mars )

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/