2 questions about the "Modify" feature

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 5 months
Location: MinneSNOWta
Contact:

2 questions about the "Modify" feature

Post #1by PlutonianEmpire » 25.07.2009, 00:13

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?
Terraformed Pluto: Now with New Horizons maps! :D

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

Re: 2 questions about the "Modify" feature

Post #2by selden » 25.07.2009, 11:07

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 }
Selden

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 5 months
Location: MinneSNOWta
Contact:

Re: 2 questions about the "Modify" feature

Post #3by PlutonianEmpire » 25.07.2009, 17:11

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

}
Terraformed Pluto: Now with New Horizons maps! :D

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

Re: 2 questions about the "Modify" feature

Post #4by selden » 25.07.2009, 17:44

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
Selden

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 5 months
Location: MinneSNOWta
Contact:

Re: 2 questions about the "Modify" feature

Post #5by PlutonianEmpire » 25.07.2009, 18:14

Doesn't work for DEL Tri, apparently. :(

Oh well.

Thank you for your help. :)
Terraformed Pluto: Now with New Horizons maps! :D


Return to “Help Central”