Search notes:

Stellarium API: core.moveToAltAzi

core.moveToAltAzi looks at a pair of coordinates that are specified in the horizontal coordinate system (aka topocentric coordinate system).
core.moveToAltAzi(
   altitude,  // angle of altitude
   azimuth ,  // angle of azimuth
   duration   // duration in seconds, default = 1
)
Because core.moveToAltAzi is based on horizon of location of the observer, the same pair of coordinates does not look into the same direction on two different places.

Example

//  vim: ft=javascript
//
//  ..\..\runScript.bat moveToAltAzi.ssc
//


// Go to Irchelturm
core.setObserverLocation(
   8 + 36/60 + 25.85/60/60, // longitude
  47 + 32/60 + 21.48/60/60, // latitude
   0                      , // Altitude
   0                        // Duration
);


core.setDeltaTAlgorithm('WithoutCorrection');

core.setDate(
  '2014-01-04T05:15:00',
  'local'              , // or 'utc'
   true                  // enable Delta T correction
);


// Why is this even necessary?
//    2020-09-23 / Version 0.20 (not necessary anymore?)
// core.wait(0.01);

// Stop time
core.setTimeRate(0.0);

core.moveToAltAzi(
          //
          // Look at Saturn.
          // The planet is
    11.1, //    Approx 11 degrees above the horizon, and
   128.0, //    almost in South-East.
     0.0  // Don't loose time, move immediatly.
);

StelMovementMgr.zoomTo(25.0);

GridLinesMgr.setFlagAzimuthalGrid(true);
Github repository about-Stellarium, path: /API/core/moveToAltAzi.ssc

See also

core.moveToRaDec, core.moveToRaDec2000
A grid of the horizontal coordinate system is displayed with GridLinesMgr.setFlagAzimuthalGrid(true).
Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201389, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/core/moveToAltAzi(104): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78