- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psModules
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psModules/src/camera/pmReadoutFake.c
r33415 r34041 162 162 fakeRadius = PS_MAX(fakeRadius, fakeModel->modelRadius(fakeModel->params, minFlux)); 163 163 } 164 //MEH - add some outputs to test -- 165 psTrace("psModules.camera", 10, "TESTING:: source at %f,%f: radius %f fakeradius %f minflux %f psf params later \n", 166 fakeModel->params->data.F32[PM_PAR_XPOS],fakeModel->params->data.F32[PM_PAR_YPOS],radius,fakeRadius,minFlux); 167 //MEH -- seems radius is passed as float 0.0.. hardcode test - 168 164 169 if (radius > 0) { 165 170 fakeRadius = PS_MAX(fakeRadius, radius); … … 210 215 const pmPSF *psf = args->data[7]; // PSF 211 216 float minFlux = PS_SCALAR_VALUE(args->data[8], F32); // Minimum flux 212 float radius = PS_SCALAR_VALUE(args->data[9], F32); // Minimum radius217 float radius = PS_SCALAR_VALUE(args->data[9], S32); // Minimum radius - typecast to float from S32 outside of PS_SCALAR_VALUE otherwise sets 0.0 213 218 bool circularise = PS_SCALAR_VALUE(args->data[10], U8); // Circularise PSF? 214 219 bool normalisePeak = PS_SCALAR_VALUE(args->data[11], U8); // Normalise for peak? 215 220 int groupIndex = PS_SCALAR_VALUE(args->data[12], S32); // Group index 216 221 int cellIndex = PS_SCALAR_VALUE(args->data[13], S32); // Cell index 222 223 //MEH 224 psTrace("psModules.camera", 10, "TESTING:thread: radius %f minflux %f \n",radius,minFlux); 217 225 218 226 return readoutFake(readout, groups, x, y, mag, xOffset, yOffset, psf, minFlux, radius, circularise, … … 242 250 return old; 243 251 } 244 245 252 246 253 bool pmReadoutFakeFromVectors(pmReadout *readout, int numCols, int numRows, … … 287 294 } 288 295 296 psTrace("psModules.camera", 10, "TESTING:prethread: radius %d minflux %f threaded %d \n",radius,minFlux,threaded); 289 297 if (threaded) { 290 298 for (int i = 0; i < groups->groups->n; i++) { … … 303 311 psArrayAdd(args, 1, (pmPSF*)psf); 304 312 PS_ARRAY_ADD_SCALAR(args, minFlux, PS_TYPE_F32); 313 //MEH - S32 is proper type here 305 314 PS_ARRAY_ADD_SCALAR(args, radius, PS_TYPE_S32); 306 315 PS_ARRAY_ADD_SCALAR(args, circularise, PS_TYPE_U8); … … 349 358 } 350 359 351 352 360 bool pmReadoutFakeFromSources(pmReadout *readout, int numCols, int numRows, const psArray *sources, 353 361 pmSourceMode sourceMask, const psVector *xOffset, const psVector *yOffset, … … 392 400 mag->n = numGood; 393 401 402 //MEH -- convert int->float for calling downstream since nothing calls Vectors directly? psphot does.. argh! 403 psTrace("psModules.camera", 10, "TESTING:: radius %d minflux %f \n",radius,minFlux); 404 394 405 bool status = pmReadoutFakeFromVectors(readout, numCols, numRows, x, y, mag, xOffset, yOffset, psf, 395 406 minFlux, radius, circularise, normalisePeak);
Note:
See TracChangeset
for help on using the changeset viewer.
