the SAS Hangar > Stainless' new Flight Simulator

Stars

(1/4) > >>

Stainless:
I have data for real stars, but it is incomplete

I think I have the position calculation correct, needs checking though, but I don't have any colour information.

The data I have is of the form...


--- Code: ---       String[] star_data = new string[]
       {
     "Sirius,1.767793,-0.291751,-1.46",
     "Canopus,1.675305,-0.919716,-0.72",
    "Arcturus,3.733528,0.334798,-0.04",
    "Cen Alpha1,3.837972,-1.061776,-0.01",
 
--- End code ---

So all I have is ...


--- Code: ---public class Star
    {
        public String Name;
        public double RightAscension;
        public double Declination;
        public double Magnitude;

    }

--- End code ---

What i need is colour.

Anyone available to help?


Pursuivant:
Could you work with just a spectral frequency?

If so, it's possible that the data found here would work:

https://www.eso.org/sci/facilities/paranal/decommissioned/isaac/tools/lib.html

I'm still hunting for a nice, convenient table for stellar frequencies for the stars visible to the naked eye from Earth.

Stainless:
It's an interesting find, but I don't see an easy way to go from that to a colour.

I suppose if I sampled the spectra in three bands and converted that to a colour it may be useful, but I am still missing a mapping from star -> spectra

Cheers for looking though

slibenli:
IIRC Celestia (https://celestia.space/) has colored stars.
Their data should come from publicly available sources.

Stainless:
Found the Yale Bright Star Catalog http://tdc-www.harvard.edu/catalogs/bsc5.html

The data is in a totally stupid format, but I have written a parser and it has all I need.



It has the magnitude, ascension and declination as well as a colour code which I have decoded.

There are some 9100 stars which is about right.




Navigation

[0] Message Index

[#] Next page

Go to full version