Changeset 18554 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- Jul 15, 2008, 10:25:00 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r17998 r18554 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-0 6-09 00:43:46$5 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-07-15 20:25:00 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 64 64 65 65 // XXX masked region should be (optionally) elliptical 66 bool pmSourceMagnitudes (pmSource *source, pmPSF *psf, pmSourcePhotometryMode mode, 67 psMaskType maskVal, psMaskType mark) 66 bool pmSourceMagnitudes (pmSource *source, pmPSF *psf, pmSourcePhotometryMode mode, psMaskType maskVal) 68 67 { 69 68 PS_ASSERT_PTR_NON_NULL(source, false); … … 230 229 mask = source->maskObj; 231 230 } 232 // set aperture mask circle to model radius233 // XXX use a different radius for apertures and fits...234 // XXX can I remove this? the source should have the mask defined when it is constructed or235 // when the fit / aperture radius is changed...236 psImageKeepCircle (source->maskObj, x, y, model->radiusFit, "OR", mark);237 231 238 232 // measure the weight of included pixels 239 233 // XXX is this supposed to use the weight or the flux? 240 234 if (mode & PM_SOURCE_PHOT_WEIGHT) { 241 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal | mark);235 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal); 242 236 } 243 237 244 238 // measure object aperture photometry 245 status = pmSourcePhotometryAper (&source->apMag, model, flux, mask, maskVal | mark);239 status = pmSourcePhotometryAper (&source->apMag, model, flux, mask, maskVal); 246 240 if (!status) { 247 241 psTrace ("psModules.objects", 3, "fail mag : bad Ap Mag"); … … 264 258 psFree(mask); 265 259 } 266 267 // unmask aperture268 // XXX can I remove this? this will probably break things downstream...269 psImageKeepCircle (source->maskObj, x, y, model->radiusFit, "AND", PS_NOT_U8(mark));270 260 271 261 // if source was originally subtracted, re-subtract object, leave local sky … … 308 298 309 299 // return source aperture magnitude 310 bool pmSourcePhotometryAper (float *apMag, pmModel *model, psImage *image, psImage *mask, 311 psMaskType maskVal) 300 bool pmSourcePhotometryAper (float *apMag, pmModel *model, psImage *image, psImage *mask, psMaskType maskVal) 312 301 { 313 302 PS_ASSERT_PTR_NON_NULL(apMag, false); … … 347 336 348 337 // return source aperture magnitude 349 bool pmSourcePixelWeight (float *pixWeight, pmModel *model, psImage *image, psImage *mask, 350 psMaskType maskVal) 338 bool pmSourcePixelWeight (float *pixWeight, pmModel *model, psImage *image, psImage *mask, psMaskType maskVal) 351 339 { 352 340 PS_ASSERT_PTR_NON_NULL(pixWeight, false);
Note:
See TracChangeset
for help on using the changeset viewer.
