Celestia 1.7.0 Development Thread

The place to discuss creating, porting and modifying Celestia's source code.
Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #381by Lafuente_Astronomy » 13.05.2019, 14:03

pirogronian wrote:Maybe. I only adopted already existing code.

In relation to the numbers beyond 0xf0000000, where does it start? Which number or value begins after 0xf0000000?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #382by pirogronian » 13.05.2019, 16:20

Lafuente_Astronomy wrote:Which number or value begins after 0xf0000000?

Yyy, 0xf000001? Sorry, I dont understand your question... :smile:

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #383by Lafuente_Astronomy » 13.05.2019, 23:31

pirogronian wrote:Yes, astrodb allows for any numeric id for astronomical object. But for backward compat there are two rules:
1. Id less than 999999 is interpreted as HIP nr.
2. Id between 999999 and 0xf0000000 is interpreted as TYC nr.

Based on the second statement, "Id between 999999 and 0xf0000000 is interpreted as TYC nr." The question is what's beyond 0xf000000000, and if so, is 0xf0000001 an identifier beyond TYC?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #384by pirogronian » 14.05.2019, 02:20

@Lafuente_Astronomy
But You already asked about that and I already answered:

pirogronian wrote:Really nothing except pure abstract identification of object in external cross-indexes

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #385by Lafuente_Astronomy » 14.05.2019, 12:45

pirogronian wrote:Really nothing except pure abstract identification of object in external cross-indexes

I mean to say, define "Pure Abstract Identification of Object in external cross-indexes"?

Is it like we can type any number or letter value in any order we wish when we designate such objects? Like for example, typing "uihfdhf" can be used as an identifier?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #386by pirogronian » 14.05.2019, 13:50

Lafuente_Astronomy wrote:Is it like we can type any number or letter value in any order we wish when we designate such objects? Like for example, typing "uihfdhf" can be used as an identifier?

No, it have to be non negative integer. For use it for Gaia catalog, we have to create new cross index with mapping UID <-> Gaia number. But to recognize Gaia catalog names, we have to implement new class in Celestia core code.

Avatar
LukeCEL
Posts: 187
Joined: 26.09.2017
With us: 1 year 10 months

Post #387by LukeCEL » 14.05.2019, 19:58

Hi! Can I get a brief summary of what the current plan (and status) is with the database restructuring?

Thanks, LukeCEL

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #388by pirogronian » 14.05.2019, 21:00

LukeCEL wrote:Can I get a brief summary of what the current plan (and status) is with the database restructuring?

Done
1. Fully implemented dynamic loading and searching of stars and DSOs.
2. Fully implemented dynamic reflection of changes of position and magnitude of stars & DSOs in octree structure.
3. Fully implemented name loading, erasing, searching and completion.
4. Fully implemented cross index loading and modyfing.

WIP
1. Make cross index able to work on ranges instead of 1-1 map.
2. Dynamic unloading of stars and DSOs (TODO parent/children handling).

TODO
1. Loading, searching, modyfing and erasing of bodies, locations and solar systems.
2. Loading, searching, modyfing and erasing of asterism (needed?).

Further plans
1. Enable user to define own catalogs (for example by defining its prefix or whole printf like pattern).
2. Make all objects (except of locations) "orbitable" and "phasable" (like bodies). IE we would be able to have galaxy orbiting around other galaxy within defined period of time, like planets, moons and spacecrafts can.

Currently code seems to work fine and be fully compatibile with master.

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #389by Lafuente_Astronomy » 14.05.2019, 21:20

pirogronian wrote:No, it have to be non negative integer. For use it for Gaia catalog, we have to create new cross index with mapping UID <-> Gaia number. But to recognize Gaia catalog names, we have to implement new class in Celestia core code.

Nice! I'll be waiting on that. Gaia Catalog Numbers should be recognized so that there can be additional starnames to the universal catalog

pirogronian wrote:1. Enable user to define own catalogs (for example by defining its prefix or whole printf like pattern).

Despite that, there'll still be a universal object identifier catalog like the proposed Celestia Catalog right?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #390by pirogronian » 14.05.2019, 21:37

Lafuente_Astronomy wrote:Despite that, there'll still be a universal object identifier catalog like the proposed Celestia Catalog right?

Of course. User-defined catalog means, for example, we may let user to register Gaia catalog with prefox/name GAIA and name pattern { "GAIA %i", <gaia_nr> }. Then user would be able to define cross index map from Gaia number to UID and tell Celestia to use it while searching Gaia nr for particular UID or vice versa.

Of course this is example only. I don't know yet how Gaia name format looks like...

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #391by Lafuente_Astronomy » 14.05.2019, 22:03

pirogronian wrote:Of course this is example only. I don't know yet how Gaia name format looks like...

If I remember from the time I used Gaia Sky, it seems to be a bunch of numbers. Also, does the catalog also covers other star catalog identifiers, i.e 2MASS, GCVS, GSC, PPM, SAO, etc?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

Avatar
LukeCEL
Posts: 187
Joined: 26.09.2017
With us: 1 year 10 months

Post #392by LukeCEL » 14.05.2019, 23:36

