Lunar Libration

General discussion about Celestia that doesn't fit into other forums.
Topic author
rra
Posts: 171
Joined: 17.07.2004
With us: 20 years 4 months
Location: The Netherlands

Lunar Libration

Post #1by rra » 13.08.2006, 10:47

Is it possible to simulate the Lunar Libration
similar to this animation:

http://en.wikipedia.org/wiki/Image:Luna ... phase2.gif

perhaps using some script ??
Maybe someone has done this already .



Ren?©

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Re: Lunar Libration

Post #2by ANDREA » 13.08.2006, 12:12

rra wrote:Is it possible to simulate the Lunar Libration similar to this animation:
http://en.wikipedia.org/wiki/Image:Luna ... phase2.gif
perhaps using some script ?? Maybe someone has done this already .
Ren?©

Ren??, in my "Moon Tour" cel script I show it in this way: 8)

Code: Select all

select { object "Sol/Earth/Moon" }
time { jd 2453794.5 }
timerate {rate 0.0}
gotolonglat {time 3.0 distance 28 longitude 0.0 latitude 0.0}
synchronous {}
wait {duration 3.0}
print {text "We show you a full\nlunation with 1 day intervals" row -5 column 1 duration 8.0}
wait {duration 8.0}
time { jd 2453794.305 }
wait {duration 0.8}
print {text "New Moon" origin "center" row 10 column -4 duration 2.0}
wait {duration 2.0}
time { jd 2453795.75 }
wait {duration 0.8}
time { jd 2453796.75 }
wait {duration 0.8}
time { jd 2453797.75 }
wait {duration 0.8}
time { jd 2453798.75 }
wait {duration 0.8}
time { jd 2453799.75 }
wait {duration 0.8}
time { jd 2453800.75 }
wait {duration 0.8}
time { jd 2453801.75 }
wait {duration 0.8}
print {text "First Quarter " origin "center" row 10 column -5 duration 2.0}
wait {duration 2.0}
time { jd 2453802.75 }
wait {duration 0.8}
time { jd 2453803.75 }
wait {duration 0.8}
time { jd 2453804.75 }
wait {duration 0.8}
time { jd 2453805.75 }
wait {duration 0.8}
time { jd 2453806.75 }
wait {duration 0.8}
time { jd 2453807.75 }
wait {duration 0.8}
time { jd 2453808.75 }
wait {duration 0.8}
print {text "Full Moon" origin "center" row 10 column -4 duration 2.0}
wait {duration 2.0}
time { jd 2453809.75 }
wait {duration 0.8}
time { jd 2453810.75 }
wait {duration 0.8}
time { jd 2453811.75 }
wait {duration 0.8}
time { jd 2453812.75 }
wait {duration 0.8}
time { jd 2453813.75 }
wait {duration 0.8}
time { jd 2453814.75 }
wait {duration 0.8}
time { jd 2453815.75 }
wait {duration 0.8}
time { jd 2453816.75 }
wait {duration 0.8}
print {text "Third Quarter " origin "center" row 10 column -5 duration 2.0}
wait {duration 2.0}
time { jd 2453817.75 }
wait {duration 0.8}
time { jd 2453818.75 }
wait {duration 0.8}
time { jd 2453819.75 }
wait {duration 0.8}
time { jd 2453820.75 }
wait {duration 0.8}
time { jd 2453821.75 }
wait {duration 0.8}
time { jd 2453822.75 }
wait {duration 0.8}
time { jd 2453824.0 }
wait {duration 0.8}
time { jd 2453826.65 }   
wait {duration 0.8}
print {text "New Moon" origin "center" row 10 column -4 duration 2.0}
wait {duration 2.0}

Enjoy. :wink:

ADDED LATER: :oops: Sorry for misunderstanding, I missed you was searching for the libration effect. :oops:
Here is my libration cel script, that needs Vincent's patch and the images (that I took from the same address you gave):

Code: Select all

print {text "Two lunar phenomena due to Moon\nmovements: dimensional variation and libration" row -4 column 1 duration 6.0}
wait {duration 6.0}
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 08).jpg" }
wait { duration 0.6 }
overlay { duration 0.6 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 09).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 10).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 11).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 12).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 13).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 14).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 15).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 16).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 17).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 18).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 19).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 20).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 21).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 22).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 24).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 26).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 28).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 30).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 32).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 34).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 36).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 38).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 40).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 42).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 44).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 46).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 48).jpg" }
wait { duration 0.6 }
overlay { duration 1.0 xoffset 0 yoffset 0.50 alpha 1.0 filename "Lunar_libration_with_phase2(Frame 50).jpg" }
wait { duration 1.5 }


