IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14812


Ignore:
Timestamp:
Sep 10, 2007, 3:30:23 PM (19 years ago)
Author:
Paul Price
Message:

Stopping errors coming out of ppSim.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r14652 r14812  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-08-24 00:11:02 $
     8 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-09-11 01:30:23 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    174174
    175175    // these images are subset images of the equivalent parents
    176     mySource->pixels   = psMemIncrRefCounter(psImageSubset(readout->image, srcRegion));
    177     mySource->weight   = psMemIncrRefCounter(psImageSubset(readout->weight, srcRegion));
    178     mySource->maskView = psMemIncrRefCounter(psImageSubset(readout->mask,  srcRegion));
     176    mySource->pixels = psMemIncrRefCounter(psImageSubset(readout->image, srcRegion));
     177    if (readout->weight) {
     178        mySource->weight = psMemIncrRefCounter(psImageSubset(readout->weight, srcRegion));
     179    }
     180    if (readout->mask) {
     181        mySource->maskView = psMemIncrRefCounter(psImageSubset(readout->mask,  srcRegion));
     182        // the object mask is a copy, and used to define the source pixels
     183        mySource->maskObj = psImageCopy(NULL, mySource->maskView, PS_TYPE_MASK);
     184    }
    179185    mySource->region   = srcRegion;
    180 
    181     // the object mask is a copy, and used to define the source pixels
    182     mySource->maskObj = psImageCopy (NULL, mySource->maskView, PS_TYPE_MASK);
    183186
    184187    return true;
     
    893896
    894897    if (isPSF) {
    895         *isPSF = false;
     898        *isPSF = false;
    896899    }
    897900
     
    908911// XXX when should I return the modelConv ??
    909912      case PM_SOURCE_TYPE_EXTENDED:
    910         model = source->modelConv;
    911         if (!model) {
    912             model = source->modelEXT;
    913         }
     913        model = source->modelConv;
     914        if (!model) {
     915            model = source->modelEXT;
     916        }
    914917        if (!model && source->modelPSF) {
    915918            if (isPSF) {
Note: See TracChangeset for help on using the changeset viewer.