IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2011, 12:50:35 AM (15 years ago)
Author:
eugene
Message:

allow single direction to be chosen automatically; other minor points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r31153 r31671  
    996996            newStat->center = center;
    997997
    998             if (isfinite(newStat->minMetric) && (newStat->minMetric > 0.0) && (newStat->minMetric < minStat->minMetric)) {
     998            if (isfinite(newStat->minMetric) && (newStat->minMetric > 0.0) && (newStat->nSigma >= minSigma) && (newStat->minMetric < minStat->minMetric)) {
    999999                *minStat = *newStat;
    10001000                psLogMsg ("psModule.astrom", 4, "grid test - offset: %7.2f,%7.2f @ %6.1f deg x %7.3f (%4d pts, %5.1f sig, %5.1f var, %6.3f log metric) *",
     
    10801080    psVector *xHistNew = psVectorSmooth(NULL, xHist, tweakSmooth, tweakNsigma);
    10811081    psVector *yHistNew = psVectorSmooth(NULL, yHist, tweakSmooth, tweakNsigma);
     1082
     1083    // if we failed to smooth, just use the original vector (probably too narrow a range)
     1084    if (!xHistNew) xHistNew = psMemIncrRefCounter (xHist);
     1085    if (!yHistNew) yHistNew = psMemIncrRefCounter (yHist);
    10821086
    10831087    // select peak in x and in y
Note: See TracChangeset for help on using the changeset viewer.