Source Code to C header file ipfindex.h

This file is associated with the C program ipftoascii.c, which takes raw HIC data in IPF format and outputs readable rate and event data in an ASCII format. In this header file, two structures used in ipftoascii.c, time and sclk, are defined.
/*	Raw data for ert, scet, and rct in the IPFs consiststs of	*
 *	a two-byte integer (variable name like doy58) with number 	*
 *	of days since 1958 Jan 1 (typical value > 38*365 = 13870 and a 	*
 *	four-byte integer (variable name like msod) with the number of 	*
 *	milliseconds of the current day (max value 86.4e6 ~ 27 bits)	*
 *	Raw data for spacecraft clock consists of rim counter and	*
 *	mod 91 count within rim, plus less significant variables	*
 *	which should never be of interest.				*/



struct time	{	   /* time variables for GMT style times	*/
	double	fldoy;		/*  day of current year			*/
	double	flmsod;		/*  second of current day		*/
	double	flsod;		/*  second of current day		*/
        double	flsom;		/*  second of current minute		*/
        long	inmsod;		/*  millisecond of day			*/
        long	insod;		/*  second of day			*/
	int	yr;		/*  year - 1900, between 89 and 100	*/
	int	inhod;		/*  hour of current day			*/
	int	inmoh, insom;	/*  minute of hour, second of minute	*/
	int	doy58, doy;	/*  day of year -- 1958 or current	*/
		};
struct sclk	{	   /* clock variables for s/c clock		*/
	long	rim;		/* 24-bit rim counter			*/
	long	sk;		/* total elapsed minor frames		*/
	int	m91;		/* minor frames of current rim		*/
			   /* 91 minor frames per rim			*
			    * 2/3 seconds per minor frame		*/
		};


Last Revised: Tuesday 8 April, 1997

Back to Galileo-HIC Homepage

Back to Homepage