[Kstars-devel] kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Sun Jul 25 05:15:31 CEST 2004
CVS commit by harris:
Fixing KStarsDateTime::epoch().
We had: epoch = year + double( dayOfYear / daysInYear )
changed to: epoch = year + double( dayOfYear )/double( daysInYear )
CCMAIL: kstars-devel at kde.org
M +1 -1 kstarsdatetime.h 1.3
M +4 -0 skyobject.cpp 1.44
--- kdeedu/kstars/kstars/kstarsdatetime.h #1.2:1.3
@@ -82,5 +82,5 @@ public:
double epoch() const { return ( double( date().year() )
- + double( date().dayOfYear()/date().daysInYear() ) ); }
+ + double( date().dayOfYear() )/double( date().daysInYear() ) ); }
void setFromEpoch( double e );
private:
--- kdeedu/kstars/kstars/skyobject.cpp #1.43:1.44
@@ -202,4 +202,8 @@ QTime SkyObject::transitTimeUT( const KS
KStarsDateTime dt0( dt.date(), dt.time().addSecs( dSec ) );
+ //DEBUG
+ kdDebug() << "Hour Angle: " << HourAngle.toHMSString() << endl;
+ kdDebug() << "transit time (guess): " << dt0.toString() << endl;
+
//recompute object's position at UT0 and then find
//transit time of this refined position
More information about the Kstars-devel
mailing list