- Timestamp:
- Sep 27, 2013, 8:48:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psModules/src/objects/pmSourceIO_CFF.c
r36154 r36157 59 59 60 60 bool status; 61 psF32 *PAR, *dPAR;62 61 psEllipseAxes axes; 63 62 … … 92 91 // here are the things we read from the FITS table (XXX modify names if needed) 93 92 94 unsigned int ID = psMetadataLookupU32 (&status, row, "I PP_IDET");95 float X = psMetadataLookupF32 (&status, row, "X _PSF");96 float Y = psMetadataLookupF32 (&status, row, "Y _PSF");93 unsigned int ID = psMetadataLookupU32 (&status, row, "ID"); 94 float X = psMetadataLookupF32 (&status, row, "X"); 95 float Y = psMetadataLookupF32 (&status, row, "Y"); 97 96 98 97 float apRadius = psMetadataLookupS32 (&status, row, "AP_RADIUS"); … … 172 171 173 172 if (fitGalaxy) { 174 source->modelFits = psArrayAllocEmpty ( models->list->n);173 source->modelFits = psArrayAllocEmpty (1); 175 174 pmModel *model = pmModelAlloc(modelType); 176 175 psF32 *xPAR = model->params->data.F32; … … 181 180 xPAR[PM_PAR_YPOS] = Y; 182 181 183 psEllipseAxes galAxes; 184 galAxes.major = Rmajor; 185 galAxes.minor = Rminor; 186 galAxes.theta = theta; // XXX degrees or radians? 187 188 pmPSF_AxesToModel (PAR, guessAxes, galModelType); 189 xPAR[PM_PAR_7] = Sindex; 182 psEllipseAxes galaxyAxes; 183 galaxyAxes.major = Rmajor; 184 galaxyAxes.minor = Rminor; 185 galaxyAxes.theta = theta; // XXX degrees or radians? 186 187 pmPSF_AxesToModel (PAR, galaxyAxes, galaxyModelType); 188 if (model->params->n > 7) { 189 xPAR[PM_PAR_7] = Sindex; 190 } 190 191 191 192 psArrayAdd (source->modelFits, 1, model);
Note:
See TracChangeset
for help on using the changeset viewer.