Hope this solves the problem. :wink:
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Topic author
rra
Posts: 171
Joined: 17.07.2004
With us: 20 years 4 months
Location: The Netherlands

Post #3by rra » 13.08.2006, 14:57

Andrea,
thanks for your help,
but I was really looking (hoping) for something smoother,
and (high-res) images generated from within Celestia,
something like your first tour, but then with smaller steps.
I guess I can construct my own CEL script starting from yours.
But then again, the libration effect won't be visible.
Any other ideas, or links to moon-scripts ?

By the way:
how/where did you extract the libration-images from Wikipedia ?


Ren?©

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

Post #4by selden » 13.08.2006, 15:48

rra,

I'm not sure why you say the libration effect won't be visible. You should certainly be able to see it by using Andrea's script to view 28 daily images of the Moon and taking screenshots of them if you want. If you position your viewpoint at the center of the Earth,Track the Moon and turn up the simulation time rate, you could get an even smoother display. Celestia shows the Moon's orbit and rotation correctly.

The English Wikipedia page is at
http://en.wikipedia.org/wiki/Libration
Selden

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #5by Chuft-Captain » 13.08.2006, 16:53

selden wrote:If you position your viewpoint at the center of the Earth,Track the Moon and turn up the simulation time rate, you could get an even smoother display. Celestia shows the Moon's orbit and rotation correctly.

Here's what Selden's taking about: Click here

I get about 40fps, that should be smooth enough. :wink:
Watch out for transits of the Sun. :)
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #6by ANDREA » 13.08.2006, 17:19

rra wrote:Andrea, thanks for your help, but I was really looking (hoping) for something smoother, and (high-res) images generated from within Celestia.
Ren??. Selden and Chuft-Captain gave you the right answer. :wink:
rra wrote:By the way: how/where did you extract the libration-images from Wikipedia ?
Ren?©

I don't remember exactly, it was time ago, but I think I took the movie from another site, and extracted the needed images with Selteco Bannershop GIF Animator. 8O
Hope this helps.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Johaen
Posts: 341
Joined: 14.01.2006
With us: 18 years 10 months
Location: IL, USA

Post #7by Johaen » 13.08.2006, 17:59

Chuft-Captain wrote:Here's what Selden's taking about: Click here

I get about 40fps, that should be smooth enough. :wink:
Watch out for transits of the Sun. :)


Well, I get about 15 fps (><; ), but it's still pretty neat to watch. It looks almost exactly like that .gif. neato :)
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #8by Chuft-Captain » 13.08.2006, 18:56

Something rather interesting happens after the year 4000 ----> See if you can spot it<--- click this :)
Last edited by Chuft-Captain on 14.08.2006, 01:16, edited 1 time in total.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
rra
Posts: 171
Joined: 17.07.2004
With us: 20 years 4 months
Location: The Netherlands

Post #9by rra » 13.08.2006, 19:10

It works , even better (and easier) then I thought
thanks all of you .


Ren?©

Topic author
rra
Posts: 171
Joined: 17.07.2004
With us: 20 years 4 months
Location: The Netherlands

Post #10by rra » 14.08.2006, 20:02

trying to do this same trick on other moons ,
I still have difficulties in "going to the center" of the object (planet).
How can I, generally speaking, go to the center of a planet ?

Ren?©

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

Post #11by selden » 19.08.2006, 11:32

Ren?©,

I'm sorry for the delay in getting back to you.

What I do to get inside an object is to define a second invisible one with a much smaller radius but with the same orbital parameters and then GoTo that new object.

e.g.

Code: Select all

"centerEarth" "Sol" {
        Class "invisible"
   Radius 0.01
   
   CustomOrbit "vsop87-earth"
   
   RotationPeriod    23.9344694
   Obliquity           -23.45
   RotationOffset   280.5

   Albedo            0.001
}
Selden

Topic author
rra
Posts: 171
Joined: 17.07.2004
With us: 20 years 4 months
Location: The Netherlands

Post #12by rra » 19.08.2006, 19:25

Selden,
when I apply your previous suggstion

if you position your viewpoint at the center of the Earth,Track the Moon and turn up the simulation time rate, you could get an even smoother display.


I see the lunar Libration effect but frequently the view to the moon is
disturbed by the earth itself I think.
I don't know why the cel:url link of Chuft-Captain doesn't have this effect.
If I add your code, I guess the view won't be disturbed.
I'll experiment a bit the coming days.
Thanks ,

Ren?©


Return to “Celestia Users”