- Timestamp:
- Jan 11, 2015, 2:05:35 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotSourceStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140904/psphot/src/psphotSourceStats.c
r36375 r37804 185 185 psThreadJob *job = psThreadJobAlloc ("PSPHOT_SOURCE_STATS"); 186 186 187 psArrayAdd(job->args, 1, cells->data[j]); // sources188 189 PS_ARRAY_ADD_SCALAR(job->args, INNER, PS_TYPE_F32); 190 PS_ARRAY_ADD_SCALAR(job->args, MIN_SN, PS_TYPE_F32); 191 PS_ARRAY_ADD_SCALAR(job->args, RADIUS, PS_TYPE_F32); 192 PS_ARRAY_ADD_SCALAR(job->args, SIGMA, PS_TYPE_F32); 193 PS_ARRAY_ADD_SCALAR(job->args, MIN_KRON_RADIUS, PS_TYPE_F32); 194 195 PS_ARRAY_ADD_SCALAR(job->args, maskVal, PS_TYPE_IMAGE_MASK); 196 PS_ARRAY_ADD_SCALAR(job->args, markVal, PS_TYPE_IMAGE_MASK); 197 198 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // this is used as a return value for Nmoments199 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // this is used as a return value for Nfail200 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // this is used as a return value for Nfaint187 psArrayAdd(job->args, 1, cells->data[j]); // 0 : sources 188 189 PS_ARRAY_ADD_SCALAR(job->args, INNER, PS_TYPE_F32); // 1 190 PS_ARRAY_ADD_SCALAR(job->args, MIN_SN, PS_TYPE_F32); // 2 191 PS_ARRAY_ADD_SCALAR(job->args, RADIUS, PS_TYPE_F32); // 3 192 PS_ARRAY_ADD_SCALAR(job->args, SIGMA, PS_TYPE_F32); // 4 193 PS_ARRAY_ADD_SCALAR(job->args, MIN_KRON_RADIUS, PS_TYPE_F32); // 5 194 195 PS_ARRAY_ADD_SCALAR(job->args, maskVal, PS_TYPE_IMAGE_MASK); // 6 196 PS_ARRAY_ADD_SCALAR(job->args, markVal, PS_TYPE_IMAGE_MASK); // 7 197 198 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // 8 : this is used as a return value for Nmoments 199 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // 9 : this is used as a return value for Nfail 200 PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // 10 : this is used as a return value for Nfaint 201 201 202 202 if (!psThreadJobAddPending(job)) { … … 316 316 317 317 // XXX: this must match the above 318 psAbort ("this code is broken: must match psphotSourceStatsReadout above"); 318 319 psArrayAdd(job->args, 1, cells->data[j]); // sources 319 320 psArrayAdd(job->args, 1, recipe); … … 472 473 473 474 // change the value of a scalar on the array (wrap this and put it in psArray.h) 474 scalar = job->args->data[ 7];475 scalar = job->args->data[8]; 475 476 scalar->data.S32 = Nmoments; 476 477 477 scalar = job->args->data[ 8];478 scalar = job->args->data[9]; 478 479 scalar->data.S32 = Nfail; 479 480 480 scalar = job->args->data[ 9];481 scalar = job->args->data[10]; 481 482 scalar->data.S32 = Nfaint; 482 483
Note:
See TracChangeset
for help on using the changeset viewer.
