- Timestamp:
- Jun 17, 2014, 5:58:38 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140610
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/objects/pmSourceOutputs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140610
- Property svn:mergeinfo changed
/trunk (added) merged: 36846-36871,36874,36879,36882
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140610/psModules/src/objects/pmSourceOutputs.c
r36623 r36884 26 26 #include "pmMoments.h" 27 27 #include "pmModelFuncs.h" 28 #include "pmModelClass.h" 28 29 #include "pmModel.h" 29 30 #include "pmModelUtils.h" 30 #include "pmModelClass.h"31 31 #include "pmSourceMasks.h" 32 32 #include "pmSourceExtendedPars.h" … … 108 108 } 109 109 if (isfinite(PAR[PM_PAR_SXX]) && isfinite(PAR[PM_PAR_SXY]) && isfinite(PAR[PM_PAR_SYY])) { 110 axes = pmPSF_ModelToAxes (PAR, model-> type);110 axes = pmPSF_ModelToAxes (PAR, model->class->useReff); 111 111 outputs->psfMajor = axes.major; 112 112 outputs->psfMinor = axes.minor; 113 113 outputs->psfTheta = axes.theta*PS_DEG_RAD; 114 115 // some models (PS1_V1, QGAUSS) have an extra 'core' parameter 116 outputs->psfCore = NAN; 117 if (model->type == pmModelClassGetType ("PS_MODEL_PS1_V1")) { 118 outputs->psfCore = PAR[PM_PAR_7]; 119 } 120 if (model->type == pmModelClassGetType ("PS_MODEL_QGAUSS")) { 121 outputs->psfCore = PAR[PM_PAR_7]; 122 } 123 124 outputs->psfMajorFWHM = model->class->modelSetFWHM(model->params, axes.major); 125 outputs->psfMinorFWHM = model->class->modelSetFWHM(model->params, axes.minor); 114 126 } else { 115 127 outputs->psfMajor = NAN; 116 128 outputs->psfMinor = NAN; 117 129 outputs->psfTheta = NAN; 130 outputs->psfCore = NAN; 118 131 } 119 132 outputs->chisq = model->chisq; 120 133 outputs->nDOF = model->nDOF; 121 134 outputs->nPix = model->nPix; 122 outputs->apRadius = source->apRadius;123 135 } else { 124 136 bool useMoments = pmSourcePositionUseMoments(source); … … 138 150 outputs->psfMinor = NAN; 139 151 outputs->psfTheta = NAN; 152 outputs->psfCore = NAN; 140 153 outputs->chisq = NAN; 141 154 outputs->nDOF = 0; 142 155 outputs->nPix = 0; 143 outputs->apRadius = NAN;144 156 } 145 157
Note:
See TracChangeset
for help on using the changeset viewer.
