[Kstars-devel] Binary star data loading accomplished in Branch!

Akarsh Simha akarshsimha at gmail.com
Mon Jun 2 20:43:37 CEST 2008


Hi Jason,

> This sounds to me like you're having a problem with stars that have  
> Decliantion between -1.0 and 0.0 degrees.  For these stars, the  
> Declination in dd mm ss form would be expressed like this:
> 
> -00 15 45
> 
> But if you're not careful with the parsing, this will get translated  
> to +0.2625 degrees,
> instead of -0.2625.  The reason is, if you do int("-00"), that gets  
> turned into 0, which is not negative.  The solution is to keep the  
> negative sign separate from the ddmmss string and add it after you've  
> converted to a decimal value.

This was indeed the problem, but I was wondering why my logic turned
out to be wrong!

I'm fixing it and should commit it in a few minutes' time :)

Regards
Akarsh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20080603/64323401/attachment.pgp 


More information about the Kstars-devel mailing list