IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25989


Ignore:
Timestamp:
Nov 1, 2009, 4:03:29 PM (17 years ago)
Author:
eugene
Message:

psf clump region were being saved in the wrong location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRoughClass.c

    r25852 r25989  
    3737        }
    3838    }
    39     psMetadataAddS32 (recipe, PS_LIST_TAIL, "PSF.CLUMP.NREGIONS",  PS_META_REPLACE, "psf clump regions", nRegion);
     39    psMetadataAddS32 (readout->analysis, PS_LIST_TAIL, "PSF.CLUMP.NREGIONS",  PS_META_REPLACE, "psf clump regions", nRegion);
    4040
    4141    // optional printout of source moments only
     
    5151}
    5252
    53 bool psphotRoughClassRegion (int nRegion, psRegion *region, psArray *sources, psMetadata *target, psMetadata *recipe, const bool havePSF) {
     53bool psphotRoughClassRegion (int nRegion, psRegion *region, psArray *sources, psMetadata *analysis, psMetadata *recipe, const bool havePSF) {
    5454
    5555    bool status;
     
    6161    assert (maskSat);
    6262
     63    // the regions are saved on the readout->analysis metadata folder (passed to us as analysis)
    6364    snprintf (regionName, 64, "PSF.CLUMP.REGION.%03d", nRegion);
    64     psMetadata *regionMD = psMetadataLookupPtr (&status, target, regionName);
     65    psMetadata *regionMD = psMetadataLookupPtr (&status, analysis, regionName);
    6566    if (!regionMD) {
    6667        // allocate the region metadata folder and add this region to it.
    6768        regionMD = psMetadataAlloc();
    68         psMetadataAddMetadata (target, PS_LIST_TAIL, regionName, PS_META_REPLACE, "psf clump region", regionMD);
     69        psMetadataAddMetadata (analysis, PS_LIST_TAIL, regionName, PS_META_REPLACE, "psf clump region", regionMD);
    6970        psFree (regionMD);
    7071    }
     
    7475        // determine the PSF parameters from the source moment values
    7576        // XXX why not save the psfClump as a PTR?
    76         psfClump = pmSourcePSFClump (region, sources, target);
     77        psfClump = pmSourcePSFClump (region, sources, recipe);
    7778        psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.X",  PS_META_REPLACE, "psf clump center", psfClump.X);
    7879        psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.Y",  PS_META_REPLACE, "psf clump center", psfClump.Y);
Note: See TracChangeset for help on using the changeset viewer.