Changeset 15000 for trunk/psModules/src/objects/pmPSF.h
- Timestamp:
- Sep 24, 2007, 11:27:58 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSF.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF.h
r14936 r15000 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-09-2 1 00:05:35$8 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-09-24 21:27:58 $ 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 11 11 */ … … 19 19 // type of model carried by the pmModel structure 20 20 typedef int pmModelType; 21 22 typedef enum {23 PM_PSF_APTREND_ERROR = 0,24 PM_PSF_APTREND_NONE,25 PM_PSF_APTREND_CONSTANT,26 PM_PSF_APTREND_SKYBIAS,27 PM_PSF_APTREND_SKYSAT,28 PM_PSF_APTREND_XY_LIN,29 PM_PSF_APTREND_XY_QUAD,30 PM_PSF_APTREND_SKY_XY_LIN,31 PM_PSF_APTREND_SKYSAT_XY_LIN,32 PM_PSF_APTREND_ALL33 } pmPSFApTrendOptions;34 21 35 22 /** pmPSF data structure … … 49 36 pmModelType type; ///< PSF Model in use 50 37 psArray *params; ///< Model parameters (psPolynomial2D) 38 psStats *psfTrendStats; ///< psf parameter trend clipping stats 51 39 psPolynomial1D *ChiTrend; ///< Chisq vs flux fit (correction for systematic errors) 52 40 pmTrend2D *ApTrend; ///< ApResid vs (x,y) … … 59 47 int nPSFstars; ///< number of stars used to measure PSF 60 48 int nApResid; ///< number of stars used to measure ApResid 61 bool poissonErrors; 49 int fieldNx; 50 int fieldNy; 51 int fieldXo; 52 int fieldYo; 53 bool poissonErrorsPhotLMM; ///< use poission errors for non-linear model fitting 54 bool poissonErrorsPhotLin; ///< use poission errors for linear model fitting 55 bool poissonErrorsParams; ///< use poission errors for model parameter fitting 62 56 pmGrowthCurve *growth; ///< apMag vs Radius 63 57 pmResiduals *residuals; ///< normalized residual image (no spatial variation) 64 58 } 65 59 pmPSF; 60 61 typedef struct { 62 pmModelType type; 63 psStats *stats; // psfTrend clipping stats 64 pmTrend2DMode psfTrendMode; 65 int psfTrendNx; 66 int psfTrendNy; 67 int psfFieldNx; 68 int psfFieldNy; 69 int psfFieldXo; 70 int psfFieldYo; 71 bool poissonErrorsPhotLMM; ///< use poission errors for non-linear model fitting 72 bool poissonErrorsPhotLin; ///< use poission errors for linear model fitting 73 bool poissonErrorsParams; ///< use poission errors for model parameter fitting 74 float radius; 75 } pmPSFOptions; 66 76 67 77 # define PM_PAR_E0 PM_PAR_SXX … … 74 84 * 75 85 */ 76 pmPSF *pmPSFAlloc( 77 pmModelType type, // type of model for PSF 78 bool poissonErrors, 79 psPolynomial2D *psfTrendMask 80 ); 81 82 bool pmPSFMaskApTrend (psPolynomial4D *trend, pmPSFApTrendOptions option); 83 84 pmPSFApTrendOptions pmPSFApTrendOptionFromName (char *name); 86 pmPSF *pmPSFAlloc (pmPSFOptions *options); 87 pmPSFOptions *pmPSFOptionsAlloc (); 85 88 86 89 double pmPSF_SXYfromModel (psF32 *modelPar); … … 91 94 92 95 bool pmPSF_AxesToModel (psF32 *modelPar, psEllipseAxes axes); 96 bool pmPSF_FitToModel (psF32 *fittedPar, float minMinorAxis); 97 98 psEllipsePol pmPSF_ModelToFit (psF32 *modelPar); 93 99 psEllipseAxes pmPSF_ModelToAxes (psF32 *modelPar, double maxAR); 94 bool pmPSF_FitToModel (psF32 *fittedPar, float minMinorAxis);95 psEllipsePol pmPSF_ModelToFit (psF32 *modelPar);96 100 97 101 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
