IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39344


Ignore:
Timestamp:
Feb 11, 2016, 11:33:44 AM (10 years ago)
Author:
eugene
Message:

report calibrated images

Location:
trunk/Ohana/src/relphot
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r38986 r39344  
    393393Image        *getimages           PROTO((off_t *N, off_t **LineNumber));
    394394ImageSubset  *getimages_subset    PROTO((off_t *N));
    395 void          global_stats        PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr));
     395void          global_stats        PROTO((Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr, int nloop));
    396396void          initGrid            PROTO((int dX, int dY));
    397397void          initGridBins        PROTO((Catalog *catalog, int Ncatalog));
  • trunk/Ohana/src/relphot/src/ImageOps.c

    r39289 r39344  
    623623  Nfew = Nbad = Nmos = Ngrid = Nrel = Nsys = 0;
    624624
     625  int Ncalibrated = 0;
    625626  for (i = 0; i < Nimage; i++) {
    626627   
     
    631632    }     
    632633
     634    // only freeze the gpc1 chips
    633635    if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
    634636
     
    729731    image[i].nFitPhotom = N;
    730732    image[i].Xm    = 100.0*log10(stats.chisq);
     733    Ncalibrated ++;
    731734
    732735    if (PLOTSTUFF) {
     
    752755  free (dMlist);
    753756
     757  fprintf (stderr, "%d images calibrated\n", Ncalibrated);
    754758  fprintf (stderr, "%d images marked having too few measurements (Nbad: %d, Nmos: %d, Ngrid: %d, Nrel: %d, Nsys: %d)\n", Nfew, Nbad, Nmos, Ngrid, Nrel, Nsys);
    755759
  • trunk/Ohana/src/relphot/src/global_stats.c

    r38466 r39344  
    11# include "relphot.h"
    22
    3 void global_stats (Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr) {
     3void global_stats (Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr, int nloop) {
    44
    55  StatType stN, stX, stS, imN, imX, imM, imD, msM, msX, msN, msD;
     
    2323
    2424  int Ns;
    25   for (Ns = 0; Ns < Nphotcodes; Ns++) {
     25  for (Ns = 0; (nloop % 3 == 3) && (Ns < Nphotcodes); Ns++) {
    2626
    2727    int thisCode = photcodes[Ns][0].code;
  • trunk/Ohana/src/relphot/src/relphot_images.c

    r39289 r39344  
    7979    setExclusions (catalog, Ncatalog, TRUE);
    8080
    81     global_stats (catalog, Ncatalog, flatcorr);
     81    global_stats (catalog, Ncatalog, flatcorr, 0);
    8282
    8383    if (PLOTSTUFF) {
     
    139139      if ((i > 8) && (i % 8 == 5)) clean_images ();
    140140
    141       // if ((i == 1) || (i == 5) || (i ==  9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE);
    142       // if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog);
    143       // if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics ();
    144       // if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images ();
    145       if (i % 3 == 2) global_stats (catalog, Ncatalog, flatcorr);
     141      global_stats (catalog, Ncatalog, flatcorr, i);
    146142      MARKTIME("-- finished loop %d: %f sec\n", i, dtime);
    147143    }
  • trunk/Ohana/src/relphot/src/relphot_parallel_images.c

    r39289 r39344  
    9393  setExclusions (catalog, Ncatalog, TRUE);
    9494
    95   global_stats (catalog, Ncatalog, flatcorr);
     95  global_stats (catalog, Ncatalog, flatcorr, 0);
    9696
    9797  if (PLOTSTUFF) {
     
    135135    if ((i > 8) && (i % 8 == 5)) clean_images ();
    136136
    137     if (i % 3 == 2) global_stats (catalog, Ncatalog, flatcorr);
     137    global_stats (catalog, Ncatalog, flatcorr, i);
    138138    MARKTIME("-- finished loop %d: %f sec\n", i, dtime);
    139139  }
Note: See TracChangeset for help on using the changeset viewer.