Replies: 2 comments 5 replies
-
Where is from it? |
Beta Was this translation helpful? Give feedback.
2 replies
-
In which API docs have you seen this function? It may be enough to just search for it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ! I'm trying to use Stellarium to simulate satellites passing in front of a telescopic lens. To do this, I need the program to simulate the passage of a satellite at a certain point and take 60 screenshots to simulate the observation time of a telescope. The intention is that I have 60 images and in each of them the satellite passes by and interferes with the observation.
I want Stellarium to take this screenshot for me, however, it is unable to do so. Could anyone help me? Is it possible to do this? I'm using Stellarium's own console to run the code below:
// Set observer location: latitude, longitude, altitude (in meters)
core.setObserverLocation(0.0, 0.0, 100, "", 0);
// Set the current date and time
var now = new Date();
core.setDate(now.toISOString(), "utc");
// Point to a coordinate in the sky (RA, Dec)
core.moveToRaDec(15.0, -30.0);
// Create a satellite (using the ISS as an example)
var satellite = Satellites.createSatelliteFromName("ISS");
satellite.setVisible(true); // Show the satellite
satellite.setTrajectoryVisible(true); // Show the satellite's trajectory
// Loop to capture 60 images (shots), 1 per second
for (var i = 1; i <= 60; i++) {
core.wait(1); // Wait 1 second between each capture
core.screenshot("C:\output\shot_" + i + ".png"); // Save the screenshot
}
Beta Was this translation helpful? Give feedback.
All reactions