IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 8:31:55 PM (20 years ago)
Author:
magnier
Message:

fixed handling of masks, fixed negative-radius errors in models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmSourcePhotometry.c

    r6864 r6899  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.1.2.5 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-04-17 17:10:08 $
     5 *  @version $Revision: 1.1.2.6 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-04-19 06:31:55 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616#include "pmHDU.h"
    1717#include "pmFPA.h"
     18#include "pmMaskBadPixels.h"
    1819#include "pmPeaks.h"
    1920#include "pmMoments.h"
     
    117118
    118119    // set aperture mask circle to model radius
    119     psImageKeepCircle (source->mask, x, y, model->radiusTMP, "OR", PM_SOURCE_MASK_MARKED);
     120    psImageKeepCircle (source->mask, x, y, model->radiusTMP, "OR", PM_MASK_MARK);
    120121
    121122    // measure the weight of included pixels
     
    139140
    140141    // unmask aperture
    141     psImageKeepCircle (source->mask, x, y, model->radiusTMP, "AND", ~PM_SOURCE_MASK_MARKED);
     142    psImageKeepCircle (source->mask, x, y, model->radiusTMP, "AND", NOT_U8(PM_MASK_MARK));
    142143
    143144    // subtract object, leave local sky
Note: See TracChangeset for help on using the changeset viewer.