- Timestamp:
- Nov 17, 2011, 1:09:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111110/psphot/src/psphotOutput.c
r32685 r32689 414 414 char filename[64]; 415 415 416 // XXX uncomment to disreturn true; 416 // XXX dump tests are disabled unless this is commented out: 417 return true; 417 418 418 419 bool status = true; … … 453 454 454 455 // XXX only dump a given region 455 if (peak->xf < 20) continue;456 if (peak->yf < 20) continue;457 if (peak->xf > 40) continue;458 if (peak->yf > 70) continue;456 // if (peak->xf < 20) continue; 457 // if (peak->yf < 20) continue; 458 // if (peak->xf > 40) continue; 459 // if (peak->yf > 70) continue; 459 460 460 461 float Msum = source->moments ? source->moments->Sum : NAN; 461 462 float Mx = source->moments ? source->moments->Mx : NAN; 462 463 float My = source->moments ? source->moments->My : NAN; 463 float Npix = source->moments ? source->moments->nPixels : NAN; 464 fprintf (f, "%f %f : %f %f : %f %f\n", peak->xf, peak->yf, Mx, My, Msum, Npix); 464 // float Npix = source->moments ? source->moments->nPixels : NAN; 465 float Io = source->modelPSF ? source->modelPSF->params->data.F32[PM_PAR_I0] : NAN; 466 fprintf (f, "%d %f %f : %f %f : %f %f\n", source->imageID, peak->xf, peak->yf, Mx, My, Msum, Io); 465 467 } 466 468 }
Note:
See TracChangeset
for help on using the changeset viewer.
