- Timestamp:
- Jul 17, 2014, 12:30:45 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/psModules
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/objects (modified) (1 prop)
-
src/objects/pmSourceOutputs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c 17 pmSourceIO_CMF_PS1_SV3.c 16 18 pmSourceIO_CMF_PS1_DV1.c 17 19 pmSourceIO_CMF_PS1_DV2.c 18 20 pmSourceIO_CMF_PS1_DV3.c 19 21 pmSourceIO_CMF_PS1_DV4.c
-
- Property svn:ignore
-
branches/eam_branches/ipp-ops-20130712/psModules/src/objects/pmSourceOutputs.c
r35768 r37066 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" 33 33 #include "pmSourceDiffStats.h" 34 34 #include "pmSourceSatstar.h" 35 #include "pmSourceLensing.h" 35 36 #include "pmSource.h" 36 37 #include "pmSourceFitModel.h" … … 107 108 } 108 109 if (isfinite(PAR[PM_PAR_SXX]) && isfinite(PAR[PM_PAR_SXY]) && isfinite(PAR[PM_PAR_SYY])) { 109 axes = pmPSF_ModelToAxes (PAR, model-> type);110 axes = pmPSF_ModelToAxes (PAR, model->class->useReff); 110 111 outputs->psfMajor = axes.major; 111 112 outputs->psfMinor = axes.minor; 112 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); 113 126 } else { 114 127 outputs->psfMajor = NAN; 115 128 outputs->psfMinor = NAN; 116 129 outputs->psfTheta = NAN; 130 outputs->psfCore = NAN; 117 131 } 118 132 outputs->chisq = model->chisq; 119 133 outputs->nDOF = model->nDOF; 120 134 outputs->nPix = model->nPix; 121 outputs->apRadius = source->apRadius;122 135 } else { 123 136 bool useMoments = pmSourcePositionUseMoments(source); … … 137 150 outputs->psfMinor = NAN; 138 151 outputs->psfTheta = NAN; 152 outputs->psfCore = NAN; 139 153 outputs->chisq = NAN; 140 154 outputs->nDOF = 0; 141 155 outputs->nPix = 0; 142 outputs->apRadius = NAN;143 156 } 144 157
Note:
See TracChangeset
for help on using the changeset viewer.
