- Timestamp:
- Jun 20, 2012, 6:58:23 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601/psModules/src/objects
- Files:
-
- 5 edited
-
pmSource.c (modified) (3 diffs)
-
pmSourceIO_CMP.c (modified) (4 diffs)
-
pmSourceIO_PS1_CAL_0.c (modified) (4 diffs)
-
pmSourceIO_SMPDATA.c (modified) (4 diffs)
-
pmSourceIO_SX.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSource.c
r33963 r34044 1098 1098 if (!addNoise && !addModelVar) source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED; 1099 1099 } 1100 if (!status) { 1101 // XXX maybe raise an error or warning? 1102 } 1100 1103 1101 1104 return true; … … 1166 1169 status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy); 1167 1170 } 1171 if (!status) { 1172 // XXX raise an error or warning? 1173 } 1168 1174 1169 1175 // restore original values … … 1253 1259 } else { 1254 1260 status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy); 1261 } 1262 if (!status) { 1263 // XXX raise an error or warning? 1255 1264 } 1256 1265 -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_CMP.c
r32347 r34044 65 65 int i, type; 66 66 // psMetadataItem *mdi; 67 psF32 *PAR , *dPAR;67 psF32 *PAR; 68 68 float lsky = 0; 69 69 bool status; … … 130 130 131 131 PAR = model->params->data.F32; 132 dPAR = model->dparams->data.F32;133 132 134 133 type = pmSourceGetDophotType (source); … … 174 173 bool status; 175 174 int Ninstar; 176 psF32 *PAR , *dPAR;175 psF32 *PAR; 177 176 psEllipseAxes axes; 178 177 … … 273 272 274 273 PAR = source->modelPSF->params->data.F32; 275 dPAR = source->modelPSF->dparams->data.F32;276 274 277 275 PAR[PM_PAR_SKY] = pow (atof (array->data[5]), 10.0); -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_PS1_CAL_0.c
r32347 r34044 322 322 } 323 323 324 # define WRITE_AP_DATA 0 325 324 326 bool pmSourcesWrite_PS1_CAL_0_XSRC (psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname, psMetadata *recipe) 325 327 { … … 338 340 } 339 341 342 # if (WRITE_AP_DATA) 340 343 bool calMags = false; 341 344 bool status1 = false; … … 350 353 calMags = true; 351 354 } 355 # endif 352 356 353 357 // create a header to hold the output data … … 424 428 psMetadataAdd (row, PS_LIST_TAIL, "Y_EXT_SIG", PS_DATA_F32, "Sigma in EXT y coordinate", yErr); 425 429 426 # if ( 0)430 # if (WRITE_AP_DATA) 427 431 // Petrosian measurements 428 432 // XXX insert header data: petrosian ref radius, flux ratio -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SMPDATA.c
r32347 r34044 63 63 psMetadata *row; 64 64 int i; 65 psF32 *PAR , *dPAR;65 psF32 *PAR; 66 66 bool status; 67 67 psEllipseAxes axes; … … 85 85 if (model != NULL) { 86 86 PAR = model->params->data.F32; 87 dPAR = model->dparams->data.F32;88 87 xPos = PAR[PM_PAR_XPOS]; 89 88 yPos = PAR[PM_PAR_YPOS]; … … 145 144 146 145 bool status; 147 psF32 *PAR , *dPAR;146 psF32 *PAR; 148 147 psEllipseAxes axes; 149 148 float lsky; … … 176 175 177 176 PAR = model->params->data.F32; 178 dPAR = model->dparams->data.F32;179 177 180 178 psMetadata *row = table->data[i]; -
branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SX.c
r32347 r34044 56 56 PS_ASSERT_PTR_NON_NULL(filename, false); 57 57 58 psF32 *PAR , *dPAR;58 psF32 *PAR; 59 59 psEllipseAxes axes; 60 60 … … 77 77 78 78 PAR = model->params->data.F32; 79 dPAR = model->dparams->data.F32;80 79 81 80 // pmSourceSextractType (source, &type, &flags);
Note:
See TracChangeset
for help on using the changeset viewer.
