From kstars-devel Fri Jul 11 17:15:45 2008 From: Jason Harris Date: Fri, 11 Jul 2008 17:15:45 +0000 To: kstars-devel Subject: Re: [Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars Message-Id: <51020E08-9CFD-4F97-96C7-647E10BB3105 () 30doradus ! org> X-MARC-Message: https://marc.info/?l=kstars-devel&m=121579658618811 Hi Akarsh, On Jul 11, 2008, at 10:10 AM, Akarsh Simha wrote: > + KSNumbers num( 2000.0 * 365.0 ); // Some estimate, doesn't > matter. > + long double jy; > + for( jy = 2000.0; jy <= 12000.0; jy += 500.0 ) { > + num.updateValues( jy * 365.238 ); It's still not right because JD=1 does not correspond to Jan 1, year 1. So JD=2000*365 is not the year 2000. You can use J2000, which is #defined to the JD of 1/1/2000. KSNumbers( J2000 ); long double jy; //jy is years since 2000 for ( jy=0.0; jy<10000.0; jy += 500.0 ) { num.updateValues( J2000 + jy*365.238 ); _______________________________________________ Kstars-devel mailing list Kstars-devel@kde.org https://mail.kde.org/mailman/listinfo/kstars-devel