IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 17, 2010, 9:10:35 AM (16 years ago)
Author:
eugene
Message:

generate a weight window based on the fwhms; pass around fwhm to ensure the window can be calculated; plug some leaks; better test outputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionVisual.c

    r29148 r29449  
    146146    }
    147147    pmVisualScaleImage(kapa1, canvas, "Subtraction_Stamps", 0, true);
     148    psFree(canvas);
    148149
    149150    pmVisualAskUser(&plotStamps);
     
    281282            }
    282283        }
    283         fprintf (stderr, "kernel %d, sum %f\n", i, sum);
     284        // fprintf (stderr, "kernel %d, sum %f\n", i, sum);
    284285    }                                                   
    285286       
    286287    pmVisualScaleImage(kapa1, output, "Image", 0, true);
     288    psFree(output);
    287289    pmVisualAskUser(&plotImage);
    288290    return true;
     
    309311        if (!isfinite(stamp->flux)) continue;
    310312        if (!stamp->convolutions1 && !stamp->convolutions2) continue;
    311         fprintf (stderr, "flux: %f, maxFlux: %f  ", stamp->flux, maxFlux);
     313        // fprintf (stderr, "flux: %f, maxFlux: %f  ", stamp->flux, maxFlux);
    312314        if (!maxStamp) {
    313315            maxFlux = stamp->flux;
    314316            maxStamp = stamp;
    315             fprintf (stderr, "maxStamp %d\n", i);
     317            // fprintf (stderr, "maxStamp %d\n", i);
    316318            continue;
    317319        } else {
    318             fprintf (stderr, "\n");
     320            // fprintf (stderr, "\n");
    319321        }
    320322        if (stamp->flux > maxFlux) {
     
    361363                }
    362364            }
    363             fprintf (stderr, "kernel %d, sum %f, sum2: %e\n", i, sum, sum2);
     365            // fprintf (stderr, "kernel %d, sum %f, sum2: %e\n", i, sum, sum2);
    364366        }               
    365367        pmVisualScaleImage(kapa2, output, "Image", 0, true);
     
    403405                }
    404406            }
    405             fprintf (stderr, "kernel %d, sum %f, sum2: %e\n", i, sum, sum2);
     407            // fprintf (stderr, "kernel %d, sum %f, sum2: %e\n", i, sum, sum2);
    406408        }               
    407409        pmVisualScaleImage(kapa2, output, "Image", 1, true);
     
    412414            psFitsClose(fits);
    413415        }
     416        psFree(output);
    414417    }                                   
    415418       
     
    708711    psFree (x);
    709712    psFree (y);
     713    psFree (polyValues);
    710714
    711715    pmVisualAskUser(NULL);
Note: See TracChangeset for help on using the changeset viewer.