Changeset 4937 for trunk/psLib/src/astro/psTime.c
- Timestamp:
- Aug 31, 2005, 12:28:35 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r4898 r4937 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-08-3 0 01:14:10$12 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-31 22:28:35 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psAbort.h" 29 29 #include "psImage.h" 30 #include "psCoord.h"31 30 #include "psString.h" 32 31 #include "psMetadata.h" … … 899 898 } 900 899 901 structpsSphere* p_psTimeGetPoleCoords(const psTime* time)900 psSphere* p_psTimeGetPoleCoords(const psTime* time) 902 901 { 903 902 psU32 nTables = 3; … … 908 907 psF64 c = 0.0; 909 908 psF64 mjdPred = 0.0; 910 structpsSphere* output = NULL;909 psSphere* output = NULL; 911 910 psLookupStatusType xStatus = PS_LOOKUP_SUCCESS; 912 911 psLookupStatusType yStatus = PS_LOOKUP_SUCCESS; … … 920 919 PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1),NULL); 921 920 922 if(time->type != PS_TIME_TAI) 923 { 921 if(time->type != PS_TIME_TAI) { 924 922 psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_TYPE_INCORRECT, time->type); 925 923 return NULL; … … 934 932 935 933 // Value could not be found through table lookup and interpolation 936 if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) 937 { 934 if(xStatus==PS_LOOKUP_PAST_TOP && yStatus==PS_LOOKUP_PAST_TOP) { 938 935 939 936 // Date too earlier for tables. Get default polar coodinate values from metadata, and issue warning. … … 954 951 y = tableMetadataItem->data.F64; 955 952 956 } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) 957 { 953 } else if(xStatus==PS_LOOKUP_PAST_BOTTOM && yStatus==PS_LOOKUP_PAST_BOTTOM) { 958 954 959 955 /* Date too late for tables. Issue warning and use following formulae for predicting … … 1012 1008 yp->data.F64[4]*sin(c); 1013 1009 1014 } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) 1015 { 1010 } else if(xStatus!=PS_LOOKUP_SUCCESS || yStatus!=PS_LOOKUP_SUCCESS) { 1016 1011 psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_INTERPOLATION_FAILED); 1017 1012 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
