IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32718


Ignore:
Timestamp:
Nov 18, 2011, 4:55:07 PM (15 years ago)
Author:
eugene
Message:

avoid subtraction errors from using the wrong window size

Location:
tags/ipp-20111110/psModules/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20111110/psModules/src/imcombine/pmSubtraction.c

    r30738 r32718  
    14871487            }
    14881488        }
     1489        psFree(out1->covariance);
    14891490        out1->covariance = psImageCovarianceAverage(covars);
    14901491        psFree(covars);
     
    15271528            }
    15281529        }
     1530        psFree(out2->covariance);
    15291531        out2->covariance = psImageCovarianceAverage(covars);
    15301532        psFree(covars);
  • tags/ipp-20111110/psModules/src/objects

  • tags/ipp-20111110/psModules/src/objects/pmPeaks.c

    r32347 r32718  
    190190    out->assigned        = in->assigned;
    191191    out->type            = in->type;
     192    out->footprint       = in->footprint;
    192193
    193194    return true;
  • tags/ipp-20111110/psModules/src/objects/pmPeaks.h

    r32347 r32718  
    7171    bool assigned;                      ///< is peak assigned to a source?
    7272    pmPeakType type;                    ///< Description of peak.
    73     pmFootprint *footprint;             ///< reference to containing footprint
     73    pmFootprint *footprint;             ///< reference to containing footprint (just a view, not a memcopy)
    7474    psArray *saddlePoints;              ///< set of saddle points between this peak and near neighbors
    7575}
  • tags/ipp-20111110/psModules/src/objects/pmSource.c

    r32633 r32718  
    121121    source->modelFits = NULL;
    122122    source->extFitPars = NULL;
     123
    123124    source->type = PM_SOURCE_TYPE_UNKNOWN;
    124125    source->mode = PM_SOURCE_MODE_DEFAULT;
     
    138139    source->apFluxErr        = NAN;
    139140
     141    source->windowRadius     = NAN;
    140142    source->skyRadius        = NAN;
    141143    source->skyFlux          = NAN;
     
    203205
    204206    source->imageID          = in->imageID;
     207
    205208    source->type             = in->type;
    206209    source->mode             = in->mode;
    207210    source->mode2            = in->mode2;
    208211    source->tmpFlags         = in->tmpFlags;
     212
    209213    source->psfMag           = in->psfMag;
    210214    source->psfMagErr        = in->psfMagErr;
     
    217221    source->apFlux           = in->apFlux;
    218222    source->apFluxErr        = in->apFluxErr;
     223
     224    source->windowRadius     = in->windowRadius;
     225    source->skyRadius        = in->skyRadius;   
     226    source->skyFlux          = in->skyFlux;     
     227    source->skySlope         = in->skySlope;   
     228
    219229    source->pixWeightNotBad  = in->pixWeightNotBad;
    220230    source->pixWeightNotPoor = in->pixWeightNotPoor;
     231
    221232    source->psfChisq         = in->psfChisq;
    222233    source->crNsigma         = in->crNsigma;
     
    259270    }
    260271    mySource->region   = srcRegion;
     272    mySource->windowRadius = Radius;
    261273
    262274    return true;
     
    328340        mySource->psfImage = NULL;
    329341    }
     342    mySource->windowRadius = Radius;
    330343    return extend;
    331344}
  • tags/ipp-20111110/psModules/src/objects/pmSource.h

    r32633 r32718  
    9797    float apFluxErr;                    ///< apFluxErr corresponding to psfMag or extMag (depending on type)
    9898
     99    float windowRadius;                 ///< size of box used for full analysis
    99100    float skyRadius;                    ///< radius at which profile hits local sky (or goes flat)
    100101    float skyFlux;                      ///< mean flux per pixel in aperture at which profile hits local sky (or goes flat)
Note: See TracChangeset for help on using the changeset viewer.