Changeset 257
- Timestamp:
- Mar 18, 2004, 9:37:58 PM (22 years ago)
- Location:
- trunk/archive/pslib/include
- Files:
-
- 21 edited
-
Doxyfile (modified) (1 diff)
-
psAstrom.h (modified) (2 diffs)
-
psBitMask.h (modified) (2 diffs)
-
psDateTime.h (modified) (3 diffs)
-
psDlist.h (modified) (1 diff)
-
psFFT.h (modified) (2 diffs)
-
psFunctions.h (modified) (4 diffs)
-
psHash.h (modified) (1 diff)
-
psImage.h (modified) (4 diffs)
-
psLogMsg.h (modified) (1 diff)
-
psMath.h (modified) (2 diffs)
-
psMatrix.h (modified) (2 diffs)
-
psMemory.h (modified) (2 diffs)
-
psMetaData.h (modified) (2 diffs)
-
psMinimize.h (modified) (2 diffs)
-
psMisc.h (modified) (1 diff)
-
psPosition.h (modified) (9 diffs)
-
psSort.h (modified) (2 diffs)
-
psStats.h (modified) (6 diffs)
-
psStdArrays.h (modified) (6 diffs)
-
psTrace.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/Doxyfile
r223 r257 564 564 # Windows users are probably better off using the HTML help feature. 565 565 566 GENERATE_TREEVIEW = NO566 GENERATE_TREEVIEW = YES 567 567 568 568 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -
trunk/archive/pslib/include/psAstrom.h
r254 r257 127 127 128 128 129 /*** Functions ***********************************************************************/ 130 131 /***********************************************************************************************************/ 132 133 /* Calculating and applying astrometric solutions */ 129 /** Functions **************************************************************/ 130 /** \addtogroup AstroGroup Astronomy-Specific Utilities 131 * \{ 132 */ 133 134 /*** Calculating and applying astrometric solutions ***/ 134 135 135 136 /** returns Chip in FPA which contains the given FPA coordinate */ … … 236 237 psExposureFree(psExposure *restrict myExp //!< Object to destroy 237 238 ); 239 /* \} */ // End of AstroGroup Functions 240 238 241 #endif 239 242 -
trunk/archive/pslib/include/psBitMask.h
r247 r257 12 12 char *bits; //!< The bits 13 13 } psBitMask; 14 15 /** Functions **************************************************************/ 16 /** \addtogroup MathGroup Math Utilities 17 * \{ 18 */ 14 19 15 20 /** Constructor */ … … 44 49 ); 45 50 51 /* \} */ // End of MathGroup Functions 52 46 53 #endif -
trunk/archive/pslib/include/psDateTime.h
r256 r257 11 11 */ 12 12 13 /** Get current MJD, for a timestamp */ 13 /** \addtogroup AstroGroup Astronomy-Specific Utilities 14 * \{ 15 */ 16 17 /** Get current MJD, for a timestamp \ingroup AstroGroup */ 14 18 double 15 19 psGetMJD(void); 16 20 17 /** Get current sidereal time at longitude */21 /** Get current sidereal time at longitude \ingroup AstroGroup */ 18 22 double 19 23 psGetSidereal(float mjd, //!< MJD … … 53 57 54 58 /***** convert to psTime *****/ 55 /** Convert ISOTime (Human-readable date/time string YYYY/MM/DD,HH:MM:SS.SSS) to psTime */59 /** Convert ISOTime (Human-readable date/time string YYYY/MM/DD,HH:MM:SS.SSS) to psTime \ingroup AstroGroup */ 56 60 psTime * 57 61 psISOTimeToTime (char *input) //!< Input ISOTime time … … 83 87 ; 84 88 89 /* \} end of AstroGroup */ 90 85 91 #endif 86 92 -
trunk/archive/pslib/include/psDlist.h
r247 r257 31 31 }; 32 32 33 /*****************************************************************************/ 33 /** Functions **************************************************************/ 34 /** \addtogroup DataGroup General Data Container Utilities 35 * \{ 36 */ 37 34 38 /** Constructor */ 35 psDlist *psDlistAlloc(void *data //!< initial data item; may be NULL36 );39 psDlist *psDlistAlloc(void *data) //!< initial data item; may be NULL 40 ; 37 41 38 42 /** Destructor */ 39 43 void psDlistFree(psDlist *list, //!< list to destroy 40 void (*elemFree)(void *) //!< destructor for data on list41 );44 void (*elemFree)(void *)) //!< destructor for data on list 45 ; 42 46 43 /* 44 * List maintainence functions 45 */ 47 /**** List maintainence functions ****/ 46 48 47 49 /** Add to list */ 48 50 psDlist *psDlistAdd(psDlist *list, //!< list to add to (may be NULL) 49 51 void *data, //!< data item to add 50 int where //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL51 );52 int where) //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL 53 ; 52 54 53 55 /** Append to a list */ 54 56 psDlist *psDlistAppend(psDlist *list, //!< list to append to (may be NULL) 55 void *data //!< data item to add56 );57 void *data) //!< data item to add 58 ; 57 59 58 60 /** Remove from a list */ 59 61 void *psDlistRemove(psDlist *list, //!< list to remove element from 60 62 void *data, //!< data item to remove 61 int which //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 62 //!< PS_DLIST_PREV 63 ); 63 int which) //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 64 ; //!< PS_DLIST_PREV 64 65 65 66 /** Retrieve from a list */ 66 67 void *psDlistGet(const psDlist *list, //!< list to retrieve element from 67 int which //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV68 );68 int which) //!< index of item, or PS_DLIST_NEXT, or PS_DLIST_PREV 69 ; 69 70 70 /* 71 * convenience functions to use psDlistGet as an iterator 72 */ 71 /**** convenience functions to use psDlistGet as an iterator ******/ 73 72 74 73 /** Set the iterator */ 75 74 void psDlistSetIterator(psDlist *list, //!< list to retrieve element from 76 75 int where, //!< index, PS_DLIST_HEAD, or PS_DLIST_TAIL 77 int which //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 78 //!< PS_DLIST_PREV 79 ); 76 int which) //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 77 ; //!< PS_DLIST_PREV 80 78 81 79 /** Get next element */ 82 80 void *psDlistGetNext(psDlist *list, //!< list to retrieve element from 83 int which //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 84 //!< PS_DLIST_PREV 85 ); 81 int which) //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 82 ; //!< PS_DLIST_PREV 86 83 87 84 /** Get previous element */ 88 85 void *psDlistGetPrev(psDlist *list, //!< list to retrieve element from 89 int which //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 90 //!< PS_DLIST_PREV 91 ); 92 86 int which) //!< index of item, or PS_DLIST_UNKNOWN, or PS_DLIST_NEXT, or 87 ; //!< PS_DLIST_PREV 93 88 94 89 /** Convert doubly-linked list to an array */ 95 psVoidPtrArray *psDlistToArray(psDlist *dlist //!< List to convert96 );90 psVoidPtrArray *psDlistToArray(psDlist *dlist) //!< List to convert 91 ; 97 92 98 93 /** Convert array to a doubly-linked list */ 99 psDlist *psArrayToDlist(psVoidPtrArray *arr //!< Array to convert100 );94 psDlist *psArrayToDlist(psVoidPtrArray *arr) //!< Array to convert 95 ; 101 96 97 /* \} */ // End of DataGroup Functions 102 98 103 99 #endif -
trunk/archive/pslib/include/psFFT.h
r247 r257 5 5 * \brief Fourier Transform functions 6 6 * \ingroup MathGroup 7 */ 8 9 /** Functions **************************************************************/ 10 /** \addtogroup MathGroup Math Utilities 11 * \{ 7 12 */ 8 13 … … 26 31 ); 27 32 33 /* \} */ // End of MathGroup Functions 28 34 29 35 #endif -
trunk/archive/pslib/include/psFunctions.h
r247 r257 50 50 51 51 52 /** Functions **************************************************************/ 53 /** \addtogroup MathGroup Math Utilities 54 * \{ 55 */ 56 52 57 /** Constructors */ 53 58 psPolynomial1D *psPolynomial1DAlloc(int n //!< Number of terms … … 101 106 ); 102 107 108 /* \} */ // End of MathGroup Functions 109 103 110 /************************************************************************************************************/ 104 111 … … 137 144 } psDPolynomial4D; 138 145 146 /** Functions **************************************************************/ 147 /** \addtogroup MathGroup Math Utilities 148 * \{ 149 */ 150 139 151 /** Constructors */ 140 152 psDPolynomial1D *psDPolynomial1DAlloc(int n //!< Number of terms … … 189 201 ); 190 202 203 /* \} */ // End of MathGroup Functions 191 204 192 205 #endif -
trunk/archive/pslib/include/psHash.h
r247 r257 8 8 9 9 /** DO WE NEED TO DEFINE HashTable? */ 10 typedef struct HashTable psHash; // !< Opaque type for a hash table10 typedef struct HashTable psHash; ///< Opaque type for a hash table 11 11 12 psHash *psHashAlloc(int nbucket //!< initial number of buckets 13 ); 14 void psHashFree(psHash *table, //!< hash table to be freed 15 void (*itemFree)(void *item) //!< how to free hashed data; or NULL 16 ); 12 /** Functions **************************************************************/ 13 /** \addtogroup DataGroup General Data Container Utilities 14 * \{ 15 */ 17 16 18 void *psHashInsert(psHash *table, //!< table to insert in 19 const char *key, //!< key to use 20 void *data, //!< data to insert 21 void (*itemFree)(void *item) //!< how to free hashed data; or NULL 22 ); 23 void *psHashLookup(psHash *table, //!< table to lookup key in 24 const char *key //!< key to lookup 25 ); 17 /// Allocate hash buckets in table. 18 psHash *psHashAlloc(int nbucket) ///< initial number of buckets 19 ; 26 20 27 void *psHashRemove(psHash *table, //!< table to lookup key in 28 const char *key //!< key to lookup 29 ); 21 /// Free hash buckets from table. 22 void psHashFree(psHash *table, ///< hash table to be freed 23 void (*itemFree)(void *item)) ///< how to free hashed data; or NULL 24 ; 30 25 26 /// Insert entry into table. 27 void *psHashInsert(psHash *table, ///< table to insert in 28 const char *key, ///< key to use 29 void *data, ///< data to insert 30 void (*itemFree)(void *item)) ///< how to free hashed data; or NULL 31 ; 32 33 /// Lookup key in table. 34 void *psHashLookup(psHash *table, ///< table to lookup key in 35 const char *key) ///< key to lookup 36 ; 37 38 /// Remove key from table. 39 void *psHashRemove(psHash *table, ///< table to lookup key in 40 const char *key) ///< key to lookup 41 ; 42 43 /* \} */ // End of DataGroup Functions 31 44 32 45 #endif -
trunk/archive/pslib/include/psImage.h
r253 r257 5 5 * \brief Basic image definitions and operations. 6 6 * \ingroup AstroGroup 7 */8 9 /** General image manipulation functions.10 * These functions operate on individual 2D images11 7 */ 12 8 … … 32 28 } psImage; 33 29 30 /** Functions **************************************************************/ 31 /** \addtogroup AstroGroup Astronomy-Specific Utilities 32 * \{ 33 */ 34 34 35 /*** Image structure manipulation ***/ 36 35 37 /// Create an image of the specified size and type. 36 typedef int PS_IMAGE_DEPTH; // RHL Added this to make the psImage compile XXX37 38 38 psImage * 39 39 psImageAlloc (int nx, ///< image width 40 40 int ny, ///< image height 41 PS_IMAGE_DEPTH depth ///< image depth42 );41 psType type) ///< image data type 42 ; 43 43 44 44 /// Create a subimage of the specified area. … … 68 68 69 69 /*** various image pixel extractions ***/ 70 71 typedef enum { PS_STAT_MODE_MEDIAN } psStatMode;72 70 73 71 /// Extract pixels from rectlinear region to a vector. … … 271 269 ); 272 270 271 /* \} */ // End of AstroGroup Functions 272 273 273 # endif 274 274 /* image overlay operations -
trunk/archive/pslib/include/psLogMsg.h
r247 r257 7 7 */ 8 8 9 /** Functions **************************************************************/ 10 /** \addtogroup SystemGroup System Utilities 11 * \{ 12 */ 13 14 /// Sets the log destination 15 int psSetLogDestination(int dest); 16 17 /// Sets the log level 18 int psSetLogLevel(int level); 19 20 /// sets the log format 21 void psSetLogFormat(const char *fmt); 22 23 /// Logs a message 24 void psLogMsg(const char *name, int level, const char *fmt, ...); 25 26 /// Logs a message from varargs 27 void p_psVLogMsg(const char *name, int level, const char *fmt, va_list ap); 28 29 /* \} */ // End of SystemGroup Functions 30 9 31 enum { PS_LOG_ABORT = 0, PS_LOG_ERROR, PS_LOG_WARN, PS_LOG_INFO }; //!< Status codes for log messages 10 32 11 33 enum { PS_LOG_TO_STDERR, PS_LOG_TO_STDOUT }; //!< Destinations for log messages 12 34 13 int psSetLogDestination(int dest); //!< Sets the log destination14 int psSetLogLevel(int level); //!< Sets the log level15 void psSetLogFormat(const char *fmt); //!< sets the log format16 17 void psLogMsg(const char *name, int level, const char *fmt, ...); //!< Logs a message18 void p_psVLogMsg(const char *name, int level, const char *fmt, va_list ap); //!< Logs a message from varargs19 20 35 #endif -
trunk/archive/pslib/include/psMath.h
r253 r257 17 17 } val; 18 18 } p_psScalar; 19 20 /** Functions **************************************************************/ 21 /** \addtogroup MathGroup Math Utilities 22 * \{ 23 */ 19 24 20 25 /** Perform a binary operation on two data items (psImage, psVector, psScalar). */ … … 42 47 ... ///< value (or values) of specified types 43 48 ); 49 50 /* \} */ // End of MathGroup Functions 44 51 45 52 /** the functions defined here can operate on the basic PSLib data types: psImage, psVector, XXX. These data -
trunk/archive/pslib/include/psMatrix.h
r250 r257 12 12 float *restrict *restrict value; //!< Values in matrix 13 13 } psMatrix; 14 15 /** Functions **************************************************************/ 16 /** \addtogroup MathGroup Math Utilities 17 * \{ 18 */ 14 19 15 20 /** Constructor */ … … 59 64 ); 60 65 66 /* \} */ // End of MathGroup Functions 67 61 68 #endif -
trunk/archive/pslib/include/psMemory.h
r247 r257 6 6 * \ingroup SystemGroup 7 7 */ 8 9 // Structures *********************************************************** 8 10 9 11 /** Book-keeping data for storage allocator. … … 21 23 } psMemBlock; 22 24 23 / ** prototype of a basic callback used by memory functions */25 /// prototype of a basic callback used by memory functions 24 26 typedef int (*psMemCallback)(const psMemBlock *ptr); 25 27 26 / ** prototype of a callback used in error conditions */28 /// prototype of a callback used in error conditions 27 29 typedef void (*psMemProblemCallback)(const psMemBlock *ptr, const char *file, int lineno); 28 30 29 / ** prototype of a callback used when memory runs out */31 /// prototype of a callback used when memory runs out 30 32 typedef void *(*psMemExhaustedCallback)(size_t size); 31 33 32 /*****************************************************************************/ 34 /** Functions **************************************************************/ 35 /** \addtogroup SystemGroup System Utilities 36 * \{ 37 */ 33 38 34 / ** Memory allocation. Underlying private function called by macro psAlloc. */39 /// Memory allocation. Underlying private function called by macro psAlloc. 35 40 void *p_psAlloc(size_t size, //!< Size required 36 41 const char *file, //!< File of call 37 int lineno //!< Line number of call38 );42 int lineno) //!< Line number of call 43 ; 39 44 40 / ** Memory re-allocation. Underlying private function called by macro psRealloc. */45 /// Memory re-allocation. Underlying private function called by macro psRealloc. 41 46 void *p_psRealloc(void *ptr, //!< Pointer to re-allocate 42 47 size_t size, //!< Size required 43 48 const char *file, //!< File of call 44 int lineno //!< Line number of call45 );49 int lineno) //!< Line number of call 50 ; 46 51 47 / ** Free memory. Underlying private function called by macro psFree. */52 /// Free memory. Underlying private function called by macro psFree. 48 53 void p_psFree(void *ptr, //!< Pointer to free 49 54 const char *file, //!< File of call 50 int lineno //!< Line number of call51 );55 int lineno) //!< Line number of call 56 ; 52 57 53 /** Memory allocation. psAlloc sends file and line number to p_psAlloc. */ 58 /// Check for memory leaks 59 int psMemCheckLeaks(int id0, //!< don't list blocks with id < id0 60 psMemBlock ***arr, //!< pointer to array of pointers to leaked blocks, or NULL 61 FILE *fd) //!< print list of leaks to fd (or NULL) 62 ; 63 64 /// Check for memory corruption 65 int psMemCheckCorruption(int abort_on_error) //!< Abort on detecting corruption? 66 ; 67 68 /// Return reference counter 69 int psMemGetRefCounter(void *vptr) //!< Pointer to get refCounter for 70 ; 71 72 /// Increment reference counter and return the pointer 73 void *psMemIncrRefCounter(void *vptr) //!< Pointer to increment refCounter, and return 74 ; 75 76 /// Decrement reference counter and return the pointer 77 void *psMemDecrRefCounter(void *vptr) //!< Pointer to decrement refCounter, and return 78 ; 79 80 /// Set callback for problems 81 psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func) //!< Function to run 82 ; 83 84 /// Set callback for out-of-memory 85 psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func) //!< Function to run 86 ; 87 88 /// Set call back for when a particular memory block is allocated 89 psMemCallback psMemAllocateSetCB(psMemCallback func) 90 ; 91 92 /// Set call back for when a particular memory block is freed 93 psMemCallback psMemFreeSetCB(psMemCallback func) 94 ; 95 96 /// get next memory ID 97 int psMemGetId(void) 98 ; 99 100 /// set p_psMemAllocateID to id 101 long psMemSetAllocateID(long id) 102 ; 103 104 /// set p_psMemFreeID to id 105 long psMemSetFreeID(long id) 106 ; 107 108 /* \} */ // End of SystemGroup Functions 109 110 /// Memory allocation. psAlloc sends file and line number to p_psAlloc. 54 111 #define psAlloc(size) p_psAlloc(size, __FILE__, __LINE__) 55 112 56 / ** Memory re-allocation. psRealloc sends file and line number to p_psRealloc. */113 /// Memory re-allocation. psRealloc sends file and line number to p_psRealloc. 57 114 #define psRealloc(ptr, size) p_psRealloc(ptr, size, __FILE__, __LINE__) 58 115 59 / ** Free memory. psFree sends file and line number to p_psFree. */116 /// Free memory. psFree sends file and line number to p_psFree. 60 117 #define psFree(size) p_psFree(size, __FILE__, __LINE__) 61 118 62 / ** prevent the use of 'malloc'. malloc is re-defined to throw an error in the C preprocessor */119 /// prevent the use of 'malloc'. malloc is re-defined to throw an error in the C preprocessor 63 120 #define malloc(S) for 64 121 65 / ** prevent the use of 'realloc'. realloc is re-defined to throw an error in the C preprocessor */122 /// prevent the use of 'realloc'. realloc is re-defined to throw an error in the C preprocessor 66 123 #define realloc(P,S) for 67 124 68 / ** prevent the use of 'free'. free is re-defined to throw an error in the C preprocessor */125 /// prevent the use of 'free'. free is re-defined to throw an error in the C preprocessor 69 126 #define free(P) for 70 127 71 /*****************************************************************************/72 /** Check for memory leaks */73 int psMemCheckLeaks(int id0, //!< don't list blocks with id < id074 psMemBlock ***arr, //!< pointer to array of pointers to leaked blocks, or NULL75 FILE *fd //!< print list of leaks to fd (or NULL)76 );77 78 /** Check for memory corruption */79 int psMemCheckCorruption(int abort_on_error //!< Abort on detecting corruption?80 );81 82 /*****************************************************************************/83 84 /** Return reference counter */85 int psMemGetRefCounter(void *vptr //!< Pointer to get refCounter for86 );87 /** Increment reference counter and return the pointer */88 void *psMemIncrRefCounter(void *vptr //!< Pointer to increment refCounter, and return89 );90 /** Decrement reference counter and return the pointer */91 void *psMemDecrRefCounter(void *vptr //!< Pointer to decrement refCounter, and return92 );93 94 /*****************************************************************************/95 /*96 * Functions to set and control callbacks97 */98 99 /** Set callback for problems */100 psMemProblemCallback psMemProblemSetCB(psMemProblemCallback func //!< Function to run101 );102 psMemExhaustedCallback psMemExhaustedSetCB(psMemExhaustedCallback func); //!< set call back for exhausted103 //!< memory104 105 psMemCallback psMemAllocateSetCB(psMemCallback func); //!< Set call back for when a particular memory block is106 //!< allocated107 psMemCallback psMemFreeSetCB(psMemCallback func); //!< set call back for when a particular memory block is108 //!< freed109 110 int psMemGetId(void); //!< get next memory ID111 long psMemSetAllocateID(long id); //!< set p_psMemAllocateID to id112 long psMemSetFreeID(long id); //!< set p_psMemFreeID to id113 114 128 #endif -
trunk/archive/pslib/include/psMetaData.h
r247 r257 49 49 } psMetaDataSet; 50 50 51 /** Functions **************************************************************/ 52 /** \addtogroup AstroGroup Astronomy-Specific Utilities 53 * \{ 54 */ 55 51 56 /** Constructor */ 52 57 psMetaDataItem *psMetaDataItemAlloc( … … 80 85 const psMetaDataItem *restrict ms, // item of metadata to print 81 86 const char *prefix); // print this at the beginning of each line 87 /* \} */ // End of AstroGroup Functions 82 88 #endif -
trunk/archive/pslib/include/psMinimize.h
r247 r257 5 5 * \brief minimization operations 6 6 * \ingroup MathGroup 7 */ 8 9 /** Functions **************************************************************/ 10 /** \addtogroup MathGroup Math Utilities 11 * \{ 7 12 */ 8 13 … … 32 37 ); 33 38 39 /* \} */ // End of MathGroup Functions 40 34 41 #endif -
trunk/archive/pslib/include/psMisc.h
r247 r257 7 7 */ 8 8 9 #define PS_STRING(S) #S //!< converts argument to string 9 /** Functions **************************************************************/ 10 /** \addtogroup SystemGroup System Utilities 11 * \{ 12 */ 10 13 11 /** Prints an error message and aborts */ 12 void psAbort(const char *name, //!< Category of code that caused the abort 13 const char *fmt, //!< Format 14 ... //!< Extra arguments to use format 15 ); 16 /** Prints an error message and doesn't abort */ 17 void psError(const char *name, //!< Category of code that caused the abort 18 const char *fmt, //!< Format 19 ... //!< Extra arguments to use format 20 ); 14 /// Prints an error message and aborts 15 void psAbort(const char *name, ///< Category of code that caused the abort 16 const char *fmt, ///< Format 17 ...) ///< Extra arguments to use format 18 ; 21 19 22 /** Allocates and returns a copy of a string */ 23 char *psStringCopy(const char *str //!< string to copy 24 ); 20 /// Prints an error message and doesn't abort 21 void psError(const char *name, ///< Category of code that caused the abort 22 const char *fmt, ///< Format 23 ...) ///< Extra arguments to use format 24 ; 25 25 26 /** Magic values for errors */ 26 /// Allocates and returns a copy of a string 27 char *psStringCopy(const char *str) ///< string to copy 28 ; 29 30 /* \} */ // End of SystemGroup Functions 31 32 #define PS_STRING(S) #S ///< converts argument to string 33 34 /// Magic values for errors 27 35 enum { 28 PS_NO_VALUE = -111, // !< Corresponding value not yet measured29 PS_NO_ERROR = -222 // !< Corresponding value has no error36 PS_NO_VALUE = -111, ///< Corresponding value not yet measured 37 PS_NO_ERROR = -222 ///< Corresponding value has no error 30 38 }; 31 39 -
trunk/archive/pslib/include/psPosition.h
r253 r257 6 6 * \ingroup AstroGroup 7 7 */ 8 9 /** Structures *********************/ 8 10 9 11 /** A point in 2-D space, with errors. … … 29 31 30 32 /** A polynomial transformation between coordinate frames. This may be a linear relationship, or may 31 * represent a higher-order transformation.33 * represent a higher-order transformation. 32 34 */ 33 35 typedef struct { … … 37 39 38 40 /** The optical distortion terms. The lowest two terms are the x and y axis of the target system. The higher 39 * two terms represent magnitude and color terms.41 * two terms represent magnitude and color terms. 40 42 */ 41 43 typedef struct { … … 44 46 } psDistortion; 45 47 46 psCoord *psCoordXformApply (psCoordXform *frame, psCoord *coords); 48 /** Functions **************************************************************/ 49 /** \addtogroup AstroGroup Astronomy-Specific Utilities 50 * \{ 51 */ 47 52 48 psCoord *psDistortionApply (psCoordXform *frame, psCoord *coords); 53 /** apply the coordinate transformation to the given coordinate */ 54 psCoord *psCoordXformApply (psCoordXform *frame, ///< coordinate transformation 55 psCoord *coords) ///< input coordiate 56 ; 49 57 50 /***********************************************************************************************************/ 51 52 /* Offsets */ 58 /** apply the optical distortion to the given coordinate, magnitude, color */ 59 psCoord *psDistortionApply (psDistortion *pattern, ///< optical distortion pattern 60 psCoord *coords, ///< input coordinate 61 float mag, ///< magnitude of object 62 float color) ///< color of object 63 ; 53 64 54 65 /** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */ … … 56 67 psGetOffset(const psCoord *restrict position1, //!< Position 1 57 68 const psCoord *restrict position2, //!< Position 2 58 char *system 59 );69 char *system) 70 ; 60 71 61 72 /** Apply an offset to a position */ … … 63 74 psApplyOffset(const psCoord *restrict position, //!< Position 64 75 const psCoord *restrict offset, //!< Offset 65 char *system 66 ); 67 68 /***********************************************************************************************************/ 76 char *system) 77 ; 69 78 70 79 /* Positions of well-known objects */ … … 72 81 /** Get Sun Position */ 73 82 psCoord * 74 psGetSunPos(float mjd //!< MJD to get position for75 );83 psGetSunPos(float mjd) //!< MJD to get position for 84 ; 76 85 77 86 /** Get Moon position */ … … 79 88 psGetMoonPos(float mjd, //!< MJD to get position for 80 89 double latitude, //!< Latitude for apparent position 81 double longitude //!< Longitude for apparent position82 );90 double longitude) //!< Longitude for apparent position 91 ; 83 92 84 93 /** Get Moon phase */ 85 94 float 86 psGetMoonPhase(float mjd //!< MJD to get phase for87 );95 psGetMoonPhase(float mjd) //!< MJD to get phase for 96 ; 88 97 89 98 /** Get Planet positions */ 90 99 psCoord * 91 100 psGetSolarSystemPos(char *solarSystemObject, //!< Named S.S. object 92 float mjd //!< MJD to get position for93 );101 float mjd) //!< MJD to get position for 102 ; 94 103 95 104 /***********************************************************************************************************/ … … 99 108 /** Convert ICRS to Ecliptic */ 100 109 psCoord * 101 psCoordinatesItoE(const psCoord *restrict coordinates //!< ICRS coordinates to convert102 );110 psCoordinatesItoE(const psCoord *restrict coordinates) //!< ICRS coordinates to convert 111 ; 103 112 104 113 /** Convert Ecliptic to ICRS */ 105 114 psCoord * 106 psCoordinatesEtoI(const psCoord *restrict coordinates //!< Ecliptic coordinates to convert107 );115 psCoordinatesEtoI(const psCoord *restrict coordinates) //!< Ecliptic coordinates to convert 116 ; 108 117 109 118 /** Convert ICRS to Galactic */ 110 119 psCoord * 111 psCoordinatesItoG(const psCoord *restrict coordinates //!< ICRS coordinates to convert112 );120 psCoordinatesItoG(const psCoord *restrict coordinates) //!< ICRS coordinates to convert 121 ; 113 122 114 123 /** Convert Galactic to ICRS */ 115 124 psCoord * 116 psCoordinatesGtoI(const psCoord *restrict coordinates //!< Galactic coordinates to convert117 );125 psCoordinatesGtoI(const psCoord *restrict coordinates) //!< Galactic coordinates to convert 126 ; 118 127 119 128 /***********************************************************************************************************/ 129 130 /* \} */ // End of AstroGroup Functions 131 120 132 #endif -
trunk/archive/pslib/include/psSort.h
r253 r257 5 5 * \brief general sorting operations 6 6 * \ingroup MathGroup 7 */ 8 9 /** Functions **************************************************************/ 10 /** \addtogroup MathGroup Math Utilities 11 * \{ 7 12 */ 8 13 … … 19 24 ); 20 25 26 /* \} */ // End of MathGroup Functions 27 21 28 #endif -
trunk/archive/pslib/include/psStats.h
r249 r257 70 70 71 71 72 /** Do Statistics on an array. Returns a status value. */72 /** Do Statistics on an array. Returns a status value. \ingroup MathGroup */ 73 73 psStats * 74 74 psArrayStats(const psFloatArray *restrict myArray, //!< Array to be analysed … … 81 81 /***********************************************************************************************************/ 82 82 83 /** Histograms */83 /** Histograms */ 84 84 typedef struct { 85 85 const psFloatArray *restrict lower; //!< Lower bounds for the bins … … 90 90 } psHistogram; 91 91 92 /** Constructor */92 /** Constructor \ingroup MathGroup */ 93 93 psHistogram * 94 94 psHistogramAlloc(float lower, //!< Lower limit for the bins … … 97 97 ); 98 98 99 /** Generic constructor */99 /** Generic constructor \ingroup MathGroup */ 100 100 psHistogram * 101 101 psHistogramAllocGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins … … 105 105 ); 106 106 107 /** Destructor */107 /** Destructor \ingroup MathGroup **/ 108 108 void 109 109 psHistogramFree(psHistogram *restrict myHist //!< Histogram to destroy … … 111 111 112 112 113 /** Calculate a histogram */113 /** Calculate a histogram \ingroup MathGroup **/ 114 114 psHistogram * 115 115 psGetArrayHistogram(psHistogram *restrict myHist, //!< Histogram data -
trunk/archive/pslib/include/psStdArrays.h
r247 r257 79 79 } psFloatArray; 80 80 81 /** Constructor */81 /** Constructor \ingroup DataGroup */ 82 82 psFloatArray *psFloatArrayAlloc(int s, ///< Total number of elements to make available 83 83 int n ///< Number of elements that will be used 84 84 ); 85 /** Reallocator */85 /** Reallocator \ingroup DataGroup */ 86 86 psFloatArray *psFloatArrayRealloc(psFloatArray *myArray, ///< Array to reallocate 87 87 int s ///< Total number of elements to make available 88 88 ); 89 /** Destructor */89 /** Destructor \ingroup DataGroup */ 90 90 void psFloatArrayFree(psFloatArray *restrict myArray ///< Array to free 91 91 ); … … 109 109 } psComplexArray; 110 110 111 /** Constructor */111 /** Constructor \ingroup DataGroup */ 112 112 psComplexArray *psComplexArrayAlloc(int s, ///< Total number of elements to make available 113 113 int n ///< Number of elements that will be used 114 114 ); 115 /** Reallocator */115 /** Reallocator \ingroup DataGroup */ 116 116 psComplexArray *psComplexArrayRealloc(psComplexArray *myArray, ///< Array to reallocate 117 117 int s ///< Total number of elements to make available 118 118 ); 119 /** Destructor */119 /** Destructor \ingroup DataGroup */ 120 120 void psComplexArrayFree(psComplexArray *restrict myArray ///< Array to free 121 121 ); … … 131 131 } psIntArray; 132 132 133 /** Constructor */133 /** Constructor \ingroup DataGroup */ 134 134 psIntArray *psIntArrayAlloc(int s, ///< Total number of elements to make available 135 135 int n ///< Number of elements that will be used 136 136 ); 137 /** Reallocator */137 /** Reallocator \ingroup DataGroup */ 138 138 psIntArray *psIntArrayRealloc(psIntArray *myArray, ///< Array to reallocate 139 139 int s ///< Total number of elements to make available 140 140 ); 141 /** Destructor */141 /** Destructor \ingroup DataGroup */ 142 142 void psIntArrayFree(psIntArray *restrict myArray ///< Array to free 143 143 ); … … 153 153 } psDoubleArray; 154 154 155 /** Constructor */155 /** Constructor \ingroup DataGroup */ 156 156 psDoubleArray *psDoubleArrayAlloc(int s, ///< Total number of elements to make available 157 157 int n ///< Number of elements that will be used 158 158 ); 159 /** Reallocator */159 /** Reallocator \ingroup DataGroup */ 160 160 psDoubleArray *psDoubleArrayRealloc(psDoubleArray *myArray, ///< Array to reallocate 161 161 int s ///< Total number of elements to make available 162 162 ); 163 /** Destructor */163 /** Destructor \ingroup DataGroup */ 164 164 void psDoubleArrayFree(psDoubleArray *restrict myArray ///< Array to free 165 165 ); … … 175 175 } psVectorArray; 176 176 177 /** Constructor */177 /** Constructor \ingroup DataGroup */ 178 178 psVectorArray *psVectorArrayAlloc(int s, ///< Total number of elements to make available 179 179 int n ///< Number of elements that will be used 180 180 ); 181 /** Reallocator */181 /** Reallocator \ingroup DataGroup */ 182 182 psVectorArray *psVectorArrayRealloc(psVectorArray *myArray, ///< Array to reallocate 183 183 int s ///< Total number of elements to make available 184 184 ); 185 /** Destructor */185 /** Destructor \ingroup DataGroup */ 186 186 void psVectorArrayFree(psVectorArray *restrict myArray ///< Array to free 187 187 ); … … 200 200 } psVoidPtrArray; 201 201 202 /** Constructor */202 /** Constructor \ingroup DataGroup */ 203 203 psVoidPtrArray *psVoidPtrArrayAlloc(int n, //!< Number of elements to use 204 204 int s //!< Total number of elements 205 205 ); 206 /** Reallocate */206 /** Reallocate \ingroup DataGroup */ 207 207 psVoidPtrArray *psVoidPtrArrayRealloc(psVoidPtrArray *arr, //!< Array to reallocate 208 208 int n //!< Number of elements 209 209 ); 210 /** Destructor */210 /** Destructor \ingroup DataGroup */ 211 211 void psVoidPtrArrayFree(psVoidPtrArray *arr, //!< array to destroy 212 212 void (*elemFree)(void *) //!< destructor for array data -
trunk/archive/pslib/include/psTrace.h
r247 r257 7 7 */ 8 8 9 //#define PS_NTRACE 1 //!< to turn off all tracing 9 /** Functions **************************************************************/ 10 /** \addtogroup SystemGroup System Utilities 11 * \{ 12 */ 13 14 /// Send a trace message 15 void p_psTrace(const char *facil, ///< facilty of interest 16 int level, ///< desired trace level 17 ...) ///< trace message arguments 18 ; 19 20 /// Set trace level 21 int psSetTraceLevel(const char *facil, ///< facilty of interest 22 int level) ///< desired trace level 23 ; 24 25 /// Get the trace level 26 int psGetTraceLevel(const char *name) ///< facilty of interest 27 ; 28 29 /// turn off all tracing, and free trace's allocated memory 30 void psTraceReset(void); 31 32 /// print trace levels 33 void psPrintTraceLevels(void); 34 35 /* \} */ // End of SystemGroup Functions 36 37 //#define PS_NTRACE 1 ///< to turn off all tracing 10 38 11 39 #if defined(PS_NTRACE) … … 16 44 #endif 17 45 18 /** Send a trace message */19 void p_psTrace(const char *facil, //!< facilty of interest20 int level, //!< desired trace level21 ... //!< trace message arguments22 );23 24 /** Set trace level */25 int psSetTraceLevel(const char *facil, //!< facilty of interest26 int level //!< desired trace level27 );28 29 /** Get the trace level */30 int psGetTraceLevel(const char *name //!< facilty of interest31 );32 33 /** turn off all tracing, and free trace's allocated memory */34 void psTraceReset(void);35 36 /** print trace levels */37 void psPrintTraceLevels(void);38 39 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
