IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31056


Ignore:
Timestamp:
Mar 25, 2011, 2:57:56 PM (15 years ago)
Author:
eugene
Message:

add filter requirements for flat-type and similar detrends

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDetrendDB.c

    r29833 r31056  
    137137    psFree (realCamera);
    138138
     139    // require a filter for certain types of detrends:
     140    if ((options->type == PM_DETREND_TYPE_FLAT) && !options->filter) {
     141        psError (PM_ERR_CONFIG, false, "requesting a FLAT-class of detrend without a filter");
     142        goto failure;
     143    }
     144    if ((options->type == PM_DETREND_TYPE_FLATCORR) && !options->filter) {
     145        psError (PM_ERR_CONFIG, false, "requesting a FLATCORR-class of detrend without a filter");
     146        goto failure;
     147    }
     148    if ((options->type == PM_DETREND_TYPE_FRINGE) && !options->filter) {
     149        psError (PM_ERR_CONFIG, false, "requesting a FRINGE-class of detrend without a filter");
     150        goto failure;
     151    }
     152
     153    // add the restrictions
    139154    if (options->filter) {
    140155        psStringAppend(&line, " -filter %s", options->filter);
Note: See TracChangeset for help on using the changeset viewer.