IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6950


Ignore:
Timestamp:
Apr 21, 2006, 11:50:52 AM (20 years ago)
Author:
eugene
Message:

fixed vector init lengths

Location:
trunk/psphot/src
Files:
6 edited

Legend:

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

    r6900 r6950  
    4242        // temporary array for overlapping objects we find
    4343        psArray *overlap = psArrayAlloc (100);
    44         overlap->n = 0;
     44        // DROP overlap->n = 0;
    4545
    4646        // search backwards for overlapping sources
     
    112112                if (source->blends == NULL) {
    113113                    source->blends = psArrayAlloc (16);
    114                     source->blends->n = 0;
     114                    // DROP source->blends->n = 0;
    115115                }
    116116                psArrayAdd (source->blends, 16, testSource);
  • trunk/psphot/src/psphotChoosePSF.c

    r6900 r6950  
    2929
    3030    stars = psArrayAlloc (sources->n);
    31     stars->n = 0;
     31    // DROP stars->n = 0;
    3232
    3333    // select the candidate PSF stars (pointers to original sources)
  • trunk/psphot/src/psphotFindPeaks.c

    r6922 r6950  
    2222    psImageSmooth (smooth_wt, SIGMA, NSIGMA);
    2323    psLogMsg ("psphot", 4, "smooth weight: %f sec\n", psTimerMark ("psphot"));
     24
     25    // psphotSaveImage (NULL, smooth_im, "imsmooth.fits");
     26    // psphotSaveImage (NULL, smooth_wt, "wtsmooth.fits");
    2427
    2528    psTimerStart ("psphot");
  • trunk/psphot/src/psphotFitSet.c

    r6851 r6950  
    99
    1010    psArray *modelSet = psArrayAlloc (16);
    11     modelSet->n = 0;
     11    // DROP modelSet->n = 0;
    1212
    1313    while (fscanf (f, "%lf %lf %lf", &x, &y, &Io) == 3) {
  • trunk/psphot/src/psphotImageMedian.c

    r6922 r6950  
    107107    pmReadout *backSub = pmFPAfileThisReadout (config->files, view, "PSPHOT.BACKSUB");
    108108
     109    // psphotSaveImage (NULL, image, "image.fits");
     110    // psphotSaveImage (NULL, background->image, "back.fits");
     111    // psphotSaveImage (NULL, mask, "mask.fits");
     112
    109113    // subtract the background model (save in backSub, if requested)
    110114    for (int j = 0; j < image->numRows; j++) {
  • trunk/psphot/src/psphotSourceStats.c

    r6862 r6950  
    1616
    1717    sources = psArrayAlloc (peaks->n);
    18     sources->n = 0;
     18    // DROP sources->n = 0;
    1919
    2020    for (int i = 0; i < peaks->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.