Brandon Craig Rhodes <[EMAIL PROTECTED]> writes: > In response to a private request from another developer, I went > ahead and generated a new star catalogue. I built it from exactly > the same source as it seems to have been built from before - the > YBS.edb file in the xephem distribution ...
For any of our posterity who may someday need to rebuild the file: I downloaded and installed PyEphem - only for its ability to read right ascension and declination in their standard colon-delimited format, not for its astronomical routines - and ran this script: ----- #!/usr/bin/python from ephem import hours, degrees for line in open('/usr/X11R6/share/Xephem/catalogs/YBS.edb'): if line[0] not in '#\n': name, type, ra, dec, mag, epoch = line.split(',') print '%s,%f,%f,%s' % (name, hours(ra), degrees(dec), mag) ----- in order to produce a file in the correct format for FlightGear. (Note that if XEphem installs somewhere different on your system, you might have to adjust the path in the open() call.) After running the result through "| sort -t, +3n" to put the brighest stars first (which FlightGear requires), the result was ready for use. I added a comment crediting the data source to the top of the actual file I submitted. -- Brandon Craig Rhodes [EMAIL PROTECTED] http://rhodesmill.org/brandon _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel