Element accuracy management


Functions

SCT_RET sct_set_accuracy (sct_time_ptr pElem, SCT_ACCURACY accuracy)
SCT_ACCURACY sct_get_accuracy (const sct_time_ptr pElem)
SCT_ACCURACY sct_get_accuracy_from_jd (const double jd)
SCT_ACCURACY sct_get_accuracy_from_secs (const double secs)

Detailed Description

This group of functions contain the whole list of methods which can be used to manage the accuracy of epoch and delta elements

Function Documentation

SCT_ACCURACY sct_get_accuracy ( const sct_time_ptr  pElem  ) 

Function to get the accuracy of a given element

Parameters:
pElem (OUT) Pointer to the sct_time element. This pointer can be the same as the one in pSource.
Returns:
Accuracy level of the element

Definition at line 32 of file sct_accuracy.c.

References _sct_time_base::accuracy.

SCT_ACCURACY sct_get_accuracy_from_jd ( const double  jd  ) 

Function to automatically get the accuracy of a given epoch in JD, MJD or MJD2000 format

Parameters:
jd (IN) Epoch value
Returns:
Accuracy level of the element

Definition at line 42 of file sct_accuracy.c.

References _sct_get_exponent_from_double(), SCT_ACCURACY_DAYS, SCT_ACCURACY_FEMTOSECS, and SCT_RET_OK.

Referenced by main(), sct_set_jd(), sct_set_mjd(), and sct_set_mjd2000().

Here is the call graph for this function:

SCT_ACCURACY sct_get_accuracy_from_secs ( const double  secs  ) 

Function to automatically get the accuracy of a given number of secs

Parameters:
secs (IN) Number of seconds
Returns:
Accuracy level of the element

Definition at line 102 of file sct_accuracy.c.

References _sct_get_exponent_from_double(), SCT_ACCURACY_DAYS, SCT_ACCURACY_FEMTOSECS, and SCT_RET_OK.

Referenced by main(), and sct_set_delta_secs().

Here is the call graph for this function:

SCT_RET sct_set_accuracy ( sct_time_ptr  pElem,
SCT_ACCURACY  accuracy 
)

Function to explicitly set the accuracy of a given element

Parameters:
pElem (OUT) Pointer to the sct_time element.
accuracy (IN) Accuracy level to be set in the element
Returns:
SCT_RET return value. If SCT_RET_OK is not returned, the element might not be correctly set.

Definition at line 25 of file sct_accuracy.c.

References _sct_time_base::accuracy, and SCT_RET_OK.

Referenced by main().


Generated on Sun May 20 15:32:55 2007 for scitime by  doxygen 1.5.1