Skip to content

geospace-code/stellarium-scripts

Repository files navigation

Stellarium .ssc example scripts

Stellarium can be used repeatably via ECMAScript .ssc scripts. Stellarium has been steadily enhancing scripting capabilities and general capabilities, so there's often a benefit to running a newer version of Stellarium.

Usage

From Stellarium, press F12 to open script load / run dialog.

Parameters

Here are a few relevant parameters.

FOV = field of view.

LabelMgr.deleteAllLabels()  // clear off any labels that clutter view
core.setDate("2000-01-23T04:45:15","utc",true)  // use UTC time
core.setTimeRate(0)  // do not advance time, pause at the specified time
StelMovementMgr.zoomTo(FOV_degrees, 0)  //0 disables zoom animation
core.setObserverLocation(lon, lat, alt_meters, 0, "myName")  // 0 disables move animation
core.moveToRaDecJ2000(RA,DEC,0)  // move to right ascension, declination :  0=without animation
core.setDiskViewport(false)  // use full window, not a simultated circular lens

Turn on azimuthal and equatorial grids:

GridLinesMgr.setFlagAzimuthalGrid(true)
GridLinesMgr.setFlagEquatorGrid(true)

Turn on constellation lines and labels

ConstellationMgr.setFlagLines(true)
ConstellationMgr.setFlagLabels(true)

Turn on compass cardinal points (NESW) and turn off landscape

LandscapeMgr.setFlagCardinalsPoints(true)
LandscapeMgr.setFlagLandscape(false)

About

Examples of .ssc scripts for Stellarium

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published