Changeset 9810
- Timestamp:
- Oct 31, 2006, 9:38:44 AM (20 years ago)
- Location:
- trunk/psModules/src/objects
- Files:
-
- 4 edited
-
pmModel.c (modified) (3 diffs)
-
pmModel.h (modified) (2 diffs)
-
pmSourceIO_RAW.c (modified) (3 diffs)
-
pmSourcePhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmModel.c
r9730 r9810 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-10- 24 22:55:05$8 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-10-31 19:38:44 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 tmp->nDOF = 0; 56 56 tmp->nIter = 0; 57 tmp->radius TMP= 0;57 tmp->radiusFit = 0; 58 58 tmp->status = PM_MODEL_UNTRIED; 59 59 … … 87 87 new->nIter = model->nIter; 88 88 new->status = model->status; 89 new->radius TMP = model->radiusTMP;89 new->radiusFit = model->radiusFit; 90 90 91 91 for (int i = 0; i < new->params->n; i++) { -
trunk/psModules/src/objects/pmModel.h
r9528 r9810 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-10- 13 02:29:14 $8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-10-31 19:38:44 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 46 46 int nIter; ///< number of iterations to reach min 47 47 pmModelStatus status; ///< fit status 48 float radius TMP; ///< fit radius actually used48 float radiusFit; ///< fit radius actually used 49 49 } 50 50 pmModel; -
trunk/psModules/src/objects/pmSourceIO_RAW.c
r9653 r9810 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-10- 19 21:16:49$5 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-10-31 19:38:44 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 105 105 logChi, logChiNorm, 106 106 source[0].moments->SN, 107 model[0].radius TMP,107 model[0].radiusFit, 108 108 source[0].pixWeight, 109 109 model[0].nDOF, … … 165 165 log10(model[0].chisqNorm/model[0].nDOF), 166 166 source[0].moments->SN, 167 model[0].radius TMP,167 model[0].radiusFit, 168 168 source[0].pixWeight, 169 169 model[0].nDOF, -
trunk/psModules/src/objects/pmSourcePhotometry.c
r9730 r9810 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-10- 24 22:55:05$5 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-10-31 19:38:44 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 122 122 123 123 // set aperture mask circle to model radius 124 psImageKeepCircle (source->mask, x, y, model->radius TMP, "OR", PM_MASK_MARK);124 psImageKeepCircle (source->mask, x, y, model->radiusFit, "OR", PM_MASK_MARK); 125 125 126 126 // measure the weight of included pixels … … 135 135 if (status && isPSF && psf) { 136 136 if (psf->growth && (mode & PM_SOURCE_PHOT_GROWTH)) { 137 source->apMag += pmGrowthCurveCorrect (psf->growth, model->radius TMP);137 source->apMag += pmGrowthCurveCorrect (psf->growth, model->radiusFit); 138 138 } 139 139 if (mode & PM_SOURCE_PHOT_APCORR) { 140 140 rflux = pow (10.0, 0.4*source->psfMag); 141 source->apMag -= PS_SQR(model->radius TMP)*rflux * psf->skyBias + psf->skySat / rflux;141 source->apMag -= PS_SQR(model->radiusFit)*rflux * psf->skyBias + psf->skySat / rflux; 142 142 } 143 143 } 144 144 145 145 // unmask aperture 146 psImageKeepCircle (source->mask, x, y, model->radius TMP, "AND", PS_NOT_U8(PM_MASK_MARK));146 psImageKeepCircle (source->mask, x, y, model->radiusFit, "AND", PS_NOT_U8(PM_MASK_MARK)); 147 147 148 148 // subtract object, leave local sky
Note:
See TracChangeset
for help on using the changeset viewer.
