[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Fri Jul 11 19:15:45 CEST 2008


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 );




More information about the Kstars-devel mailing list