Changeset 4540 for trunk/psLib/src/astronomy/psTime.c
- Timestamp:
- Jul 12, 2005, 9:12:01 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psTime.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psTime.c
r4409 r4540 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 6-28 20:17:52$12 * @version $Revision: 1.66 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-07-12 19:12:00 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 887 887 } 888 888 889 structpsSphere* p_psTimeGetPoleCoords(const psTime* time)889 psSphere* p_psTimeGetPoleCoords(const psTime* time) 890 890 { 891 891 psU32 nTables = 3; … … 896 896 psF64 c = 0.0; 897 897 psF64 mjdPred = 0.0; 898 structpsSphere* output = NULL;898 psSphere* output = NULL; 899 899 psLookupStatusType xStatus = PS_LOOKUP_SUCCESS; 900 900 psLookupStatusType yStatus = PS_LOOKUP_SUCCESS; … … 908 908 PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1),NULL); 909 909 910 if(time->type != PS_TIME_TAI) 911 { 910 if(time->type != PS_TIME_TAI) { 912 911 psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_TYPE_INCORRECT, time->type); 913 912 return NULL; … … 922 921 923 922 // Value could not be found through table lookup and interpolation 924 if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) 925 { 923 if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) { 926 924 927 925 // Date too earlier for tables. Get default polar coodinate values from metadata, and issue warning. … … 942 940 y = tableMetadataItem->data.F64; 943 941 944 } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) 945 { 942 } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) { 946 943 947 944 /* Date too late for tables. Issue warning and use following formulae for predicting … … 1000 997 yp->data.F64[4]*sin(c); 1001 998 1002 } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) 1003 { 999 } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) { 1004 1000 psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_INTERPOLATION_FAILED); 1005 1001 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
