IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2007, 3:55:17 AM (19 years ago)
Author:
rhl
Message:

Added argument to psphotRoughClass to indicate that the PSF clump's already known

File:
1 edited

Legend:

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

    r12792 r13374  
    22
    33// 2006.02.02 : no leaks
    4 bool psphotRoughClass (psArray *sources, psMetadata *recipe) {
     4bool psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump) {
    55
    6     pmPSFClump   psfClump;
     6    static pmPSFClump   psfClump;
     7    static bool havePsfClump = false;
    78
    89    psTimerStart ("psphot");
    910
    10     psfClump = pmSourcePSFClump (sources, recipe);
     11    if (findPsfClump) {
     12        psfClump = pmSourcePSFClump (sources, recipe);
     13    } else if (!havePsfClump) {
     14        psError(PSPHOT_ERR_PROG, false, "You must find the PSF clump before reusing it");
     15    } else {
     16        ;
     17    }
     18   
     19    havePsfClump = false;               // we don't know if it's valid
    1120    if (psfClump.X < 0) {
    1221        psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourcePSFClump");
     
    3140    psLogMsg ("psphot.roughclass", PS_LOG_INFO, "rough classification: %f sec\n", psTimerMark ("psphot"));
    3241
     42    havePsfClump = true;                        // we have set psfClump
     43   
    3344    return true;
    3445}
Note: See TracChangeset for help on using the changeset viewer.