celestial sphere
 1-8  9-28  29-30

Previous
Next
 From:  bemfarmer
7559.9 
The celestial math is becoming slightly less opaque.
Some references and thoughts:
http://www.heavens-above.com/constellation.aspx?lat=0&lng=0&loc=Unspecified&alt=0&tz=UCT
https://en.wikipedia.org/wiki/Spherical_coordinate_system
https://en.wikipedia.org/wiki/Celestial_coordinate_system
https://en.wikipedia.org/wiki/Celestial_sphere#Celestial_coordinate_systems

https://en.wikipedia.org/wiki/Equatorial_coordinate_system
https://en.wikipedia.org/wiki/Right_ascension
https://en.wikipedia.org/wiki/Declination

Previously in scripts, points have been plotted in Moi, using spherical coordinates converted to (x, y, z).

Star locations are available in Right Ascension and Declination, Equatorial coordinates.

Right Ascension:
RA is measured in time units of hours, minutes, and seconds.
Convert RA to degrees using 360 degrees = 24 hours.
24 h = 360 deg
1 h = 15 deg, 1 m = 15', 1 s = 15"
1 deg = 4 m, 1' = 4 s
Then convert to radians, 2PI = 360 degrees.
This radian angle is the same as Theta in spherical coordinates, mathematics version, not physics.

Declination:
Dec is measured in angles, i.e. degrees, minutes, seconds.
Dec must be converted to angle Phi in spherical coordinates.
Note that for a negative declination, minutes and seconds are ALSO negative.
Angle Phi in spherical coordinates is equal to (90 degrees minus Dec) [where Dec may be negative.]
Example: Declination of -10 degrees yields Phi of (90 - (-10)) = 100 degrees in spherical coordinates.
Convert Phi to radians.

{Note: Max kept dec, instead of converting to phi, so sin and cos(phi = dec) would be swapped}

Radius of the celestial globe, Theta, and Phi, are converted to (x,y,z) point in Moi:
var x = r * Math.sin(phi) * Math.cos(theta);
var y = r * Math.sin(phi) * Math.sin(theta);
var z = r * Math.cos(phi);

return moi.vectorMath.createPoint( x, y, z );

Point could be made into a small color circle for a large/bright appearing star. What diameter?
Add lines (great circles) connecting constellation stars.
Vernal equinox, time of day...

- Brian

http://spider.seds.org/spider/ScholarX/coords.html

EDITED: 22 Aug 2015 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.10 
Hi :)
It's very interesting task. I've wrote ~80% of the script. It took about 30-40 minutes.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.11 
Starmap.v.0.3.2015.08.23

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.12 In reply to 7559.10 
Max,
I would love to see that....
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.13 

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7559.14 In reply to 7559.11 
Yikes! That was fast.
I see that using dec instead of phi swaps cosine and sine in getting x,y,z.

- Brian

EDITED: 22 Aug 2015 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.15 In reply to 7559.13 
Very cool Max!!! Wow......

If you would like to dig into this a bit, I would be willing to pay you to further customize it..... Let me know if you have time to get into it...

Thanks for the effort!
Burr
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.16 
Updated version.
I thought that "mag" value is some kind of distance. I was wrong :) Fixed it.

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7559.17 In reply to 7559.16 
.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.18 In reply to 7559.15 
Burr, thank you :)
What do you want to customize?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7559.19 
OK, radius of celestial sphere = distance = 50 units setting.

-Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.20 
Starmap + vSeed + ArrayGem :)

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.21 In reply to 7559.18 
Hi Max,
The ability to capture a few things, and manipulate the object....

1. Create Celestial equator and elliptic equator axis. ability to move zenith per entered data, as in, set NCP/SCP rotation by degree's given and rotate NCP/SCP axis (celestial axis) by degrees (or even lat/lon coords, etc) . NSEW labels that follow.

2. Create/capture Galaxies, Nebula, Globular Cluster, Open Cluster and Visual Binary groups ( by style?)

3. Capture "magnitude data" attached to points (styles again).. Maybe a legend of 5 to -2 for size range, so 8 groups.

Seem possible?

EDITED: 22 Aug 2015 by BURRMAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.22 In reply to 7559.21 
Max,
With regard to #1 in the list above, i may not be clear on the best way to achieve the desired result, manipulating the zenith. Let me ask a couple guys more knowledgeable about it and get back to you.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.23 In reply to 7559.19 
Hey Brian,
"""""OK, radius of celestial sphere = distance = 50 units setting.""""""""

Can you elaborate on this statement a bit?

Currently evaluating how to set the size of the sphere in relation to the scene and camera position and view angle and get the most realistic "human" results....

Thanks.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7559.24 In reply to 7559.23 
Hi Burrman

Sorry for poor explanations.
I was just noticing that in Max's .js file, the radius of 50 is passed to the .html file using "moi.ui.commandUI.Starmap(50),"
which becomes "distance," and is used in the spherical to x,y,z coordinates.
So the celestial sphere has a radius of 50 distance units, in this case, from the center of the Earth.

Also, the cos(90 - dec) = sin(dec)
similarly sin(90 - dec) = cos(dec)
So the spherical to x,y,z coordinate equations have some sin and cos functions exchanged from the Wikipedia (Phi) equations.
There is no need to switch to polar Phi angle.
RA and Dec are also partly previously processed in the database.

Max is such a good programmer, I look to see what can be learned :-)

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.25 In reply to 7559.24 
Hey Brian,
I see. Thanks.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7559.26 
Moi shows Orion as having 32 objects.
14 are lines.
13 are star points.
5 star points are duplicate, where 3 lines meet in a star point.
Database has these 5 duplicate stars for Orion, to make the lines. Might effect brightness?
Database has 4 null stars for endpoints or separators (?)

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Max Smirnov (SMIRNOV)
7559.27 In reply to 7559.21 
Hi Burr,

>>1. Create Celestial equator and elliptic equator axis. ability to move zenith per entered data, as in, set NCP/SCP rotation by degree's given and rotate NCP/SCP axis (celestial axis) by degrees (or even lat/lon coords, etc) .
>>NSEW labels that follow.
It looks not so difficult. Could you provide me with formulas?

>>2. Create/capture Galaxies, Nebula, Globular Cluster, Open Cluster and Visual Binary groups ( by style?)
I have no ideas how to create galaxies/nebulas in moi.. I think moi is not right tool to create them.

>>3. Capture "magnitude data" attached to points (styles again).. Maybe a legend of 5 to -2 for size range, so 8 groups.
It's very easy.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
7559.28 In reply to 7559.27 
Hey Max,

1. Well, give me a couple days to contact a couple guys... I'm going to discuss the best way to achieve this type of positioning....

2. Oops. I was referring to the PDF located here:

http://observe.phy.sfasu.edu/SFAStarCharts/SFAStarChartsPro.pdf

I saw the legend and symbols for the Galaxies-nebula etc... I thought I saw them referenced in the Excel symbols, but I see they are not included... I'll talk to the PWO Navigators. I don't think they use those anyway. If any are needed, they can be added manually ... [EDIT] Just noticed the database in the htm file.. May look at editing the database if needed.... :)

3. Great! If you can give me a couple days to gather some info, I can speak to the movement stuff in number 1 better....

Thanks again....
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-8  9-28  29-30