Search notes:

Stellarium script: sunrise-Jerusalem

//  vim: ft=javascript

// http://www.esrl.noaa.gov/gmd/grad/solcalc/sunrise.html

// Apparently, the script needs to wait a second
// at the start of the script and then again sometimes
// after core.setObserverLocation, at least on Linux.
//
core.wait(1);
core.setObserverLocation(
   35 + 14/60,  // Longitude
   31 + 41/60,  // Latitude
   0
);

core.setDate("2016-03-21T03:43:22", "utc"); // Apparent sunrise
core.wait(1);
core.setTimeRate(0);

LandscapeMgr.setCurrentLandscapeName("Ocean");

GridLinesMgr.setFlagAzimuthalGrid(true, 0);

StelMovementMgr.zoomTo(6.0, 0);

core.moveToAltAzi("+0d", "+90d", 0.0);

// core.selectObjectByName("Sun", true);
Github repository about-Stellarium, path: /Scripts/sunrise-Jerusalem.ssc

See also

Stellarium Scripts

Index