Changeset 25989
- Timestamp:
- Nov 1, 2009, 4:03:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRoughClass.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRoughClass.c
r25852 r25989 37 37 } 38 38 } 39 psMetadataAddS32 (re cipe, 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); 40 40 41 41 // optional printout of source moments only … … 51 51 } 52 52 53 bool psphotRoughClassRegion (int nRegion, psRegion *region, psArray *sources, psMetadata * target, psMetadata *recipe, const bool havePSF) {53 bool psphotRoughClassRegion (int nRegion, psRegion *region, psArray *sources, psMetadata *analysis, psMetadata *recipe, const bool havePSF) { 54 54 55 55 bool status; … … 61 61 assert (maskSat); 62 62 63 // the regions are saved on the readout->analysis metadata folder (passed to us as analysis) 63 64 snprintf (regionName, 64, "PSF.CLUMP.REGION.%03d", nRegion); 64 psMetadata *regionMD = psMetadataLookupPtr (&status, target, regionName);65 psMetadata *regionMD = psMetadataLookupPtr (&status, analysis, regionName); 65 66 if (!regionMD) { 66 67 // allocate the region metadata folder and add this region to it. 67 68 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); 69 70 psFree (regionMD); 70 71 } … … 74 75 // determine the PSF parameters from the source moment values 75 76 // XXX why not save the psfClump as a PTR? 76 psfClump = pmSourcePSFClump (region, sources, target);77 psfClump = pmSourcePSFClump (region, sources, recipe); 77 78 psMetadataAddF32 (regionMD, PS_LIST_TAIL, "PSF.CLUMP.X", PS_META_REPLACE, "psf clump center", psfClump.X); 78 79 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.
