David Nicholls wrote:
> Chris Rowland wrote:
> 
>>There seems to be a problem with the astorb.dat file, the effect seems 
>>to be that the Ra of asteroids shown using astorb.dat is about 12 hours out.
>>
>>This seems to be because the formatting is wrong, possibly because the 
>>number of characters for the asteroid number changed from 5 characters 
>>to 6. This was mentioned as causing Y2K type problems but I've not heard 
>>of a solution.
>>
>>I fixed it for the first 20 records by manually deleting a space at the 
>>start of each line but don't fancy doing that for the rest, is there a 
>>better solution around?
>>
>>Chris
> 
> 
> The astorb.dat I just downloaded from lowell.edu has five spaces ahead 
> of the asteroid numer (eg:
> .....1 Ceres etc where '.' is a space.
> 
> Is your file different?

No, exactly the same, that's 6 characters for the number, CDC expects 5.

> If you have to change the number of spaces from 6 to 5, MS Word can do 
> it: use ^p...... (where'.' represents a space character) as the find 
> string and replace with
> ^p.....
> (You'll need to edit the first line by hand)
> 
> Or use a decent text editor that knows about Regular Expressions (eg 
> NoteTab).

I'm a software developer, I wrote a program :-)

It converts numbers in the range 100000 to 121234 to A0000 to C1234, 1 
hex digit for the first two characters, followed by a 4 digit decimal 
number.

Bizarrely CDC can index into these by specifying 6 digit decimal numbers.

Chris


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/1.XolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/skychart-discussion/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to