Skip to content

LTVT scripts

fermigas edited this page Oct 14, 2018 · 3 revisions

Running Scripts

Description

Scripts allow you to automate LTVT operations. They can be run using the Run script... dialog in the Files menu in the upper right of the main screen.

  • Note: This menu item is available only in LTVT_v0_21_5x and beyond

Details

New in LTVT_v0_21_5, this menu item produces a window in which scripts can be entered and run.

ScriptDialog.gif

  • Script commands are entered in the upper memo box, one command per line.
    • For details of the permissible command syntax see:
      • LTVT_Script_Syntax.txt (7 KB; rev. 8 November 2010)
      • Note: to view this text file with the intended word-wrap, it may be necessary to download it to disk and then open the saved copy, turning word-wrap on in the View options.
  • Clicking Run starts execution with the first command.
  • Clicking Pause halts execution after completion of the currently-executing command.

Example

  • Here is an animation produced with the following script which asks LTVT to generate the "Texture 1" image for each day from November 1 to November 27, 2010, and save them to disk as "1.bmp", "2.bmp", .. "27.bmp":

    • Libration script.txt

    • The Main Screen controls were set with Time at 00:00 UT, the Location = Geocentric and the Texture 1 file used was the LOLA grayscale DEM with a red dot placed at the Moon's mean center (0ºE/0ºN), and the "Mark center" option was selected.

    • The images were then loaded into ImageJ with the "File...Import...Image sequence..." command, which resulted in the following animation:

      • external image 2010Nov_Libration_Animation.gif?size=64 <-- click to view
    • It shows the Moon's nominal center point (the red dot) revolving around the sub-observer point. Unfortunately when saved as a GIF animation Image J did not preserve the original red color for the dot in all frames.

  • Here is another example: an animation of sunrise over Plato produced by incrementing the sub-solar longitude in steps of 0.5°
    • Earth-based view (click to see full size, also available in an overhead view):
      • external image 188263763?size=32
    • This is the script used to produce the two animations:
    • After adjusting the display and simulation parameters as desired, the script redraws the simulation with each specified sub-solar longitude and saves the sequentially numbered results to disk. The sub-solar latitude and the geometry of the Earth-based view were set to match those at the time of the famous observation of a "hooked" shadow on the floor of Plato, as seen by Wilkins and Moore using the great Paris Meudon refractor, assuming it was made 1952 Apr 3 at 19:30 UT.

This page has been edited 6 times. The last modification was made by - JimMosher JimMosher on Dec 15, 2010 12:44 pm

Clone this wiki locally