IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39632 for trunk


Ignore:
Timestamp:
Jul 13, 2016, 11:51:19 AM (10 years ago)
Author:
eugene
Message:

temporarily disable clean_measures; explicitly use INNER_WT_MEAN for GridOps (not really used); clean up command construction in relphot_objects

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

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/GridOps.c

    r39457 r39632  
    531531
    532532  StatType stats;
    533   liststats_setmode (&stats, STATMODE);
     533  liststats_setmode (&stats, "INNER_WTMEAN");
    534534 
    535535  if (!USE_GRID) return;
  • trunk/Ohana/src/relphot/src/ImageOps.c

    r39481 r39632  
    620620  StatType stats;
    621621  liststats_setmode (&stats, "INNER_WTMEAN");
    622   // liststats_setmode (&stats, STATMODE);
    623622
    624623  // FREEZE_IMAGES only applies to mosaic data (eg, gpc1)
  • trunk/Ohana/src/relphot/src/MosaicOps.c

    r39481 r39632  
    10551055
    10561056  StatType stats;
    1057   // liststats_setmode (&stats, STATMODE);
    10581057  liststats_setmode (&stats, "INNER_WTMEAN");
    10591058
  • trunk/Ohana/src/relphot/src/relphot_objects.c

    r39621 r39632  
    228228
    229229    char *command = NULL;
    230     strextend (&command, "relphot_client -update-objects -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f -statmode %s -D CAMERA %s -D STAR_TOOFEW %d -minerror %f",
    231               table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, STATMODE, CAMERA, STAR_TOOFEW, MIN_ERROR);
     230    strextend (&command, "relphot_client -update-objects");
     231    strextend (&command, "-hostID %d", table->hosts[i].hostID);
     232    strextend (&command, "-D CATDIR %s", CATDIR);
     233    strextend (&command, "-hostdir %s", table->hosts[i].pathname);
     234    strextend (&command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
     235    strextend (&command, "-statmode %s", STATMODE);
     236    strextend (&command, "-D CAMERA %s", CAMERA);
     237    strextend (&command, "-D STAR_TOOFEW %d", STAR_TOOFEW);
     238    strextend (&command, "-minerror %f", MIN_ERROR);
    232239
    233240    if (VERBOSE)           { strextend (&command, "-v"); }
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r39621 r39632  
    5656  off_t j;
    5757
     58  // the same STATMODE is used for chip and warp averages
    5859  liststats_setmode (&results->psfstats,  STATMODE);
    5960  liststats_setmode (&results->apstats,   STATMODE);
     
    966967}
    967968
     969# if (0)
     970int magStatsByRankingIRLS (StatDataSet *dataset, StatType *stats) {
     971
     972  liststats_init (stats);
     973
     974  if (dataset->Nlist == 0) return 0;
     975
     976  // we have a list of measurements for this Nsec value, along with errors, weights, and their rank
     977  // first, sort by the rank (increasing)
     978  sort_StatDataSet (dataset);
     979
     980  // find the values with the same minimum rank:
     981  int Nranking = 0;
     982  int minRank = dataset->ranking[0]; // MIN (5, result->psfData[Nsec].ranking[0]);  -- only allow rank 5 or <
     983
     984  int i;
     985  for (i = 0; (i < dataset->Nlist) && (dataset->ranking[i] == minRank); i++, Nranking++);
     986
     987  liststats (dataset->flxlist, dataset->errlist, dataset->wgtlist, Nranking, stats);
     988  return (Nranking);
     989}
     990# endif
     991
    968992// outlier warp measurements are driving bad mean values. 
    969993int magStatsByRankingClipped (StatDataSet *dataset, StatType *stats) {
  • trunk/Ohana/src/relphot/src/setMrelFinal.c

    r39517 r39632  
    100100
    101101  // XXX make this optional? (do not clean for -averages?)
    102   if (!simpleAverage) clean_measures (catalog, 1, TRUE, flatcorr);    /* mark outliers ID_MEAS_POOR_PHOTOM */
     102  // XXX : for the moment, disable clean_measures
     103  if (!simpleAverage && FALSE) clean_measures (catalog, 1, TRUE, flatcorr);    /* mark outliers ID_MEAS_POOR_PHOTOM */
    103104
    104105  ALLOCATE (catalog[0].measureRank, char, catalog[0].Nmeasure);
Note: See TracChangeset for help on using the changeset viewer.