IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30776


Ignore:
Timestamp:
Mar 2, 2011, 5:44:48 PM (15 years ago)
Author:
eugene
Message:

free some data as early as possible (petProfile, source pixels); added memory dump tests

Location:
branches/eam_branches/ipp-20110213/psphot
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/doc/stack.txt

    r30624 r30776  
     1
     220110302
     3
     4  * total number of images generated by this process:
     5
     6 load:
     7 raw      : Nfilter x (image + variance + mask) (20M)
     8 cnv      : Nfilter x (image + variance + mask) (20M)
     9 (8 * 4B) + (4 * 2B)
     10
     11 match: (added)
     12 match    : Nfilter x (image + variance + mask) (20M)
     13(4 * 4B) + (2 * 2B)
     14
     15 phot: (added)
     16 chisq    :       1 x (image + variance + mask) (10M) (freed at end of psphotStackReadout?)
     17 backgnd  :       1 x (image) (10M) or Nfilter (20M) [unsure]
     18
     19 load:
     20     1089174         4000000    psFitsImage.c:467
     21     1092246         4000000    psFitsImage.c:467
     22     1095902         4000000    psFitsImage.c:467
     23     1098974         4000000    psFitsImage.c:467
     24     1102619         4000000    psFitsImage.c:467
     25     1105669         4000000    psFitsImage.c:467
     26     1109303         4000000    psFitsImage.c:467
     27     1112353         4000000    psFitsImage.c:467
     28     1090766         2000000    psFitsImage.c:467
     29     1097494         2000000    psFitsImage.c:467
     30     1104200         2000000    psFitsImage.c:467
     31     1110884         2000000    psFitsImage.c:467
     32
     33  match:
     34     1128976         4000000    pmSubtractionMatch.c:178
     35     1128979         4000000    pmSubtractionMatch.c:183
     36     1652553         4000000    pmSubtractionMatch.c:178
     37     1652556         4000000    pmSubtractionMatch.c:183
     38     1128982         2000000    pmSubtractionMatch.c:189
     39     1652559         2000000    pmSubtractionMatch.c:189
     40
     41 
     42     2132413         4000000    pmFPAfileDefine.c:1275
     43     2133004         4000000    pmFPACopy.c:71
     44     2133010         4000000    pmFPACopy.c:71
     45     2133007         2000000    pmFPACopy.c:71
     46     8614548         2000000    psBinaryOp.c:502
     47     8617313         2000000    psBinaryOp.c:502
    148
    24920101221
  • branches/eam_branches/ipp-20110213/psphot/src/psphotExtendedSourceAnalysisByObject.c

    r30624 r30776  
    148148                psFree(source->extpars->radFlux);
    149149                psFree(source->extpars->ellipticalFlux);
     150                psFree(source->extpars->petProfile);
    150151            }
    151152        }
  • branches/eam_branches/ipp-20110213/psphot/src/psphotMergeSources.c

    r30771 r30776  
    699699            sourceOut->parent = sourceSrc;
    700700
    701             // keep the original source flags
     701            // keep the original source flags and sequence ID (if set)
     702            sourceOut->seq      = sourceSrc->seq;
    702703            sourceOut->type     = sourceSrc->type;
    703704            sourceOut->mode     = sourceSrc->mode;
  • branches/eam_branches/ipp-20110213/psphot/src/psphotRadialAperturesByObject.c

    r30707 r30776  
    150150            } else {
    151151                source->mode |= PM_SOURCE_MODE_RADIAL_FLUX;
     152                if (source->parent) {
     153                    source->parent->mode |= PM_SOURCE_MODE_RADIAL_FLUX;
     154                }
    152155            }
    153156
  • branches/eam_branches/ipp-20110213/psphot/src/psphotRadialProfile.c

    r27819 r30776  
    2525        return false;
    2626    }
     27    // allocate: extpars->radFlux->radii,fluxes,theta
    2728
    2829    // use the radial profiles to determine the radius of a given isophote.  this isophote
     
    3334        return false;
    3435    }
     36    // allocate : extpars->radFlux->isophotalRadii (use profile->radii,fluxes)
     37
    3538
    3639    // convert the isophotal radius vs angle measurements to an elliptical contour
     
    3942        return false;
    4043    }
    41  
     44    // use extpars->radFlux->isophotalRadii,theta (result in extpars->axes)
     45
    4246    // generate a single, normalized radial profile following the elliptical contours.
    4347    // the radius is normalized by the axis ratio so that on the major axis, 1 pixel = 1 pixel
     
    4650        return false;
    4751    }
     52    // allocate extpars->ellipticalFlux->radiusElliptical,fluxElliptical (use axes to scale raw pixels)
    4853 
    4954    // generated profile in averaged bins
     
    5257        return false;
    5358    }
     59    // allocate extpars->radProfile->binSB, binSBstdv, binSum, binFill, radialBins, area (small lengths)
     60    // use radiusElliptical, fluxElliptical,
    5461 
    5562    return true;
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStack.c

    r28960 r30776  
    22
    33int main (int argc, char **argv) {
     4
     5    // XXX add memory dumps
     6    psMemDumpSetState(true);
    47
    58    psTimerStart ("complete");
     
    1215
    1316    psphotVersionPrint();
     17
     18    psMemDump("start");
    1419
    1520    // load input data (config and images (signal, noise, mask)
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStackImageLoop.c

    r30772 r30776  
    1818    pmCell *cell;
    1919    pmReadout *readout;
     20
     21    psMemDump("startloop");
    2022
    2123    pmFPAfile *inputRaw = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.RAW");
     
    8688        if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot.");
    8789    }
     90    psMemDump("doneloop");
    8891
    8992    SetAstrometryFPA(config, view, bilevelAstrometry);
     
    9699
    97100    psFree (view);
     101
     102    psMemDump("doneoutput");
    98103    return true;
    99104}
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStackReadout.c

    r30624 r30776  
    211211    }
    212212
     213    psMemDump("psfstats");
     214
    213215    psphotStackObjectsUnifyPosition (objects);
    214216
     
    230232    }
    231233
     234    psMemDump("extmeas");
     235
    232236    bool smoothAgain = true;
    233237    for (int nMatchedPSF = 0; smoothAgain; nMatchedPSF++) {
     
    250254        // smooth to the next FWHM, or set 'smoothAgain' to false if no more
    251255        psphotStackMatchPSFsNext(&smoothAgain, config, view, STACK_OUT, nMatchedPSF);
     256        psMemDump("matched");
    252257    }
    253258
     
    264269
    265270    // drop the references to the image pixels held by each source
    266     // psphotSourceFreePixels (config, view, STACK_OUT);
     271    psphotSourceFreePixels (config, view, STACK_OUT);
    267272    psphotSourceFreePixels (config, view, STACK_SRC);
    268273
Note: See TracChangeset for help on using the changeset viewer.