Page 1 of 1

Cor Hydrae

Posted: 02.11.2003, 22:09
by ajtribick
Using Celestia 1.3.1pre11, entering Cor Leonis into select, goto, or the text input after pressing enter will not work, even though on the enter text input the name is displayed.

I haven't looked at the source code, but I suspect this is because the name is processed which converts the constellation name Leonis into a three-letter abbreviation (LEO) so the program can match it against the star names.

I'm not sure how this could be resolved. Matching against names before doing this processing would mean the names would have to be processed twice, once before the conversion and once afterwards. Alternatively the conversion could be done within the matching routine if the name could be shortened, I'm not sure.

Similar problems with Cor Hydrae.

Also if you have a catalog star with a suffix e.g. HD 178911 B, this is not recognised. Again, not having looked at the source code, I would suspect this is because the program detects the HD prefix and then processes only the number following it, ignoring anything after the number. My evidence for this is that selecting an object "HD 28185SPLURGE" selects "HD 28185", so I suspect a call to a function like the Basic Abs() is being used.

Posted: 03.11.2003, 11:38
by ajtribick
BAH!!! I've been programming long enough to know that I meant Val() not Abs()

Posted: 16.11.2003, 18:42
by cs not logged in
If starnames.dat is modified to use three letter constellation abbreviations then the lookup works fine.