Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to draw stars onto the sky? #213

Open
FEXAQAQ opened this issue Jun 12, 2024 · 6 comments
Open

How to draw stars onto the sky? #213

FEXAQAQ opened this issue Jun 12, 2024 · 6 comments

Comments

@FEXAQAQ
Copy link

FEXAQAQ commented Jun 12, 2024

In the past few weeks, I have been studying how to parse the stars in skydata and draw them onto the sky. I want to print out a list of all stars, as well as their names/coordinates.

I know that it initially loads the relevant data from "app.vue" via "addDataSource" and adds it in "SweObj.prototype.addDataSource" inside "obj.js", but I don't understand how it works later. It parses the coordinates of the internal file and then draws them onto the sky. I printed a lot of places, but no progress was made. Does anyone know?

I will be very grateful.

@gzotti
Copy link
Member

gzotti commented Jun 12, 2024

Why don't you simply fetch the original catalogs? You may avoid data artifacts from processing into a speed/memory optimized structure.

@FEXAQAQ
Copy link
Author

FEXAQAQ commented Jun 12, 2024

Why don't you simply fetch the original catalogs? You may avoid data artifacts from processing into a speed/memory optimized structure.

Hi gzotti,
Does the original catalog refer to the original catalog of the stars?
/dist/skydata/stars/Norder0/Dir0/Npix0.eph

Thank you for your patient answer!

Sorry, my English department is not good, so I use translators. Some of the explanations may not be very good. Please bear with me.

@gzotti
Copy link
Member

gzotti commented Jun 12, 2024

No, I mean Gaia or Hipparcos astrometric catalogs from ESA.

@FEXAQAQ
Copy link
Author

FEXAQAQ commented Jun 12, 2024

No, I mean Gaia or Hipparcos astrometric catalogs from ESA.

Yes, you are right, maybe this is the best way.

I'm just out of curiosity about how the project works.
I think it's very cool. I want to say that there are many types of stars and the number is very large. I am impressed by how he can analyze this information and draw it very quickly.

@nuannuan111
Copy link

I’m also very curious about this. Can we explore it together?

@FEXAQAQ
Copy link
Author

FEXAQAQ commented Dec 16, 2024

I’m also very curious about this. Can we explore it together?
After a period of research, I will share my current understanding, taking star as an example:

  • Early stage
    During initialization, the resource path of star will be loaded through core.stars.addDataSource in App.vue.

  • medium term
    Analyze the data structure of each star through stars_add_data_source.
    Path: src\modules\stars.c

  • Later
    Render stars through star_render.
    Path: src\modules\stars.c

Note: Most of the functions of star are implemented in stars.c. You can start here to find the functions you want to see.

I hope the above can help you. If I make any mistakes, please forgive me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants