IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2006, 3:20:29 PM (20 years ago)
Author:
eugene
Message:

squashing leaks

File:
1 edited

Legend:

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

    r6862 r6964  
    33bool psphotReadout (pmConfig *config, pmFPAview *view) {
    44
    5     psArray     *sources  = NULL;
    6     psArray     *peaks    = NULL;
    7     pmPSF       *psf      = NULL;
    8     bool         status;
    9 
    105    // select the current recipe
    11     psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, "PSPHOT");
     6    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, "PSPHOT");
    127
    138    // find the currently selected readout
     
    2823
    2924    // find the peaks in the image
    30     peaks = psphotFindPeaks (readout, recipe);
     25    psArray *peaks = psphotFindPeaks (readout, recipe);
    3126
    3227    // construct sources and measure basic stats
    3328    // limit moments analysis by S/N?
    34     sources = psphotSourceStats (readout, recipe, peaks);
     29    psArray *sources = psphotSourceStats (readout, recipe, peaks);
    3530
    3631    // classify sources based on moments, brightness
     
    4237
    4338    // use bright stellar objects to measure PSF
    44     psf = psphotChoosePSF (readout, sources, recipe);
     39    pmPSF *psf = psphotChoosePSF (readout, sources, recipe);
    4540    psphotPSFstats (readout, recipe, psf);
    4641
     
    7671
    7772    // save the results of the analysis
    78     status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY,    "psphot sources", sources);
    79     status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER",  PS_DATA_METADATA, "header stats", header);
    80     status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF",     PS_DATA_UNKNOWN,  "psphot psf", psf);
     73    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY,    "psphot sources", sources);
     74    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER",  PS_DATA_METADATA, "header stats", header);
     75    psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF",     PS_DATA_UNKNOWN,  "psphot psf", psf);
    8176
    8277    // remove internal pmFPAfiles, if created
     
    8580
    8681    // free up the local copies of the data
     82    psFree (peaks);
     83    psFree (sources);
    8784    psFree (psf);
    8885    psFree (header);
    89     psFree (sources);
    90     psFree (peaks);
    9186    return true;
    9287}
Note: See TracChangeset for help on using the changeset viewer.