Accessing HD and SAO numbers through scripts

All about writing scripts for Celestia in Lua and the .cel system
Topic author
ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Accessing HD and SAO numbers through scripts

Post #1by ajtribick » 19.01.2008, 14:45

Is it possible to access HD and SAO numbers in a celx script? If not, this feature should be added! (Please!)

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

Post #2by selden » 19.01.2008, 16:26

What do you mean by "access"?
Did you try something that doesn't work?
If so, exactly what?

Celestia uses the Hipparcos catalog as its primary souce of star positions plus several other smaller catalogs of stars and binaries with known distances.

Celestia includes cross-reference catalogs which associate their SAO and HD catalog numbers with the stars it knows about. Those catalog names can be used in Lua scripts. They are only a small subset of the full SAO and HD catalogs, though.
Selden

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Accessing HD and SAO numbers through scripts

Post #3by Vincent » 19.01.2008, 16:27

ajtribick wrote:Is it possible to access HD and SAO numbers in a celx script? If not, this feature should be added! (Please!)

You can get HIP number using star:getinfo().catalogNumber but AFAIK, HD and SAO numbers are currently not available through celx scripting.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #4by chris » 19.01.2008, 20:05

Andrew, you should file another feature request on the SourceForge tracker for this. It should be possible to get other catalog numbers via script.

--Chris


Return to “Scripting”