Animating orbits using timesteps?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Animating orbits using timesteps?

Post #1by Malenfant » 31.10.2006, 16:10

I've got some output files for orbits from Gravity Simulator ( http://www.orbitsimulator.com ) that look like lots of rows of numbers like this:

Code: Select all

306100, 747990966.25826, .12174328971626, 128.95816653494, 256.920487068911, 308.764140502418, 74.6582898441838
306200, 747992244.113765, .12161833652493, 128.956211097811, 256.9176950343, 308.767331970064, 56.1691246213322
306300, 747991186.352602, .121534669452866, 128.953891777822, 256.912650825081, 308.770879705018, 37.6876622561771
306400, 747989260.495626, .121473234485095, 128.951526374437, 256.907116350646, 308.774299360486, 19.2095335705694


where the numbers are: current year,semimajor axis (km), eccentricity, inclination (degrees), Argument of pericentre (degrees), Longitude of Ascending Node (degrees), Mean Anomaly (degrees).

Is there any way I can show these orbits evolving in Celestia as a kind of timelapse/animation (assuming I can translate the data into an STC format)? So at the time shown in the table, the orbit shown in Celestia will have the properties shown in that row, and at the next timestep in the table the orbit will change to have the properties for the next row (maybe animating gradually in the time between them?) and so on? Could I do this with "Modify" commands or a script or something?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Animating orbits using timesteps?

Post #2by chris » 31.10.2006, 16:16

Malenfant wrote:Is there any way I can show these orbits evolving in Celestia as a kind of timelapse/animation (assuming I can translate the data into an STC format)? So at the time shown in the table, the orbit shown in Celestia will have the properties shown in that row, and at the next timestep in the table the orbit will change to have the properties for the next row (maybe animating gradually in the time between them?) and so on? Could I do this with "Modify" commands or a script or something?


I don't believe that this is possible now. About all you could do is define an object for every orbit, then write a script that selects them in sequence while orbits are turned on. I will be significantly updating the plotting abilities of Celestia in a post-1.5.0 version.

--Chris

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Re: Animating orbits using timesteps?

Post #3by symaski62 » 31.10.2006, 19:16

[quote="Malenfant"]I've got some output files for orbits from Gravity Simulator ( http://www.orbitsimulator.com ) that look like lots of rows of numbers like this:

Code: Select all

306100,747990966.25826 , .12174328971626, 128.95816653494, 256.920487068911, 308.764140502418, 74.6582898441838
306200, 747992244.113765, .12161833652493, 128.956211097811, 256.9176950343, 308.767331970064, 56.1691246213322
306300, 747991186.352602, .121534669452866, 128.953891777822, 256.912650825081, 308.770879705018, 37.6876622561771
306400, 747989260.495626, .121473234485095, 128.951526374437, 256.907116350646, 308.774299360486, 19.2095335705694


current year: 306100
semimajor axis (km) : 747990966.25826 = 5.0000098 UA
eccentricity : 0.12174328971626
inclination (degrees) : 128.95816653494
Argument of pericentre (degrees) : 256.920487068911
Longitude of Ascending Node (degrees) : 308.764140502418
Mean Anomaly (degrees) : 74.6582898441838

UA^3 = year^2 :wink:

5.0000098 ^ 3 = 125.000735 year

:idea: i am french ? math !
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #4by Malenfant » 31.10.2006, 22:17

As usual, I have absolutely no idea what you're trying to say Symaski. In fact, I think if you said it in french I'd understand you better :)

Thanks for the info, Chris. Oh well.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system


Return to “Scripting”