Thanks for the status update. Can I ask how much of these changes are backwards compatible? If possible, I'd like to do as little as possible with my star databases and cross indices. (Preferably nothing at all, since there are countless other stars.dat files out there).

pirogronian wrote:I don't know yet how Gaia name format looks like...

There's a brief description of the Gaia identifiers here. They have a slightly more in-depth description here, but I don't know if it's applicable to Gaia DR2 as well as Gaia DR1.

Either way, the numerical identifiers are slightly different for both DR1 and DR2, and will be for the next releases.

pirogronian
Developer
Posts: 151
Joined: 05.01.2018
With us: 1 year 7 months
Location: Wrocław

Post #393by pirogronian » 15.05.2019, 06:05

LukeCEL wrote:Can I ask how much of these changes are backwards compatible?

Yes, You can :wink: Backward compatibility is one of main goals. So, no changes should be need in any file. Currently all original data files seems to be parsed and loaded without errors.

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #394by Lafuente_Astronomy » 15.05.2019, 06:45

LukeCEL wrote:Either way, the numerical identifiers are slightly different for both DR1 and DR2, and will be for the next releases.

So, that means there'll be 2 different identifiers for objects in Gaia, and since there'll be 4 data releases, they may have an overall of 4 different identities, that is unless the ESO decides to make a complete and final Gaia Catalog based on the data of the 4 releases combined plus some other stuff?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

Avatar
Sirius_Alpha
Posts: 32
Joined: 21.03.2019
With us: 4 months 28 days

Post #395by Sirius_Alpha » 15.05.2019, 21:20

A further consideration is that some stars are in Gaia DR1 and not in Gaia DR2, and some are in Gaia DR2 but not Gaia DR1.
I'm wondering if we should rely on the 2MASS catalogue for an internal ID and simply get our data from Gaia. At least 2MASS is consistent. For example, KOI-1029 has a DR2 but not a DR1 number. Though perhaps SIMBAD is incomplete. Though there are stars that have 2MASS ID's but have no Gaia DR #, and may not get one.

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #396by Lafuente_Astronomy » 15.05.2019, 21:31

Sirius_Alpha wrote:A further consideration is that some stars are in Gaia DR1 and not in Gaia DR2, and some are in Gaia DR2 but not Gaia DR1.
I'm wondering if we should rely on the 2MASS catalogue for an internal ID and simply get our data from Gaia. At least 2MASS is consistent. For example, KOI-1029 has a DR2 but not a DR1 number. Though perhaps SIMBAD is incomplete. Though there are stars that have 2MASS ID's but have no Gaia DR #, and may not get one.

Perhaps so. But is 2MASS itself a more complete catalog?
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

Avatar
Sirius_Alpha
Posts: 32
Joined: 21.03.2019
With us: 4 months 28 days

Post #397by Sirius_Alpha » 15.05.2019, 21:36

No. It has ~430 million sources, according to it's entry on VizieR (link). That's about a third of the Gaia catalogue. But it should overlap well with a reduced catalogue of stars, right? Unless we're intending on including a billion stars (which I would love), I'm not sure the matter of completeness is what counts here.

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #398by Lafuente_Astronomy » 16.05.2019, 05:21

Sirius_Alpha wrote:Unless we're intending on including a billion stars (which I would love)

I love that too. And I think they might put them all in there because for Authenticity's sake
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.

Janus
Posts: 400
Joined: 13.08.2016
With us: 3 years

Post #399by Janus » 16.05.2019, 05:35

Assuming for a moment someone puts a gigastar catalog for celestia together.
Then I hope that someone makes the database load in distance order so a spherical map can be maintained.
This would enable the user to limit how many stars are loaded by setting things like max memory to be used.


Janus.

Avatar
Lafuente_Astronomy
Moderator
Posts: 304
Joined: 04.08.2018
Age: 21
With us: 1 year
Location: Cebu, Philippines
Contact:

Post #400by Lafuente_Astronomy » 16.05.2019, 06:47

Janus wrote:Assuming for a moment someone puts a gigastar catalog for celestia together.
Then I hope that someone makes the database load in distance order so a spherical map can be maintained.
This would enable the user to limit how many stars are loaded by setting things like max memory to be used.


Janus.

Well, said topic is dealt here: viewtopic.php?f=4&t=19521. We may be going for modularization. But your idea is good as well. Hopefully the devs can work their way around that

Added after 6 hours 18 minutes:
Janus wrote:This would enable the user to limit how many stars are loaded by setting things like max memory to be used.

As for that, probably certain code must be established first in Celestia. There's already a basic working code for that if I remember, in which objects will become boxes when the user gets far away from it, but it does not remove them fully, which is what the code should ideally do.

Added after 13 minutes 17 seconds:
viewtopic.php?f=15&t=18638
The post in question, though it changes the object to a box if it's close. Figures that if the code is improved in that, it could truly enable and disable objects depending on the distance, and thus be a feature in Celestia that can be changed in the settings by the user. It could be called "Limit Star Viewing Distance"
Official Administrator of the Celestia Discord Server.
Invite: https://discordapp.com/invite/WEWDcJh
If you don't have a Discord account, register here: https://discordapp.com/register
Have a blessed day.


Return to “Development”

Who is online

Users browsing this forum: 3 guests
Bots: Bing [Bot]