stellarium | free GPL software which renders realistic skies | Graphics library
kandi X-RAY | stellarium Summary
kandi X-RAY | stellarium Summary
Stellarium is a free open source planetarium for your computer. It shows a realistic sky in 3D, just like what you see with the naked eye, binoculars or a telescope. If you are new to Stellarium, go to www.stellarium.org for loads of additional information.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stellarium
stellarium Key Features
stellarium Examples and Code Snippets
Community Discussions
Trending Discussions on stellarium
QUESTION
I am making a Javascript program and on of the functions is to convert altitude/azimuth to right-ascension/declination given a time and latitude. My code can find the declination fairly accurately, I checked with Stellarium. I have been using this site to help me with the math.
My program gives me the wrong value for horizontal ascension which I plan on using to find right ascension (I already have a function to find local sidereal time which works). Here is my code for the equation
var ha = asin(-sin(az)*cos(alt) / cos(dec)) * (180 / Math.PI);
this code is in Javascript but I defined custom sin/cos/asin functions that take degrees as input and return radians because that is the form my data is in.
The site I use also says that this equation should give the same result
var ha = acos((sin(alt) - sin(lat)*sin(dec)) / (cos(lat) * cos(dec))) * (180 / Math.PI);
but, the two equations give different results and neither are correct according to stellarium. I have checked that all the variables I am putting in are correct and I am almost certain I entered the equation correct. Here is the full code on github. I need help figuring out how to fix this problem.
--Note this can be run with node js with no libraries
The result I get is { ra: [ 23, 57, 37.9 ], dec: [ -5, 24, 38.88 ] }
It should be getting { ra: [ 5, 36, 22.6 ], dec: [ -5, 24, 38.88 ] it does not have to be exact, I only really care about the first number of ra (right ascension). It is also formatted in HMS format. The datetime is hardcoded to Febuary 1st 2022 12:00:00 so that is what you should set stellarium to if you are testing this out.
Here is the relevant code
ANSWER
Answered 2022-Feb-04 at 02:02Give the following a try. Notable changes include:
Specified 'GMT+0000' when establishing J2000.0 date, in addition to the date being passed in to
altazToradec()
. Otherwise, new Date() returns local time.Sourced calculation of 'DEC' and 'HA' from MathWorks.com (look under the "Functions" tab).
NOTE: 'HA' and 'RA' are in degrees, not hours. To convert to hours, multiply by (24 hrs / 360 deg), or simply divide by (15 deg / hr).
Sourced sample data from StarGazing.net.
QUESTION
I am trying to get a script to open the "Stellarium" application on my laptop, but it keeps giving me this error...
"Windows cannot find "stellarium.exe." Make sure you typed the name correctly, and then try again."
I am guessing something is wrong with the "prog =" syntax.
Here are files' locations...
...ANSWER
Answered 2021-Aug-23 at 06:25did you change the directory using os.chidr(location of files)
first?
I think that's why it can't see the exe
file.
QUESTION
I want to open/close any application with a button in C#. I am opening or closing programs like Word, Excell. However, I can open another program (stellerium.exe) but I can't close it. Help, please.
//open program private void button14_Click_1(object sender, EventArgs e) { Process.Start(@"C:\Program Files\Stellarium\Stellarium.exe"); }
//close program private void button10_Click(object sender, EventArgs e) {
...ANSWER
Answered 2021-Jun-17 at 08:21Get Process Id of the Process and use
Process.GetProcessById(Processid).Kill();
QUESTION
I have been trying to get stellarium-web running (https://github.com/Stellarium/stellarium-web-engine).
With a clean Ubuntu 18.04 install, after installing scons and emscripten the "make js" command still fails, with some (at least for me) unreadable error as seen below:
...ANSWER
Answered 2021-Jan-09 at 08:47I think I found the solution: Downgrading emsdk from 2.x to 1.40.1 seems to have solved this. Thanks :-)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stellarium
See instructions to building Stellarium from source code.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page