IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2012, 2:38:37 PM (14 years ago)
Author:
bills
Message:

Several changes to psphot and psphotStack

  1. Add function to compute the memory used by all of the sources
  2. Add function to log memory stats in psphotStack
  3. Don't load or psf match the convolved images into psphotStack unless they are needed.

This saves a lot of time if RADIAL_APERTURES are not enabled and we are measuring on the raw images

  1. Several improvements to the error handling in the Kron measurements. In particular the Mrf value

was being treated as positive when both the numerator and denomiator were negative. This is the cause
of many of the very large kron radius measurements. Set Mrf to NAN in these cases.

  1. Skip kron measurments for source if the previous Mrf measurement was NAN earlier in the process.

This saves memory by not expanding the source images when the kron measurements were actually going
to be skipped

  1. Remove the hack cut on fwhmMaj. Managing the kron radius measurements better fixes the memory explosion

that that helped to reduce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r34266 r34317  
    360360                                     pmReadout **chiReadout,
    361361                                     int index);
     362bool psphotStackAllocateOutput( const pmConfig *config, pmFPAview *view, psMetadata *recipe);
    362363
    363364bool psphotStackRemoveChisqFromInputs (pmConfig *config, const char *filerule);
     
    483484bool psphotMaskFootprint (pmReadout *readout, pmSource *source, psImageMaskType markVal);
    484485
    485 bool psphotKronIterate (pmConfig *config, const pmFPAview *view, const char *filerule);
    486 bool psphotKronIterateReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, const char * filerule, pmReadout *readout, psArray *sources, pmPSF *psf, int index);
     486bool psphotKronIterate (pmConfig *config, const pmFPAview *view, const char *filerule, int pass);
     487bool psphotKronIterateReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, const char * filerule, pmReadout *readout, psArray *sources, pmPSF *psf, int index, int pass);
    487488bool psphotKronIterate_Threaded (psThreadJob *job);
    488489
     
    509510    );
    510511
     512bool psphotSourceMemory(pmConfig *config, const pmFPAview *view, const char *filerule);
     513bool psphotSourceMemoryReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index);
     514
    511515#endif
Note: See TracChangeset for help on using the changeset viewer.