IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38385 for trunk


Ignore:
Timestamp:
Jun 5, 2015, 12:38:21 PM (11 years ago)
Author:
bills
Message:

change some static functions to global so that they may be used
by psphotStackUpdateReadout

File:
1 edited

Legend:

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

    r38303 r38385  
    11# include "psphotInternal.h"
    22
    3 static bool psphotStackMatchPSFsetup (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF);
    4 static bool psphotStackMatchPSFsetupReadout (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF, int index);
    5 static bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule);
    6 static void logMemStats(const char *heading);
     3static void psphotLogMemoryStats(const char *heading);
    74
    85// relevant filesets:
     
    8077    psTimerStart ("psphotReadout");
    8178
    82     logMemStats("Start");
     79    psphotLogMemoryStats("Start");
    8380
    8481    pmModelClassSetLimits(PM_MODEL_LIMITS_LAX); // allow models to have ugly fits (eg, central cusp)
     
    153150    // psphotDumpTest (config, view, STACK_RAW);
    154151    psMemDump("sourcestats");
    155     logMemStats("sourcestats");
     152    psphotLogMemoryStats("sourcestats");
    156153
    157154    // classify sources based on moments, brightness
     
    205202    // window of size PSF_MOMENTS_RADIUS (same window used to measure the psf-scale moments)
    206203    // but iterates to an appropriately larger size
    207     logMemStats("before.kron.1");
     204    psphotLogMemoryStats("before.kron.1");
    208205    psphotKronIterate(config, view, STACK_RAW, 1);
    209     logMemStats("after.kron.1");
     206    psphotLogMemoryStats("after.kron.1");
    210207       
    211208    // identify CRs and extended sources
     
    219216    psphotReplaceAllSources (config, view, STACK_RAW, false); // pass 1 (detections->allSources)
    220217
    221     logMemStats("pass1");
     218    psphotLogMemoryStats("pass1");
    222219
    223220    // if we only do one pass, skip to extended source analysis
     
    286283    }
    287284
    288     logMemStats("prematch");
     285    psphotLogMemoryStats("prematch");
    289286
    290287    // generate the objects (objects unify the sources from the different images) NOTE: could
     
    315312    // re-measure the kron mags with models subtracted
    316313    // psphotKronMasked(config, view, STACK_SRC);
    317     logMemStats("before.kron.2");
     314    psphotLogMemoryStats("before.kron.2");
    318315    psphotKronIterate(config, view, STACK_RAW, 2);
    319     logMemStats("after.kron.2");
     316    psphotLogMemoryStats("after.kron.2");
    320317
    321318    // measure source size for the remaining sources
     
    435432    psphotCopyEfficiency (config, view, STACK_OUT, STACK_RAW);
    436433
    437     logMemStats("final");
     434    psphotLogMemoryStats("final");
    438435#if (0)
    439436    psphotSourceMemory(config, view, STACK_RAW);
     
    457454}
    458455
    459 static bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) {
     456bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) {
    460457
    461458    int num = psphotFileruleCount(config, filerule);
     
    483480// tries to open and read from a file it is safe
    484481// XXX: refine this and move it to psLib
    485 static void logMemStats(const char *heading) {
     482void psphotLogMemoryStats(const char *heading) {
    486483
    487484    // file containing memory statistics for this process proc. See proc(5)
Note: See TracChangeset for help on using the changeset viewer.