1.3.1pre11: Duplicate star

Report bugs, bug fixes and workarounds here.
Topic author
ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

1.3.1pre11: Duplicate star

Post #1by ajtribick » 17.10.2003, 20:38

After analysing the stars.dat file supplied with pre11 (as part of preparation for a star database merger), I found that the star HIP 118322 is entered twice.

To check that this was not a glitch of my code, I entered Celestia and did a Go To HIP 118322, and sure enough the lens flare was much brighter than it should be, indicating the presence of two stars in the same location.

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #2by JackHiggins » 17.10.2003, 21:53

Lens flare?!! :D
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #3by selden » 17.10.2003, 22:34

Jack,

Now, now, don't get all excited. I'm sure Chaos is just referring to the flare that Celestia has always shown around stars when you're close to them. e.g.
Image
Selden

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #4by JackHiggins » 17.10.2003, 23:04

selden wrote:Now, now, don't get all excited.

Phew... Thought we had a great new feature on our hands there for a second! :)
- Jack Higgins

Jack's Celestia Add-ons

And visit my Celestia Gallery too!

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #5by granthutchison » 17.10.2003, 23:44

If you check the Star Browser when you're next to this star (Eps Tuc), you also find that it appears twice there. I reported this a while back but dumbly assumed it was some error in the way the Celestia code handled stars.dat (since this star is the last one in the database), rather than a simple duplication in the dataset itself. :cry:
Just checking with Chris that the final-entry duplication isn't serving some arcane coding purpose, and then I'll commit a correction for this.

Grant

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #6by granthutchison » 18.10.2003, 00:22

JackHiggins wrote:Thought we had a great new feature on our hands there for a second! :)
Oh my goodness, no! I hope we never have lens flare in Celestia. Annoys the hell out of me.

Grant

Topic author
ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #7by ajtribick » 18.10.2003, 11:32

On investigation into the really huge 50MB star database, I find two duplicated star systems:

HIP 118322 (as in the star database supplied)
A star with the number 33672726 in its Hipparcos catalog field, I presume this is in the Tycho catalog, but TYC 3367-272-6 does not appear to exist.

Irritatingly I accidentally closed the window and it takes about ten minutes for my program to read in the data...

EDIT: The star is TYC 2726-3367-0 (thanks to Selden for pointing to the page about fictitious Hipparcos numbers for Tycho stars)

marc
Posts: 426
Joined: 13.03.2002
With us: 22 years 8 months
Location: Outback Australia

Post #8by marc » 18.10.2003, 15:58

I confirm that duplicate star, I use the hip number for the primary key in the mh database. here is the log file.

Code: Select all

Starting generation process
error dropping star table  Unknown table 'star'
Duplicate entry '118322' for key 1


chaos syndrome,
Have you had a try of my mysql addon for celestia?
If your willing to learn a bit of SQL it is very useful for inspecting stars.dat from within celestia.

here are the links.
http://celestiaproject.net/forum/viewtopic.php?t=2518
http://mostlyharmless.sourceforge.net/s ... index.html

The next version (0.1.4) of my mysql addon has the ability to output stars.dat and starnames.dat files. It makes it easy to add names to stars, make any modifications, and even merge catalogs. (all from within celestia )
Ive got a few more changes and a little tutorial on basic editing to write before i release it, but it should be out soon.

Topic author
ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #9by ajtribick » 18.10.2003, 21:52

marc wrote:chaos syndrome,
Have you had a try of my mysql addon for celestia?
If your willing to learn a bit of SQL it is very useful for inspecting stars.dat from within celestia.


Hmmm... looks interesting, but I can't face a 3MB download right now... dial-up connections are such fun :(

Anyway, in examining the really large extended stars database, it turns out that Epsilon Tucanae is represented twice, but has different spectral class fields, one is reported as B5V, the other as B9IV.

As far as I have been able to tell, Eps Tuc is a B9 star, so I think the B5V entry is going to get chopped out.

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #10by granthutchison » 18.10.2003, 22:00

I've commited the revised version of stars.dat, though it'll probably take a while to show up in the CVS tree.

Grant

Avatar
HB M
Posts: 132
Joined: 26.11.2002
With us: 22 years
Location: Eindhoven, The Netherlands

Double star

Post #11by HB » 06.11.2003, 10:37

About a year ago, the existance of this double star has been mentioned in this forum.
At that time I've build stars.dat myself with "Buildstardb.exe". Analysing the stars.dat file after building the datbase has sorted out that this double star is caused by this buildstardb.exe program.
I've been spitting and bugging around in the source code of this program and found the cause of this problem. I've sent this debugged sourcecode to Chris for uploading to CVS. (together with another program for analyzing this database)Unfortunatly this improved version of buildstardb is still not available for the users of Celestia.
So this double star has nothing to do with the version of Celestia.
HB

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Re: Double star

Post #12by granthutchison » 06.11.2003, 18:20

HB wrote:So this double star has nothing to do with the version of Celestia.
My understanding is that buildstarsdb was used as a one-off to create the original stars.dat, which has subsequently been edited in the various Celestia versions to correct various errors like the one above. Certainly it's possible to edit stars.dat and have the corrections carry over into subsequent releases of Celestia.

Grant


Return to “Bugs”