- Timestamp:
- Aug 29, 2011, 2:59:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110710/psphot/src/psphotModelTestReadout.c
r32154 r32205 84 84 85 85 // define the source of interest 86 float xObj = psMetadataLookupF32 (&status, recipe, "TEST_FIT_X");86 float xObj = psMetadataLookupF32 (&status, recipe, "TEST_FIT_X"); 87 87 float yObj = psMetadataLookupF32 (&status, recipe, "TEST_FIT_Y"); 88 88 if (!isfinite(xObj) || !isfinite(yObj)) psAbort ("object position is not defined"); … … 102 102 status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, markVal); 103 103 if (!status) psAbort("pmSourceLocalSky error"); 104 105 { 106 // XXX I want to test an iterative aperture for brighter sources 107 float radius = mRADIUS; 108 for (int i = 0; i < 10; i++) { 109 110 // get the source moments 111 status = pmSourceMoments (source, radius, 0.0, 0.0, MIN_KRON_RADIUS, maskVal); 112 if (!status) psAbort("psSourceMoments error"); 113 114 float oldRadius = radius; 115 radius = source->moments->Mrf * RADIUS; 116 117 fprintf (stderr, "%d %f %f %f\n", i, oldRadius, radius, source->moments->Mrf); 118 } 119 exit (0); 120 } 104 121 105 122 // get the source moments
Note:
See TracChangeset
for help on using the changeset viewer.
