IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31275


Ignore:
Timestamp:
Apr 12, 2011, 3:48:58 PM (15 years ago)
Author:
eugene
Message:

remove extra test print statements

Location:
branches/eam_branches/ipp-20110404/Ohana/src/relphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/Ohana/src/relphot/src/ImageOps.c

    r31273 r31275  
    126126    }
    127127  }
    128   fprintf (stderr, "matched %d detections to images\n", Nmatch);
     128 // fprintf (stderr, "matched %d detections to images\n", Nmatch);
    129129}
    130130
  • branches/eam_branches/ipp-20110404/Ohana/src/relphot/src/MosaicOps.c

    r31273 r31275  
    285285    }
    286286  }
    287   fprintf (stderr, "matched %d detections to mosaics\n", Nmatch);
     287  // fprintf (stderr, "matched %d detections to mosaics\n", Nmatch);
    288288  return (TRUE);
    289289}
     
    432432      mark = (N < IMAGE_TOOFEW) || (N < IMAGE_GOOD_FRACTION*Nlist[i]);
    433433      if (mark) {
    434         if (1 || VERBOSE2) { fprintf (stderr, "marked mosaic %s ("OFF_T_FMT"), ("OFF_T_FMT" < %d) || ("OFF_T_FMT" < %f*"OFF_T_FMT")\n", image[imlist[i][0]].name,  i,  N, IMAGE_TOOFEW,  N, IMAGE_GOOD_FRACTION,  Nlist[i]); }
     434        if (VERBOSE2) { fprintf (stderr, "marked mosaic %s ("OFF_T_FMT"), ("OFF_T_FMT" < %d) || ("OFF_T_FMT" < %f*"OFF_T_FMT")\n", image[imlist[i][0]].name,  i,  N, IMAGE_TOOFEW,  N, IMAGE_GOOD_FRACTION,  Nlist[i]); }
    435435        mosaic[i].flags |= ID_IMAGE_PHOTOM_FEW;
    436436        Nfew ++;
     
    499499    imageOffset[i] = 0.0;
    500500
    501     if (fabs(mosaic[i].Mcal) < CLOUD_TOLERANCE) {
     501    if (VERBOSE2 && (fabs(mosaic[i].Mcal) < CLOUD_TOLERANCE)) {
    502502      fprintf (stderr, "cloud-free: %s : %f\n", image[imlist[i][0]].name, mosaic[i].Mcal);
    503503    }
    504     if (mosaic[i].Mcal < -CLOUD_TOLERANCE) {
     504    if (VERBOSE2 && (mosaic[i].Mcal < -CLOUD_TOLERANCE)) {
    505505      imageOffset[i] = -mosaic[i].Mcal;
    506506      // NOTE the negative sign: down below, we are going to add in the negative of Mcal
     
    508508      fprintf (stderr, "anti-clouds: %s : %f\n", image[imlist[i][0]].name, mosaic[i].Mcal);
    509509    }
    510     if (mosaic[i].Mcal > CLOUD_TOLERANCE) {
     510    if (VERBOSE2 && (mosaic[i].Mcal > CLOUD_TOLERANCE)) {
    511511      fprintf (stderr, "cloudy    : %s : %f\n", image[imlist[i][0]].name, mosaic[i].Mcal);
    512512    }
     
    626626    }
    627627    imageOffset[i] = dM / NSlist[i];
    628     fprintf (stderr, "adjust image: %s : (%f %d) : %f\n", image[imlist[i][0]].name, dM, NSlist[i], imageOffset[i]);
    629   }
    630 
    631   for (i = 0; i < Nmosaic; i++) {
    632     fprintf (stderr, "correction: %s : %f\n", image[imlist[i][0]].name, imageOffset[i]);
    633   }
     628    // fprintf (stderr, "adjust image: %s : (%f %d) : %f\n", image[imlist[i][0]].name, dM, NSlist[i], imageOffset[i]);
     629  }
     630
     631  // for (i = 0; i < Nmosaic; i++) {
     632  //   fprintf (stderr, "correction: %s : %f\n", image[imlist[i][0]].name, imageOffset[i]);
     633  // }
    634634
    635635  // apply all offset values to the mosaics
     
    747747    n++;
    748748  }
    749   fprintf (stderr, "Nmosaic: "OFF_T_FMT", n: "OFF_T_FMT"\n",  Nmosaic,  n);
     749  // fprintf (stderr, "Nmosaic: "OFF_T_FMT", n: "OFF_T_FMT"\n",  Nmosaic,  n);
    750750
    751751  liststats (list, dlist, n, &stats);
  • branches/eam_branches/ipp-20110404/Ohana/src/relphot/src/StarOps.c

    r31273 r31275  
    598598  float Mcal, Mmos, Mgrid;
    599599  StatType stats;
    600   int N1, N2, N3, N4, N0;
    601   N1 = N2 = N3 = N4 = N0 = 0;
     600  // int N1, N2, N3, N4, N0;
     601  // N1 = N2 = N3 = N4 = N0 = 0;
    602602
    603603  int Nsecfilt = GetPhotcodeNsecfilt ();
     
    616616
    617617      /* calculate the average value for a single star */
    618       if (catalog[i].secfilt[Nsecfilt*j+Nsec].flags & STAR_BAD) { N1++; continue;  }
     618      if (catalog[i].secfilt[Nsecfilt*j+Nsec].flags & STAR_BAD) { continue;  }
    619619      m = catalog[i].averageT[j].measureOffset;
    620620
     
    622622      for (k = 0; k < catalog[i].averageT[j].Nmeasure; k++, m++) {
    623623        int ecode = GetPhotcodeEquivCodebyCode (catalog[i].measureT[m].photcode);
    624         if (ecode != seccode) { N0++; continue;}
     624        if (ecode != seccode) { continue;}
    625625        Mcal = getMcal  (m, i);
    626         if (isnan(Mcal)) { N2++; continue;}
     626        if (isnan(Mcal)) { continue;}
    627627        Mmos = getMmos  (m, i);
    628         if (isnan(Mmos)) { N3++; continue; }
     628        if (isnan(Mmos)) { continue; }
    629629        Mgrid = getMgrid (m, i);
    630         if (isnan(Mgrid)) { N4++; continue;}
     630        if (isnan(Mgrid)) { continue;}
    631631        N++;
    632632      }
     
    638638  }
    639639
    640   fprintf (stderr, "N1: %d, N2: %d, N3: %d, N4: %d, N0: %d\n", N1, N2, N3, N4, N0);
     640  // fprintf (stderr, "N1: %d, N2: %d, N3: %d, N4: %d, N0: %d\n", N1, N2, N3, N4, N0);
    641641  liststats (list, dlist, n, &stats);
    642642  free (list);
Note: See TracChangeset for help on using the changeset viewer.