Changeset 4937 for trunk/psLib/src/astro
- Timestamp:
- Aug 31, 2005, 12:28:35 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.h
r4898 r4937 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-08-3 0 01:14:10$12 * @version $Revision: 1.43 $ $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 … … 24 24 #include "psList.h" 25 25 #include "psFunctions.h" 26 #include "psTime.h"26 //#include "psTime.h" 27 27 28 28 /// @addtogroup CoordinateTransform … … 52 52 * 53 53 */ 54 typedef struct psSphere54 typedef struct 55 55 { 56 56 double r; ///< RA -
trunk/psLib/src/astro/psSphereOps.h
r4898 r4937 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-08-3 0 01:14:10$9 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-31 22:28:35 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 19 19 /// @{ 20 20 21 #include "psCoord.h" 21 //#include "psCoord.h" 22 #include "psTime.h" 22 23 23 24 /** Spherical Rotation Definition -
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; -
trunk/psLib/src/astro/psTime.h
r4920 r4937 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-08-31 02:07:09$13 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-31 22:28:35 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include "psType.h" 27 27 #include "psImage.h" 28 #include "psCoord.h" 28 29 29 30 struct psSphere; … … 173 174 * @return psSphere*: Spherical coordinates of Earth's polar axias. 174 175 */ 175 structpsSphere* p_psTimeGetPoleCoords(176 const psTime *time ///< psTime determine polar orientation.177 );176 psSphere* p_psTimeGetPoleCoords( 177 const psTime *time ///< psTime determine polar orientation. 178 ); 178 179 179 180 /** Calculate the number of leapseconds between two times.
Note:
See TracChangeset
for help on using the changeset viewer.
