- Timestamp:
- Apr 12, 2011, 3:48:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/Ohana/src/relphot/src/StarOps.c
r31273 r31275 598 598 float Mcal, Mmos, Mgrid; 599 599 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; 602 602 603 603 int Nsecfilt = GetPhotcodeNsecfilt (); … … 616 616 617 617 /* 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; } 619 619 m = catalog[i].averageT[j].measureOffset; 620 620 … … 622 622 for (k = 0; k < catalog[i].averageT[j].Nmeasure; k++, m++) { 623 623 int ecode = GetPhotcodeEquivCodebyCode (catalog[i].measureT[m].photcode); 624 if (ecode != seccode) { N0++;continue;}624 if (ecode != seccode) { continue;} 625 625 Mcal = getMcal (m, i); 626 if (isnan(Mcal)) { N2++;continue;}626 if (isnan(Mcal)) { continue;} 627 627 Mmos = getMmos (m, i); 628 if (isnan(Mmos)) { N3++;continue; }628 if (isnan(Mmos)) { continue; } 629 629 Mgrid = getMgrid (m, i); 630 if (isnan(Mgrid)) { N4++;continue;}630 if (isnan(Mgrid)) { continue;} 631 631 N++; 632 632 } … … 638 638 } 639 639 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); 641 641 liststats (list, dlist, n, &stats); 642 642 free (list);
Note:
See TracChangeset
for help on using the changeset viewer.
