Changeset 6872 for trunk/psModules/src/objects/pmPSFtry.h
- Timestamp:
- Apr 17, 2006, 8:01:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.h
r5844 r6872 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 200 5-12-24 01:24:32$8 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-04-17 18:01:05 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 19 19 /** 20 * 20 * 21 21 * This structure contains a pointer to the collection of sources which will 22 22 * be used to test the PSF model form. It lists the pmModelType type of model 23 23 * being tests, and contains an element to store the resulting psf 24 24 * representation. In addition, this structure carries the complete collection of 25 * FLT (floating parameter) and PSF (fixed parameter) model fits to each of the26 * sources model FLT and modelPSF. It also contains a mask which is set by the25 * EXT (floating parameter) and PSF (fixed parameter) model fits to each of the 26 * sources modelEXT and modelPSF. It also contains a mask which is set by the 27 27 * model fitting and psf fitting steps. For each model, the value of the quality 28 28 * metric is stored in the vector metric and the fitted instrumental magnitude is … … 38 38 * ultimate metric to intercompare multiple types of PSF models is the value of 39 39 * the aperture correction scatter. 40 * 40 * 41 41 * XXX: There are many more members in the SDRS then in the prototype code. 42 42 * I stuck with the prototype code. 43 * 44 * 43 * 44 * 45 45 */ 46 46 typedef struct … … 48 48 pmPSF *psf; ///< Add comment. 49 49 psArray *sources; ///< pointers to the original sources 50 psArray *model FLT; ///< model fits, floating parameters50 psArray *modelEXT; ///< model fits, floating parameters 51 51 psArray *modelPSF; ///< model fits, PSF parameters 52 52 psVector *mask; ///< Add comment. … … 58 58 59 59 /** pmPSFtryMaskValues 60 * 60 * 61 61 * The following datatype defines the masks used by the pmPSFtry analysis to 62 62 * identify sources which should or should not be included in the analysis. 63 * 63 * 64 64 */ 65 enum {65 typedef enum { 66 66 PSFTRY_MASK_CLEAR = 0x00, ///< Add comment. 67 67 PSFTRY_MASK_OUTLIER = 0x01, ///< 1: outlier in psf polynomial fit (provided by psPolynomials) 68 PSFTRY_MASK_ FLT_FAIL = 0x02, ///< 2: flt model failed to converge68 PSFTRY_MASK_EXT_FAIL = 0x02, ///< 2: ext model failed to converge 69 69 PSFTRY_MASK_PSF_FAIL = 0x04, ///< 3: psf model failed to converge 70 70 PSFTRY_MASK_BAD_PHOT = 0x08, ///< 4: invalid source photometry … … 74 74 75 75 /** pmPSFtryAlloc() 76 * 76 * 77 77 * Allocate a pmPSFtry data structure. 78 * 78 * 79 79 */ 80 80 pmPSFtry *pmPSFtryAlloc( 81 81 psArray *stars, ///< Add comment. 82 char *modelName ///< Add comment. 82 char *modelName, ///< Add comment. 83 bool poissonErrors // use poissonian or constant errors? 83 84 ); 84 85 85 86 86 87 /** pmPSFtryModel() 87 * 88 * 88 89 * This function takes the input collection of sources and performs a complete 89 90 * analysis to determine a PSF model of the given type (specified by model name). 90 91 * The result is a pmPSFtry with the results of the analysis. 91 * 92 * 92 93 */ 93 94 pmPSFtry *pmPSFtryModel( 94 95 psArray *sources, ///< Add comment. 95 96 char *modelName, ///< Add comment. 96 float radius ///< Add comment. 97 float radius, ///< Add comment. 98 bool poissonErrors // use poissonian or constant errors? 97 99 ); 98 100 99 101 100 102 /** pmPSFtryMetric() 101 * 103 * 102 104 * This function is used to measure the PSF model metric for the set of 103 105 * results contained in the pmPSFtry structure. 104 * 106 * 105 107 */ 106 108 bool pmPSFtryMetric(
Note:
See TracChangeset
for help on using the changeset viewer.
