Page 1 of 1

2 questions about the "Modify" feature

Posted: 25.07.2009, 00:13
by PlutonianEmpire
1. How do I use the "modify" definition in an .ssc file in the "extras" directory to override the "CustomOrbit" definition for a default object in the "data" directory, such as the sun? I'm looking to make my "Apollo" addon more realistic without having to have the end-user modify a file in the "data" directory.

2. How do I use the "modify" feature to add new names to a pre-existing object?

And is either of this possible?

Re: 2 questions about the "Modify" feature

Posted: 25.07.2009, 11:07
by selden
Celestia ignores invalid custom orbits, so changing its name to something unrecognizable will cause the EllipticalOrbit definition (if one is present) to take effect.
e.g.

Code: Select all

Modify "Moon" "Sun/Earth" { CustomOrbit "unknown" }


(Modifying the orbit of the Sun around the Solar System Barycenter will have no effect on a spacecraft's orbit around the Earth or Moon: they're relative to wherever the Sun happens to be.)

To add new directives to an existing definition, just include them in the Modify statement.

e.g.

Code: Select all

Modify "Moon" "Sun/Earth" { CustomOrbit "unknown" Visible false }

Re: 2 questions about the "Modify" feature

Posted: 25.07.2009, 17:11
by PlutonianEmpire
I'm having trouble getting the default DEL Tri stars to disappear.

This is what I have right now in the extras directory:

Code: Select all

Modify "DEL Tri A" {
   Visible false
}

Modify "DEL Tri B" {
   Visible false
}

Star "Lilith:DEL Tri A:8 Tri A:GJ 92 A:ADS 1739 Aa:CCDM J02170+3414Aa" {
   OrbitBarycenter "DEL Tri"
   SpectralType    "G0V"
   AppMag          4.87
   EllipticalOrbit {
         Period               0.027433264887063655030800821355236
         SemiMajorAxis        0.045
         Eccentricity         0.011
         Inclination         56.714
         AscendingNode      122.736
         ArgOfPericenter     28.474
         MeanAnomaly          7.270
     }

   RotationPeriod 240.48
   Obliquity 56.714
   EquatorAscendingNode 122.736

}

Star "Hades:DEL Tri B:8 Tri B:GJ 92 B:ADS 1739 Ab:CCDM J02170+3414Ab" {
   OrbitBarycenter "DEL Tri"
   SpectralType    "K4V"
   AppMag          6.87
   EllipticalOrbit {
         Period               0.027433264887063655030800821355236
         SemiMajorAxis        0.065
         Eccentricity         0.011
         Inclination         56.714
         AscendingNode      122.736
         ArgOfPericenter    208.474
         MeanAnomaly          7.270
     }

   RotationPeriod 240.48
   Obliquity 56.714
   EquatorAscendingNode 122.736

}

Re: 2 questions about the "Modify" feature

Posted: 25.07.2009, 17:44
by selden
I don't think that Visible works in STC files.

One way to change or replace a cataloged star is to define a new star using that Star's Hipparcos catalog number.

See http://www.lepp.cornell.edu/~seb/celest ... s.html#4.0

Re: 2 questions about the "Modify" feature

Posted: 25.07.2009, 18:14
by PlutonianEmpire
Doesn't work for DEL Tri, apparently. :(

Oh well.

Thank you for your help. :)