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/psphotReadout.c

    r34215 r34317  
    194194    // but this is chosen above to be appropriate for the PSF objects (not galaxies)
    195195    // psphotKronMasked(config, view, filerule);
    196     psphotKronIterate(config, view, filerule);
     196    psphotKronIterate(config, view, filerule, 1);
    197197
    198198    // identify CRs and extended sources (only unmeasured sources are measured)
     
    312312    // re-measure the kron mags with models subtracted
    313313    // psphotKronMasked(config, view, filerule);
    314     psphotKronIterate(config, view, filerule);
     314    psphotKronIterate(config, view, filerule, 2);
    315315
    316316    // measure source size for the remaining sources
Note: See TracChangeset for help on using the changeset viewer.