IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41672


Ignore:
Timestamp:
Jun 29, 2021, 11:13:17 AM (5 years ago)
Author:
eugene
Message:

add option to choose OLS or IRLS for the final pass

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

Legend:

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

    r41671 r41672  
    428428double CLOUD_TOLERANCE;
    429429int    VARIABILITY_STATS;
     430int    USE_OLS_FOR_AVERAGES;
    430431
    431432int    PARALLEL;
  • trunk/Ohana/src/relphot/src/args.c

    r41671 r41672  
    440440    remove_argument (N, &argc, argv);
    441441    VARIABILITY_STATS = TRUE;
     442  }
     443  USE_OLS_FOR_AVERAGES = FALSE;
     444  if ((N = get_argument (argc, argv, "-use-ols-for-averages"))) {
     445    remove_argument (N, &argc, argv);
     446    USE_OLS_FOR_AVERAGES = TRUE;
    442447  }
    443448
     
    876881    VARIABILITY_STATS = TRUE;
    877882  }
     883  USE_OLS_FOR_AVERAGES = FALSE;
     884  if ((N = get_argument (argc, argv, "-use-ols-for-averages"))) {
     885    remove_argument (N, &argc, argv);
     886    USE_OLS_FOR_AVERAGES = TRUE;
     887  }
    878888
    879889  MIN_ERROR = 0.001;
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r41671 r41672  
    8181  SetMrelInfoReset (results); // reset the counters
    8282
    83   useOLS = UseStandardOLS (ZPT_STARS);
     83  // XXX if we are iterating on the image zero points, we should use OLS
     84  // until we have performed a few iterations.  UseStandardOLS() returns
     85  // true (use OLS) or false depending on the zero point mode (TGROUP, MOSAIC, IMAGE) and the
     86  // number of iterations.
     87
     88  // On the final pass (isSetMrelFinal), we should use OLS or IRLS depending on
     89  // the user choice (USE_OLS_FOR_AVERAGES)
     90
     91  useOLS = isSetMrelFinal ? USE_OLS_FOR_AVERAGES : UseStandardOLS (ZPT_STARS);
    8492  for (j = 0; j < catalog[Nc].Naverage; j++) {
    8593
Note: See TracChangeset for help on using the changeset viewer.