How Can I Find Correction Factors for Tropical Years in Historical Data?

AI Thread Summary
The discussion revolves around finding correction factors for tropical years in historical data, specifically using a derived C code that calculates tropical years based on Julian dates. The constant T in the code is assumed to be a correction factor for the epoch based in 2000, linked to the Julian date of January 1, 2000. Participants seek guidance on where to find similar T values for earlier epochs and inquire about the algorithm's applicability over time. There is a mention of a resource from Lyle Huber that may provide additional context. Overall, the conversation highlights the need for historical correction factors in astronomical calculations.
jim mcnamara
Mentor
Messages
4,789
Reaction score
3,852
Using this:
http://scienceworld.wolfram.com/astronomy/TropicalYear.html
I derived this unix C code, which duplicates expected outputs. Note the constant T which is a correction factor for the epoch based in 2000, or so I assume because 2451545 is Jan 1 2000. And I have about epochs in calculations.

Questions:

1. I'm not an astronomer, where do I find similar T values for past times?

2. How far back in time does the algorithm below "work"? From: Lyle Huber at nmsu:
http://astro.nmsu.edu/~lhuber/leaphist.html

Code:
#include <stdlib.h>
#include <float.h>
#include <stdio.h>

double tropical_year(const double JD)
{
	const double T= (JD - 2451545.)/ 36526.;  /* use epoch 2000 */
	double T2=T * T;
	double T3=T2 * T;
	double result=365.2421896698 -(.00000615359 *T)
	                             -(7.29e-10 * T2)
	                             +(2.64e-10 *T3);
	return result;
}

int process(const double JD)
{
	int retval=0;
	
	if(JD > DBL_EPSILON)
		printf("JD %.2f  Tropical year:%.6f\n", JD, tropical_year(JD));
	else
	{
		printf("JD %f  Tropical year:undefined\n", JD);
	    retval=1;	
	}	
	return retval;
}

int main(int argc, char **argv)
{
	int retval=0;
	double JD=0.;
	
	if(argc>1) /* read arg list */
	{
		int i=0;
		for(i=1; i < argc; i++)
		{
			JD=atof(argv[i]);
			retval!=process(JD);
		}		
	}
	else /* read from stdin */
	{
		char tmp[128]={0x0};
		while(fgets(tmp, sizeof(tmp), stdin)!=NULL)
		{
			JD=atof(tmp);
			retval!=process(JD);
		}
	}
	return 0;
}
 
Last edited by a moderator:
Astronomy news on Phys.org
Not really.
 
  • Like
Likes Greg Bernhardt
Publication: Redox-driven mineral and organic associations in Jezero Crater, Mars Article: NASA Says Mars Rover Discovered Potential Biosignature Last Year Press conference The ~100 authors don't find a good way this could have formed without life, but also can't rule it out. Now that they have shared their findings with the larger community someone else might find an explanation - or maybe it was actually made by life.
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...

Similar threads

Back
Top