Changeset 1393
- Timestamp:
- Aug 5, 2004, 9:38:52 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 deleted
- 30 edited
-
psLib.kdevelop (modified) (3 diffs)
-
psLib.kdevses (modified) (1 diff)
-
src/Doxyfile (modified) (3 diffs)
-
src/astro/psCoord.c (modified) (3 diffs)
-
src/astro/psCoord.h (modified) (7 diffs)
-
src/astro/psTime.c (modified) (2 diffs)
-
src/astro/psTime.h (modified) (2 diffs)
-
src/astronomy/psAstrometry.c (modified) (2 diffs)
-
src/astronomy/psCoord.c (modified) (3 diffs)
-
src/astronomy/psCoord.h (modified) (7 diffs)
-
src/astronomy/psMetadata.c (modified) (2 diffs)
-
src/astronomy/psMetadata.h (modified) (2 diffs)
-
src/astronomy/psTime.c (modified) (2 diffs)
-
src/astronomy/psTime.h (modified) (2 diffs)
-
src/collections/psCompare.c (modified) (2 diffs)
-
src/collections/psMetadata.c (modified) (2 diffs)
-
src/collections/psMetadata.h (modified) (2 diffs)
-
src/dataManip/psStats.c (modified) (1 diff)
-
src/image/psImageStats.c (modified) (1 diff)
-
src/imageops/psImageStats.c (modified) (1 diff)
-
src/math/psCompare.c (modified) (2 diffs)
-
src/math/psStats.c (modified) (1 diff)
-
src/sys/psErrorCodes.h (deleted)
-
src/sys/psLogMsg.c (modified) (2 diffs)
-
src/sys/psTrace.c (modified) (7 diffs)
-
src/sys/psTrace.h (modified) (2 diffs)
-
src/sysUtils/psErrorCodes.h (deleted)
-
src/sysUtils/psLogMsg.c (modified) (2 diffs)
-
src/sysUtils/psTrace.c (modified) (7 diffs)
-
src/sysUtils/psTrace.h (modified) (2 diffs)
-
src/types/psMetadata.c (modified) (2 diffs)
-
src/types/psMetadata.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/psLib.kdevelop
r1368 r1393 7 7 <projectmanagement>KDevCustomProject</projectmanagement> 8 8 <primarylanguage>C</primarylanguage> 9 <ignoreparts/> 9 <ignoreparts> 10 <part>KDevClassView</part> 11 <part>KDevClearCase</part> 12 <part>KDevFileGroups</part> 13 <part>KDevPerforce</part> 14 </ignoreparts> 10 15 <projectdirectory>.</projectdirectory> 11 16 <absoluteprojectpath>false</absoluteprojectpath> … … 15 20 <kdevcustomproject> 16 21 <run> 17 <mainprogram >psLib</mainprogram>22 <mainprogram/> 18 23 <directoryradio>executable</directoryradio> 19 24 <customdirectory>/</customdirectory> … … 105 110 <toc>KDE Libraries (Doxygen)</toc> 106 111 </ignoredoxygen> 112 <projectdoc> 113 <userdocDir>html/</userdocDir> 114 <apidocDir>html/</apidocDir> 115 </projectdoc> 116 <ignorekdocs/> 117 <ignoredevhelp/> 107 118 </kdevdoctreeview> 108 119 <kdevfilecreate> -
trunk/psLib/psLib.kdevses
r1383 r1393 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments="0" /> 4 <DocsAndViews NumberOfDocuments="3" > 5 <Doc0 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psPhotometry.h" > 6 <View0 line="0" Type="???" > 7 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="700" Left="1" MinMaxMode="0" /> 8 </View0> 9 </Doc0> 10 <Doc1 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.h" > 11 <View0 line="197" Type="???" > 12 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" /> 13 </View0> 14 </Doc1> 15 <Doc2 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.c" > 16 <View0 line="26" Type="???" > 17 <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" /> 18 </View0> 19 </Doc2> 20 </DocsAndViews> 5 21 <pluginList> 6 22 <kdevbookmarks> -
trunk/psLib/src/Doxyfile
r1374 r1393 24 24 # if some version control system is used. 25 25 26 PROJECT_NUMBER = 26 PROJECT_NUMBER = 2.0 27 27 28 28 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) … … 377 377 # *.h++ *.idl *.odl *.cs *.php *.php3 *.inc 378 378 379 FILE_PATTERNS = *. c *.h *.dox379 FILE_PATTERNS = *.h *.dox 380 380 381 381 # The RECURSIVE tag can be used to turn specify whether or not subdirectories … … 965 965 # have no effect if this option is set to NO (the default) 966 966 967 HAVE_DOT = NO967 HAVE_DOT = YES 968 968 969 969 # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -
trunk/psLib/src/astro/psCoord.c
r1385 r1393 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:37:39$12 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 #include <float.h> 28 28 29 static float cot( float x ); 30 static float arg( float x, float y ); 31 29 32 // This is the only function in this file which I understand. 30 33 psPlane *psPlaneTransformApply( psPlane *out, … … 88 91 89 92 return ( tmp ); 90 }91 92 // I understand this one too.93 void p_psSphereTransformFree( psSphereTransform *trans )94 {95 psFree( trans );96 93 } 97 94 -
trunk/psLib/src/astro/psCoord.h
r1385 r1393 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:37:39$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 /// @{ 30 30 31 /** Euclidiean Coordinate System. 32 * 33 * Both detector and sky positions will be used extensively in the IPP. One 34 * coordinate system to be used is linear coordinates which conform to 35 * Euclidean geometry. 36 * 37 */ 31 38 typedef struct 32 39 { … … 38 45 psPlane; 39 46 47 /** Angular Coordinate System 48 * 49 * Both detector and sky positions will be used extensively in the IPP. One 50 * coordinate system to be used is angular coordinates for which additional 51 * care must often be taken in comparison to a euclidiean coordinate system. 52 * 53 */ 40 54 typedef struct 41 55 { … … 47 61 psSphere; 48 62 49 typedef struct 50 { 51 psDPolynomial2D *x; 52 psDPolynomial2D *y; 63 /** 2D Polynomial Transform 64 * 65 * A transform between coordinate systems that consists simply of two 2D 66 * polynomials to transform both components - the output coordinates depend 67 * only on the input coordinates and no other quantities of objects at those 68 * coordinates. 69 * 70 */ 71 typedef struct 72 { 73 psDPolynomial2D *x; ///< 2D polynomial transform of X coordinates 74 psDPolynomial2D *y; ///< 2D polynomial transform of Y coordinates 53 75 } 54 76 psPlaneTransform; 55 77 56 typedef struct 57 { 58 psDPolynomial4D *x; 59 psDPolynomial4D *y; 78 /** 4D Polynomial Transform 79 * 80 * A transform between coordinate systems that consists of two 4D polynomials 81 * in which the output coordinates are also specified to be a function of the 82 * magnitude and color of the object with the given coordinates. This type of 83 * coordinate transformation is necessary to represent the (color-dependent) 84 * optical distortions caused by the atmosphere and camera optics, and the 85 * possibly effects of charge transfer inefficiency. 86 * 87 * The lowest two terms are the x and y axis of the target system. The higher 88 * two terms may represent magnitude and color terms. 89 */ 90 typedef struct 91 { 92 psDPolynomial4D *x; ///< 4D polynomial transform of X coordinates 93 psDPolynomial4D *y; ///< 4D polynomial transform of Y coordinates 60 94 } 61 95 psPlaneDistort; 62 96 97 /** Spherical Transform Definition 98 * 99 * We need to be able to convert between ICRS, Galactic and Ecliptic 100 * coordinates, and potentially between arbitrary spherical coordinate 101 * systems. All of these basic spherical transformations represent rotations 102 * of the spherical coordinate reference. We specify a general 103 * transformation function which takes a structure, psSphereTransform, 104 * defining the transformation between two spherical coordinate systems 105 * 106 */ 63 107 typedef struct 64 108 { … … 70 114 psSphereTransform; 71 115 116 /** Projection type for projection/deprojection 117 * 118 * @seealso psProject, psDeproject 119 * 120 */ 72 121 typedef enum { 73 122 PS_PROJ_TAN, ///< Tangent projection … … 81 130 } psProjectionType; 82 131 132 /** Parameter set for projection/deprojection 133 * 134 * @seealso psProject, psDeproject 135 * 136 */ 83 137 typedef struct 84 138 { … … 91 145 psProjection; 92 146 147 /** Mode for Offset calculation between two sky positions 148 * 149 * @seealso psSphereGetOffset, psSphereSetOffset 150 * 151 */ 93 152 typedef enum { 94 PS_SPHERICAL, 95 PS_LINEAR 153 PS_SPHERICAL, ///< offset corresponds to an angular offset 154 PS_LINEAR ///< offset corresponds to a linear offset 96 155 } psSphereOffsetMode; 97 156 157 /** The units of the offset 158 * 159 * @seealso psSphereGetOffset, psSphereSetOffset 160 * 161 */ 98 162 typedef enum { 99 PS_ARCSEC, 100 PS_ARCMIN, 101 PS_DEGREE, 102 PS_RADIAN 163 PS_ARCSEC, ///< Arcseconds 164 PS_ARCMIN, ///< Arcminutes 165 PS_DEGREE, ///< Degrees 166 PS_RADIAN ///< Radians 103 167 } psSphereOffsetUnit; 104 168 105 psPlane *psPlaneTransformApply( psPlane *out, 106 const psPlaneTransform *transform, 107 const psPlane *coords ); 108 109 psPlane *psPlaneDistortApply( psPlane *out, 110 const psPlaneDistort *transform, 111 const psPlane *coords, 112 float term3, 113 float term4 ); 114 115 116 // New function prototype. 117 psSphereTransform *psSphereTransformAlloc( double NPlat, 118 double Xo, 119 double xo ); 120 121 void p_psSphereTransformFree( psSphereTransform *trans ); 122 123 psSphere *psSphereTransformApply( psSphere *out, 124 const psSphereTransform *transform, 125 const psSphere *coord ); 126 127 psSphereTransform *psSphereTransformICRStoEcliptic( psTime time ); 128 psSphereTransform *psSphereTransformEcliptictoICRS( psTime time ); 169 /** Applies the psPlaneTransform transform to a specified coordinate 170 * 171 */ 172 psPlane *psPlaneTransformApply( 173 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 174 const psPlaneTransform *transform, ///< the transform to apply 175 const psPlane *coords ///< the coordinate to apply the transform above. 176 ); 177 178 /** Applies the psPlaneDistort transform to a specified coordinate 179 * 180 */ 181 psPlane *psPlaneDistortApply( 182 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 183 const psPlaneDistort *transform, ///< the transform to apply 184 const psPlane *coords, ///< the coordinate to apply the transform above. 185 float term3, ///< third term -- maybe magnitude 186 float term4 ///< forth term -- maybe color 187 ); 188 189 /** Allocator for psSphereTransform 190 * 191 */ 192 psSphereTransform *psSphereTransformAlloc( 193 double NPlat, ///< north pole latitude 194 double Xo, ///< First PT of Ares lon 195 double xo ///< First PT of Ares equiv lon 196 ); 197 198 199 /** Applies the psSphereTransform transform for a specified coordinate 200 * 201 */ 202 psSphere *psSphereTransformApply( 203 psSphere *out, ///< a psSphere to recycle. If NULL, a new one is generated. 204 const psSphereTransform *transform,///< the transform to apply 205 const psSphere *coord ///< the coordinate to apply the transform above.x 206 ); 207 208 psSphereTransform *psSphereTransformICRStoEcliptic( 209 psTime time 210 ); 211 212 psSphereTransform *psSphereTransformEcliptictoICRS( 213 psTime time 214 ); 215 129 216 psSphereTransform *psSphereTransformICRStoGalatic( void ); 217 130 218 psSphereTransform *psSphereTransformGalatictoICRS( void ); 131 219 132 psPlane *psProject( const psSphere *coord, 133 const psProjection *projection ); 134 135 psSphere *psDeproject( const psPlane *coord, 136 const psProjection *projection ); 137 138 psSphere *psSphereGetOffset( const psSphere *restrict position1, 139 const psSphere *restrict position2, 140 psSphereOffsetMode mode, 141 psSphereOffsetUnit unit ); 142 143 psSphere *psSphereSetOffset( const psSphere *restrict position, 144 const psSphere *restrict offset, 145 psSphereOffsetMode mode, 146 psSphereOffsetUnit unit ); 220 psPlane *psProject( 221 const psSphere *coord, 222 const psProjection *projection 223 ); 224 225 psSphere *psDeproject( 226 const psPlane *coord, 227 const psProjection *projection 228 ); 229 230 psSphere *psSphereGetOffset( 231 const psSphere *restrict position1, 232 const psSphere *restrict position2, 233 psSphereOffsetMode mode, 234 psSphereOffsetUnit unit 235 ); 236 237 psSphere *psSphereSetOffset( 238 const psSphere *restrict position, 239 const psSphere *restrict offset, 240 psSphereOffsetMode mode, 241 psSphereOffsetUnit unit 242 ); 147 243 148 244 /// @} -
trunk/psLib/src/astro/psTime.c
r1385 r1393 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 4 23:37:39$14 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-05 19:38:51 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 34 34 /* DEFINE STATEMENTS */ 35 35 /******************************************************************************/ 36 37 /** Number of available leapsecond updates */ 38 #define NUM_LEAPSECOND_UPDATES 23 39 40 /** Maximum length of time string */ 41 #define MAX_TIME_STRING_LENGTH 256 42 43 /** Seconds per minute */ 44 #define SEC_PER_MINUTE 60.0 45 46 /** Seconds per hour */ 47 #define SEC_PER_HOUR (60.0*SEC_PER_MINUTE) 48 49 /** Seconds per day */ 50 #define SEC_PER_DAY (24.0*SEC_PER_HOUR) 51 52 /** Seconds per year */ 53 #define SEC_PER_YEAR (365.0*SEC_PER_DAY) 54 55 /** Microseconds per day */ 56 #define USEC_PER_DAY 86400000000.0 36 57 37 58 /** Preprocessor macro to generate error for negative time in struct */ -
trunk/psLib/src/astro/psTime.h
r1385 r1393 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 4 23:37:39$14 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-05 19:38:51 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 /// @addtogroup Time 30 30 /// @{ 31 32 /******************************************************************************/33 /* DEFINE STATEMENTS */34 /******************************************************************************/35 36 /** Number of available leapsecond updates */37 #define NUM_LEAPSECOND_UPDATES 2338 39 /** Maximum length of time string */40 #define MAX_TIME_STRING_LENGTH 25641 42 /** Seconds per minute */43 #define SEC_PER_MINUTE 60.044 45 /** Seconds per hour */46 #define SEC_PER_HOUR (60.0*SEC_PER_MINUTE)47 48 /** Seconds per day */49 #define SEC_PER_DAY (24.0*SEC_PER_HOUR)50 51 /** Seconds per year */52 #define SEC_PER_YEAR (365.0*SEC_PER_DAY)53 54 /** Microseconds per day */55 #define USEC_PER_DAY 86400000000.056 31 57 32 /******************************************************************************/ -
trunk/psLib/src/astronomy/psAstrometry.c
r1385 r1393 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-08-0 4 23:37:39$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-08-05 19:38:51 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 20 20 #include "psMemory.h" 21 21 22 void grommitFree( psGrommit *grommit );23 int checkValidChipCoords( double x, double y, psChip *tmpChip );24 int checkValidImageCoords( double x, double y, psImage *tmpImage );22 static void grommitFree( psGrommit *grommit ); 23 static int checkValidChipCoords( double x, double y, psChip *tmpChip ); 24 static int checkValidImageCoords( double x, double y, psImage *tmpImage ); 25 25 26 26 psExposure* psExposureAlloc( double ra, double dec, double hourAngle, -
trunk/psLib/src/astronomy/psCoord.c
r1385 r1393 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:37:39$12 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 #include <float.h> 28 28 29 static float cot( float x ); 30 static float arg( float x, float y ); 31 29 32 // This is the only function in this file which I understand. 30 33 psPlane *psPlaneTransformApply( psPlane *out, … … 88 91 89 92 return ( tmp ); 90 }91 92 // I understand this one too.93 void p_psSphereTransformFree( psSphereTransform *trans )94 {95 psFree( trans );96 93 } 97 94 -
trunk/psLib/src/astronomy/psCoord.h
r1385 r1393 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:37:39$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 /// @{ 30 30 31 /** Euclidiean Coordinate System. 32 * 33 * Both detector and sky positions will be used extensively in the IPP. One 34 * coordinate system to be used is linear coordinates which conform to 35 * Euclidean geometry. 36 * 37 */ 31 38 typedef struct 32 39 { … … 38 45 psPlane; 39 46 47 /** Angular Coordinate System 48 * 49 * Both detector and sky positions will be used extensively in the IPP. One 50 * coordinate system to be used is angular coordinates for which additional 51 * care must often be taken in comparison to a euclidiean coordinate system. 52 * 53 */ 40 54 typedef struct 41 55 { … … 47 61 psSphere; 48 62 49 typedef struct 50 { 51 psDPolynomial2D *x; 52 psDPolynomial2D *y; 63 /** 2D Polynomial Transform 64 * 65 * A transform between coordinate systems that consists simply of two 2D 66 * polynomials to transform both components - the output coordinates depend 67 * only on the input coordinates and no other quantities of objects at those 68 * coordinates. 69 * 70 */ 71 typedef struct 72 { 73 psDPolynomial2D *x; ///< 2D polynomial transform of X coordinates 74 psDPolynomial2D *y; ///< 2D polynomial transform of Y coordinates 53 75 } 54 76 psPlaneTransform; 55 77 56 typedef struct 57 { 58 psDPolynomial4D *x; 59 psDPolynomial4D *y; 78 /** 4D Polynomial Transform 79 * 80 * A transform between coordinate systems that consists of two 4D polynomials 81 * in which the output coordinates are also specified to be a function of the 82 * magnitude and color of the object with the given coordinates. This type of 83 * coordinate transformation is necessary to represent the (color-dependent) 84 * optical distortions caused by the atmosphere and camera optics, and the 85 * possibly effects of charge transfer inefficiency. 86 * 87 * The lowest two terms are the x and y axis of the target system. The higher 88 * two terms may represent magnitude and color terms. 89 */ 90 typedef struct 91 { 92 psDPolynomial4D *x; ///< 4D polynomial transform of X coordinates 93 psDPolynomial4D *y; ///< 4D polynomial transform of Y coordinates 60 94 } 61 95 psPlaneDistort; 62 96 97 /** Spherical Transform Definition 98 * 99 * We need to be able to convert between ICRS, Galactic and Ecliptic 100 * coordinates, and potentially between arbitrary spherical coordinate 101 * systems. All of these basic spherical transformations represent rotations 102 * of the spherical coordinate reference. We specify a general 103 * transformation function which takes a structure, psSphereTransform, 104 * defining the transformation between two spherical coordinate systems 105 * 106 */ 63 107 typedef struct 64 108 { … … 70 114 psSphereTransform; 71 115 116 /** Projection type for projection/deprojection 117 * 118 * @seealso psProject, psDeproject 119 * 120 */ 72 121 typedef enum { 73 122 PS_PROJ_TAN, ///< Tangent projection … … 81 130 } psProjectionType; 82 131 132 /** Parameter set for projection/deprojection 133 * 134 * @seealso psProject, psDeproject 135 * 136 */ 83 137 typedef struct 84 138 { … … 91 145 psProjection; 92 146 147 /** Mode for Offset calculation between two sky positions 148 * 149 * @seealso psSphereGetOffset, psSphereSetOffset 150 * 151 */ 93 152 typedef enum { 94 PS_SPHERICAL, 95 PS_LINEAR 153 PS_SPHERICAL, ///< offset corresponds to an angular offset 154 PS_LINEAR ///< offset corresponds to a linear offset 96 155 } psSphereOffsetMode; 97 156 157 /** The units of the offset 158 * 159 * @seealso psSphereGetOffset, psSphereSetOffset 160 * 161 */ 98 162 typedef enum { 99 PS_ARCSEC, 100 PS_ARCMIN, 101 PS_DEGREE, 102 PS_RADIAN 163 PS_ARCSEC, ///< Arcseconds 164 PS_ARCMIN, ///< Arcminutes 165 PS_DEGREE, ///< Degrees 166 PS_RADIAN ///< Radians 103 167 } psSphereOffsetUnit; 104 168 105 psPlane *psPlaneTransformApply( psPlane *out, 106 const psPlaneTransform *transform, 107 const psPlane *coords ); 108 109 psPlane *psPlaneDistortApply( psPlane *out, 110 const psPlaneDistort *transform, 111 const psPlane *coords, 112 float term3, 113 float term4 ); 114 115 116 // New function prototype. 117 psSphereTransform *psSphereTransformAlloc( double NPlat, 118 double Xo, 119 double xo ); 120 121 void p_psSphereTransformFree( psSphereTransform *trans ); 122 123 psSphere *psSphereTransformApply( psSphere *out, 124 const psSphereTransform *transform, 125 const psSphere *coord ); 126 127 psSphereTransform *psSphereTransformICRStoEcliptic( psTime time ); 128 psSphereTransform *psSphereTransformEcliptictoICRS( psTime time ); 169 /** Applies the psPlaneTransform transform to a specified coordinate 170 * 171 */ 172 psPlane *psPlaneTransformApply( 173 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 174 const psPlaneTransform *transform, ///< the transform to apply 175 const psPlane *coords ///< the coordinate to apply the transform above. 176 ); 177 178 /** Applies the psPlaneDistort transform to a specified coordinate 179 * 180 */ 181 psPlane *psPlaneDistortApply( 182 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 183 const psPlaneDistort *transform, ///< the transform to apply 184 const psPlane *coords, ///< the coordinate to apply the transform above. 185 float term3, ///< third term -- maybe magnitude 186 float term4 ///< forth term -- maybe color 187 ); 188 189 /** Allocator for psSphereTransform 190 * 191 */ 192 psSphereTransform *psSphereTransformAlloc( 193 double NPlat, ///< north pole latitude 194 double Xo, ///< First PT of Ares lon 195 double xo ///< First PT of Ares equiv lon 196 ); 197 198 199 /** Applies the psSphereTransform transform for a specified coordinate 200 * 201 */ 202 psSphere *psSphereTransformApply( 203 psSphere *out, ///< a psSphere to recycle. If NULL, a new one is generated. 204 const psSphereTransform *transform,///< the transform to apply 205 const psSphere *coord ///< the coordinate to apply the transform above.x 206 ); 207 208 psSphereTransform *psSphereTransformICRStoEcliptic( 209 psTime time 210 ); 211 212 psSphereTransform *psSphereTransformEcliptictoICRS( 213 psTime time 214 ); 215 129 216 psSphereTransform *psSphereTransformICRStoGalatic( void ); 217 130 218 psSphereTransform *psSphereTransformGalatictoICRS( void ); 131 219 132 psPlane *psProject( const psSphere *coord, 133 const psProjection *projection ); 134 135 psSphere *psDeproject( const psPlane *coord, 136 const psProjection *projection ); 137 138 psSphere *psSphereGetOffset( const psSphere *restrict position1, 139 const psSphere *restrict position2, 140 psSphereOffsetMode mode, 141 psSphereOffsetUnit unit ); 142 143 psSphere *psSphereSetOffset( const psSphere *restrict position, 144 const psSphere *restrict offset, 145 psSphereOffsetMode mode, 146 psSphereOffsetUnit unit ); 220 psPlane *psProject( 221 const psSphere *coord, 222 const psProjection *projection 223 ); 224 225 psSphere *psDeproject( 226 const psPlane *coord, 227 const psProjection *projection 228 ); 229 230 psSphere *psSphereGetOffset( 231 const psSphere *restrict position1, 232 const psSphere *restrict position2, 233 psSphereOffsetMode mode, 234 psSphereOffsetUnit unit 235 ); 236 237 psSphere *psSphereSetOffset( 238 const psSphere *restrict position, 239 const psSphere *restrict offset, 240 psSphereOffsetMode mode, 241 psSphereOffsetUnit unit 242 ); 147 243 148 244 /// @} -
trunk/psLib/src/astronomy/psMetadata.c
r1387 r1393 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-05 02:22:42$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-05 19:38:51 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 39 39 /******************************************************************************/ 40 40 41 // None 41 /** Maximum length of string */ 42 #define MAX_STRING_LENGTH 1024 43 44 /** Maximum length of FITS line */ 45 #define FITS_LINE_SIZE 80 42 46 43 47 /******************************************************************************/ -
trunk/psLib/src/astronomy/psMetadata.h
r1386 r1393 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:54:05$12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 /// @addtogroup Metadata 28 28 /// @{ 29 30 /** Maximum length of string */31 #define MAX_STRING_LENGTH 102432 33 /** Maximum length of FITS line */34 #define FITS_LINE_SIZE 8035 29 36 30 /** Metadata item type. -
trunk/psLib/src/astronomy/psTime.c
r1385 r1393 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 4 23:37:39$14 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-05 19:38:51 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 34 34 /* DEFINE STATEMENTS */ 35 35 /******************************************************************************/ 36 37 /** Number of available leapsecond updates */ 38 #define NUM_LEAPSECOND_UPDATES 23 39 40 /** Maximum length of time string */ 41 #define MAX_TIME_STRING_LENGTH 256 42 43 /** Seconds per minute */ 44 #define SEC_PER_MINUTE 60.0 45 46 /** Seconds per hour */ 47 #define SEC_PER_HOUR (60.0*SEC_PER_MINUTE) 48 49 /** Seconds per day */ 50 #define SEC_PER_DAY (24.0*SEC_PER_HOUR) 51 52 /** Seconds per year */ 53 #define SEC_PER_YEAR (365.0*SEC_PER_DAY) 54 55 /** Microseconds per day */ 56 #define USEC_PER_DAY 86400000000.0 36 57 37 58 /** Preprocessor macro to generate error for negative time in struct */ -
trunk/psLib/src/astronomy/psTime.h
r1385 r1393 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-08-0 4 23:37:39$14 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-08-05 19:38:51 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 /// @addtogroup Time 30 30 /// @{ 31 32 /******************************************************************************/33 /* DEFINE STATEMENTS */34 /******************************************************************************/35 36 /** Number of available leapsecond updates */37 #define NUM_LEAPSECOND_UPDATES 2338 39 /** Maximum length of time string */40 #define MAX_TIME_STRING_LENGTH 25641 42 /** Seconds per minute */43 #define SEC_PER_MINUTE 60.044 45 /** Seconds per hour */46 #define SEC_PER_HOUR (60.0*SEC_PER_MINUTE)47 48 /** Seconds per day */49 #define SEC_PER_DAY (24.0*SEC_PER_HOUR)50 51 /** Seconds per year */52 #define SEC_PER_YEAR (365.0*SEC_PER_DAY)53 54 /** Microseconds per day */55 #define USEC_PER_DAY 86400000000.056 31 57 32 /******************************************************************************/ -
trunk/psLib/src/collections/psCompare.c
r1127 r1393 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-0 6-29 23:19:11$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-05 19:38:52 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 15 15 #include "psCompare.h" 16 16 17 #define compareNumericPtr(TYPE) \17 #define COMPARE_NUMERIC_PTR(TYPE) \ 18 18 int psCompare##TYPE##Ptr(const void** a, const void** b) { \ 19 19 return **((ps##TYPE**)a) - **((ps##TYPE**)b); \ 20 20 } 21 21 22 #define compareNumericPtrDescending(TYPE) \22 #define COMPARE_NUMERIC_PTR_DESCENDING(TYPE) \ 23 23 int psCompareDescending##TYPE##Ptr(const void** a, const void** b) { \ 24 24 return **((ps##TYPE**)b) - **((ps##TYPE**)a); \ 25 25 } 26 26 27 #define compareNumeric(TYPE) \27 #define COMPARE_NUMERIC(TYPE) \ 28 28 int psCompare##TYPE(const void* a, const void* b) { \ 29 29 return *((ps##TYPE*)a) - *((ps##TYPE*)b); \ 30 30 } 31 31 32 #define compareNumericDescending(TYPE) \32 #define COMPARE_NUMERIC_DESCENDING(TYPE) \ 33 33 int psCompare##TYPE##Descending(const void* a, const void* b) { \ 34 34 return *((ps##TYPE*)b) - *((ps##TYPE*)a); \ 35 35 } 36 36 37 compareNumericPtr(S8)38 compareNumericPtr(S16)39 compareNumericPtr(S32)40 compareNumericPtr(S64)41 compareNumericPtr(U8)42 compareNumericPtr(U16)43 compareNumericPtr(U32)44 compareNumericPtr(U64)45 compareNumericPtr(F32)46 compareNumericPtr(F64)37 COMPARE_NUMERIC_PTR(S8) 38 COMPARE_NUMERIC_PTR(S16) 39 COMPARE_NUMERIC_PTR(S32) 40 COMPARE_NUMERIC_PTR(S64) 41 COMPARE_NUMERIC_PTR(U8) 42 COMPARE_NUMERIC_PTR(U16) 43 COMPARE_NUMERIC_PTR(U32) 44 COMPARE_NUMERIC_PTR(U64) 45 COMPARE_NUMERIC_PTR(F32) 46 COMPARE_NUMERIC_PTR(F64) 47 47 48 compareNumericPtrDescending(S8)49 compareNumericPtrDescending(S16)50 compareNumericPtrDescending(S32)51 compareNumericPtrDescending(S64)52 compareNumericPtrDescending(U8)53 compareNumericPtrDescending(U16)54 compareNumericPtrDescending(U32)55 compareNumericPtrDescending(U64)56 compareNumericPtrDescending(F32)57 compareNumericPtrDescending(F64)48 COMPARE_NUMERIC_PTR_DESCENDING(S8) 49 COMPARE_NUMERIC_PTR_DESCENDING(S16) 50 COMPARE_NUMERIC_PTR_DESCENDING(S32) 51 COMPARE_NUMERIC_PTR_DESCENDING(S64) 52 COMPARE_NUMERIC_PTR_DESCENDING(U8) 53 COMPARE_NUMERIC_PTR_DESCENDING(U16) 54 COMPARE_NUMERIC_PTR_DESCENDING(U32) 55 COMPARE_NUMERIC_PTR_DESCENDING(U64) 56 COMPARE_NUMERIC_PTR_DESCENDING(F32) 57 COMPARE_NUMERIC_PTR_DESCENDING(F64) 58 58 59 compareNumeric(S8)60 compareNumeric(S16)61 compareNumeric(S32)62 compareNumeric(S64)63 compareNumeric(U8)64 compareNumeric(U16)65 compareNumeric(U32)66 compareNumeric(U64)67 compareNumeric(F32)68 compareNumeric(F64)59 COMPARE_NUMERIC(S8) 60 COMPARE_NUMERIC(S16) 61 COMPARE_NUMERIC(S32) 62 COMPARE_NUMERIC(S64) 63 COMPARE_NUMERIC(U8) 64 COMPARE_NUMERIC(U16) 65 COMPARE_NUMERIC(U32) 66 COMPARE_NUMERIC(U64) 67 COMPARE_NUMERIC(F32) 68 COMPARE_NUMERIC(F64) 69 69 70 compareNumericDescending(S8)71 compareNumericDescending(S16)72 compareNumericDescending(S32)73 compareNumericDescending(S64)74 compareNumericDescending(U8)75 compareNumericDescending(U16)76 compareNumericDescending(U32)77 compareNumericDescending(U64)78 compareNumericDescending(F32)79 compareNumericDescending(F64)70 COMPARE_NUMERIC_DESCENDING(S8) 71 COMPARE_NUMERIC_DESCENDING(S16) 72 COMPARE_NUMERIC_DESCENDING(S32) 73 COMPARE_NUMERIC_DESCENDING(S64) 74 COMPARE_NUMERIC_DESCENDING(U8) 75 COMPARE_NUMERIC_DESCENDING(U16) 76 COMPARE_NUMERIC_DESCENDING(U32) 77 COMPARE_NUMERIC_DESCENDING(U64) 78 COMPARE_NUMERIC_DESCENDING(F32) 79 COMPARE_NUMERIC_DESCENDING(F64) -
trunk/psLib/src/collections/psMetadata.c
r1387 r1393 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-05 02:22:42$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-05 19:38:51 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 39 39 /******************************************************************************/ 40 40 41 // None 41 /** Maximum length of string */ 42 #define MAX_STRING_LENGTH 1024 43 44 /** Maximum length of FITS line */ 45 #define FITS_LINE_SIZE 80 42 46 43 47 /******************************************************************************/ -
trunk/psLib/src/collections/psMetadata.h
r1386 r1393 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:54:05$12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 /// @addtogroup Metadata 28 28 /// @{ 29 30 /** Maximum length of string */31 #define MAX_STRING_LENGTH 102432 33 /** Maximum length of FITS line */34 #define FITS_LINE_SIZE 8035 29 36 30 /** Metadata item type. -
trunk/psLib/src/dataManip/psStats.c
r1385 r1393 1 /** @file psStats.c 2 * \brief basic statistical operations 3 * @ingroup Stats 4 * 5 * This file will hold the definition of the histogram and stats data 6 * structures. It also contains prototypes for procedures which operate 7 * on those data structures. 8 * 9 * @author George Gusciora, MHPCC 10 * 11 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 * 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 */ 16 1 17 #include <stdlib.h> 2 18 #include <stdio.h> -
trunk/psLib/src/image/psImageStats.c
r1385 r1393 1 /** @file psImageStats.c 2 * \brief Routines for calculating statistics on images. 3 * @ingroup ImageStats 4 * 5 * This file will hold the prototypes for procedures which calculate 6 * statistic on images, histograms on images, and fit/evaluate Chebyshev 7 * polynomials to images. 8 * 9 * @author George Gusciora, MHPCC 10 * 11 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 * 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 */ 16 1 17 #include <stdlib.h> 2 18 #include <stdio.h> -
trunk/psLib/src/imageops/psImageStats.c
r1385 r1393 1 /** @file psImageStats.c 2 * \brief Routines for calculating statistics on images. 3 * @ingroup ImageStats 4 * 5 * This file will hold the prototypes for procedures which calculate 6 * statistic on images, histograms on images, and fit/evaluate Chebyshev 7 * polynomials to images. 8 * 9 * @author George Gusciora, MHPCC 10 * 11 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 * 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 */ 16 1 17 #include <stdlib.h> 2 18 #include <stdio.h> -
trunk/psLib/src/math/psCompare.c
r1127 r1393 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-0 6-29 23:19:11$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-05 19:38:52 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 15 15 #include "psCompare.h" 16 16 17 #define compareNumericPtr(TYPE) \17 #define COMPARE_NUMERIC_PTR(TYPE) \ 18 18 int psCompare##TYPE##Ptr(const void** a, const void** b) { \ 19 19 return **((ps##TYPE**)a) - **((ps##TYPE**)b); \ 20 20 } 21 21 22 #define compareNumericPtrDescending(TYPE) \22 #define COMPARE_NUMERIC_PTR_DESCENDING(TYPE) \ 23 23 int psCompareDescending##TYPE##Ptr(const void** a, const void** b) { \ 24 24 return **((ps##TYPE**)b) - **((ps##TYPE**)a); \ 25 25 } 26 26 27 #define compareNumeric(TYPE) \27 #define COMPARE_NUMERIC(TYPE) \ 28 28 int psCompare##TYPE(const void* a, const void* b) { \ 29 29 return *((ps##TYPE*)a) - *((ps##TYPE*)b); \ 30 30 } 31 31 32 #define compareNumericDescending(TYPE) \32 #define COMPARE_NUMERIC_DESCENDING(TYPE) \ 33 33 int psCompare##TYPE##Descending(const void* a, const void* b) { \ 34 34 return *((ps##TYPE*)b) - *((ps##TYPE*)a); \ 35 35 } 36 36 37 compareNumericPtr(S8)38 compareNumericPtr(S16)39 compareNumericPtr(S32)40 compareNumericPtr(S64)41 compareNumericPtr(U8)42 compareNumericPtr(U16)43 compareNumericPtr(U32)44 compareNumericPtr(U64)45 compareNumericPtr(F32)46 compareNumericPtr(F64)37 COMPARE_NUMERIC_PTR(S8) 38 COMPARE_NUMERIC_PTR(S16) 39 COMPARE_NUMERIC_PTR(S32) 40 COMPARE_NUMERIC_PTR(S64) 41 COMPARE_NUMERIC_PTR(U8) 42 COMPARE_NUMERIC_PTR(U16) 43 COMPARE_NUMERIC_PTR(U32) 44 COMPARE_NUMERIC_PTR(U64) 45 COMPARE_NUMERIC_PTR(F32) 46 COMPARE_NUMERIC_PTR(F64) 47 47 48 compareNumericPtrDescending(S8)49 compareNumericPtrDescending(S16)50 compareNumericPtrDescending(S32)51 compareNumericPtrDescending(S64)52 compareNumericPtrDescending(U8)53 compareNumericPtrDescending(U16)54 compareNumericPtrDescending(U32)55 compareNumericPtrDescending(U64)56 compareNumericPtrDescending(F32)57 compareNumericPtrDescending(F64)48 COMPARE_NUMERIC_PTR_DESCENDING(S8) 49 COMPARE_NUMERIC_PTR_DESCENDING(S16) 50 COMPARE_NUMERIC_PTR_DESCENDING(S32) 51 COMPARE_NUMERIC_PTR_DESCENDING(S64) 52 COMPARE_NUMERIC_PTR_DESCENDING(U8) 53 COMPARE_NUMERIC_PTR_DESCENDING(U16) 54 COMPARE_NUMERIC_PTR_DESCENDING(U32) 55 COMPARE_NUMERIC_PTR_DESCENDING(U64) 56 COMPARE_NUMERIC_PTR_DESCENDING(F32) 57 COMPARE_NUMERIC_PTR_DESCENDING(F64) 58 58 59 compareNumeric(S8)60 compareNumeric(S16)61 compareNumeric(S32)62 compareNumeric(S64)63 compareNumeric(U8)64 compareNumeric(U16)65 compareNumeric(U32)66 compareNumeric(U64)67 compareNumeric(F32)68 compareNumeric(F64)59 COMPARE_NUMERIC(S8) 60 COMPARE_NUMERIC(S16) 61 COMPARE_NUMERIC(S32) 62 COMPARE_NUMERIC(S64) 63 COMPARE_NUMERIC(U8) 64 COMPARE_NUMERIC(U16) 65 COMPARE_NUMERIC(U32) 66 COMPARE_NUMERIC(U64) 67 COMPARE_NUMERIC(F32) 68 COMPARE_NUMERIC(F64) 69 69 70 compareNumericDescending(S8)71 compareNumericDescending(S16)72 compareNumericDescending(S32)73 compareNumericDescending(S64)74 compareNumericDescending(U8)75 compareNumericDescending(U16)76 compareNumericDescending(U32)77 compareNumericDescending(U64)78 compareNumericDescending(F32)79 compareNumericDescending(F64)70 COMPARE_NUMERIC_DESCENDING(S8) 71 COMPARE_NUMERIC_DESCENDING(S16) 72 COMPARE_NUMERIC_DESCENDING(S32) 73 COMPARE_NUMERIC_DESCENDING(S64) 74 COMPARE_NUMERIC_DESCENDING(U8) 75 COMPARE_NUMERIC_DESCENDING(U16) 76 COMPARE_NUMERIC_DESCENDING(U32) 77 COMPARE_NUMERIC_DESCENDING(U64) 78 COMPARE_NUMERIC_DESCENDING(F32) 79 COMPARE_NUMERIC_DESCENDING(F64) -
trunk/psLib/src/math/psStats.c
r1385 r1393 1 /** @file psStats.c 2 * \brief basic statistical operations 3 * @ingroup Stats 4 * 5 * This file will hold the definition of the histogram and stats data 6 * structures. It also contains prototypes for procedures which operate 7 * on those data structures. 8 * 9 * @author George Gusciora, MHPCC 10 * 11 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 * 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 15 */ 16 1 17 #include <stdlib.h> 2 18 #include <stdio.h> -
trunk/psLib/src/sys/psLogMsg.c
r1385 r1393 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 4 23:37:39$13 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-05 19:38:52 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 #include "psLogMsg.h" 39 39 #include "psError.h" 40 #include "psErrorCodes.h"41 40 #include "psTrace.h" 42 41 -
trunk/psLib/src/sys/psTrace.c
r1385 r1393 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08-0 4 23:37:39$11 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 92 92 { 93 93 if (p_psCroot == NULL) { 94 p_psCroot = componentAlloc(".", DEFAULT_TRACE_LEVEL);94 p_psCroot = componentAlloc(".", PS_DEFAULT_TRACE_LEVEL); 95 95 } 96 96 } … … 248 248 249 249 if (NULL == currentNode) { 250 return( UNKNOWN_TRACE_LEVEL);250 return(PS_UNKNOWN_TRACE_LEVEL); 251 251 } 252 252 … … 256 256 257 257 if (aname[0] != '.') { 258 return( UNKNOWN_TRACE_LEVEL);258 return(PS_UNKNOWN_TRACE_LEVEL); 259 259 } 260 260 … … 278 278 } 279 279 } 280 return( UNKNOWN_TRACE_LEVEL);280 return(PS_UNKNOWN_TRACE_LEVEL); 281 281 } 282 282 … … 297 297 { 298 298 if (p_psCroot == NULL) { 299 return( UNKNOWN_TRACE_LEVEL);299 return(PS_UNKNOWN_TRACE_LEVEL); 300 300 } 301 301 … … 324 324 if (comp->name[0] == '\0') { 325 325 printf("%*s%-*s %d\n", depth, "", 20 - depth, 326 "(root)", (comp->level == UNKNOWN_TRACE_LEVEL) ? 0 : comp->level);326 "(root)", (comp->level == PS_UNKNOWN_TRACE_LEVEL) ? 0 : comp->level); 327 327 } else { 328 if (comp->level == UNKNOWN_TRACE_LEVEL) {328 if (comp->level == PS_UNKNOWN_TRACE_LEVEL) { 329 329 printf("%*s%-*s %s\n", depth, "", 20 - depth, 330 330 comp->name, "."); -
trunk/psLib/src/sys/psTrace.h
r1137 r1393 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-0 6-30 01:09:12 $11 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 17 17 #define PS_TRACE_H 1 18 18 19 #define UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level20 #define DEFAULT_TRACE_LEVEL 019 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 #define PS_DEFAULT_TRACE_LEVEL 0 21 21 22 22 -
trunk/psLib/src/sysUtils/psLogMsg.c
r1385 r1393 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 4 23:37:39$13 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-05 19:38:52 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 #include "psLogMsg.h" 39 39 #include "psError.h" 40 #include "psErrorCodes.h"41 40 #include "psTrace.h" 42 41 -
trunk/psLib/src/sysUtils/psTrace.c
r1385 r1393 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-08-0 4 23:37:39$11 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 92 92 { 93 93 if (p_psCroot == NULL) { 94 p_psCroot = componentAlloc(".", DEFAULT_TRACE_LEVEL);94 p_psCroot = componentAlloc(".", PS_DEFAULT_TRACE_LEVEL); 95 95 } 96 96 } … … 248 248 249 249 if (NULL == currentNode) { 250 return( UNKNOWN_TRACE_LEVEL);250 return(PS_UNKNOWN_TRACE_LEVEL); 251 251 } 252 252 … … 256 256 257 257 if (aname[0] != '.') { 258 return( UNKNOWN_TRACE_LEVEL);258 return(PS_UNKNOWN_TRACE_LEVEL); 259 259 } 260 260 … … 278 278 } 279 279 } 280 return( UNKNOWN_TRACE_LEVEL);280 return(PS_UNKNOWN_TRACE_LEVEL); 281 281 } 282 282 … … 297 297 { 298 298 if (p_psCroot == NULL) { 299 return( UNKNOWN_TRACE_LEVEL);299 return(PS_UNKNOWN_TRACE_LEVEL); 300 300 } 301 301 … … 324 324 if (comp->name[0] == '\0') { 325 325 printf("%*s%-*s %d\n", depth, "", 20 - depth, 326 "(root)", (comp->level == UNKNOWN_TRACE_LEVEL) ? 0 : comp->level);326 "(root)", (comp->level == PS_UNKNOWN_TRACE_LEVEL) ? 0 : comp->level); 327 327 } else { 328 if (comp->level == UNKNOWN_TRACE_LEVEL) {328 if (comp->level == PS_UNKNOWN_TRACE_LEVEL) { 329 329 printf("%*s%-*s %s\n", depth, "", 20 - depth, 330 330 comp->name, "."); -
trunk/psLib/src/sysUtils/psTrace.h
r1137 r1393 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-0 6-30 01:09:12 $11 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-05 19:38:52 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 17 17 #define PS_TRACE_H 1 18 18 19 #define UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level20 #define DEFAULT_TRACE_LEVEL 019 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 #define PS_DEFAULT_TRACE_LEVEL 0 21 21 22 22 -
trunk/psLib/src/types/psMetadata.c
r1387 r1393 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-05 02:22:42$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-05 19:38:51 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 39 39 /******************************************************************************/ 40 40 41 // None 41 /** Maximum length of string */ 42 #define MAX_STRING_LENGTH 1024 43 44 /** Maximum length of FITS line */ 45 #define FITS_LINE_SIZE 80 42 46 43 47 /******************************************************************************/ -
trunk/psLib/src/types/psMetadata.h
r1386 r1393 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 4 23:54:05$12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-05 19:38:51 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 /// @addtogroup Metadata 28 28 /// @{ 29 30 /** Maximum length of string */31 #define MAX_STRING_LENGTH 102432 33 /** Maximum length of FITS line */34 #define FITS_LINE_SIZE 8035 29 36 30 /** Metadata item type.
Note:
See TracChangeset
for help on using the changeset viewer.
