IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2009, 9:53:26 AM (17 years ago)
Author:
Paul Price
Message:

Require psfTrendNx and psfTrendNy to be >= 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSFtryModel.c

    r25818 r25819  
    7272    }
    7373
    74     int orderMin = (options->psfTrendMode == PM_TREND_MAP) ? 1 : 0;
     74    // XXX set the min number of needed source more carefully (depends on psfTrendMode?)
    7575    int orderMax = PS_MAX (options->psfTrendNx, options->psfTrendNy);
    76 
    77     // XXX set the min number of needed source more carefully (depends on psfTrendMode?)
    7876    if ((sources->n < 15) && (orderMax >= 3)) orderMax = 2;
    7977    if ((sources->n < 11) && (orderMax >= 2)) orderMax = 1;
     
    8381        return NULL;
    8482    }
    85     orderMin = PS_MIN(orderMin, orderMax);
     83
     84    int orderMin;
     85    if (options->psfTrendMode == PM_TREND_MAP) {
     86        orderMin = 1;
     87        orderMax = PS_MAX(orderMax, 1);
     88    } else {
     89        orderMin = 0;
     90    }
    8691
    8792    // save the raw source mask (generated by pmPSFtryFitEXT)
Note: See TracChangeset for help on using the changeset viewer.