IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2007, 12:21:51 PM (19 years ago)
Author:
Paul Price
Message:

Adding mask types. Default action when it couldn't determine the mask type was to assume bias; changed this so that it throws an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeOptions.c

    r14356 r15476  
    215215            options->shutter = true;
    216216            options->mask = false;
    217         } else if (strcasecmp(type, "MASK") == 0) {
     217        } else if (strcasecmp(type, "MASK") == 0 ||
     218                   strcasecmp(type, "DARKMASK") == 0 ||
     219                   strcasecmp(type, "FLATMASK") == 0) {
    218220            options->zero = false;
    219221            options->scale = false;
     
    223225            options->mask = true;
    224226        } else {
    225             psLogMsg(__func__, PS_LOG_WARN, "Unrecognised image type: %s --- assuming BIAS.\n", type);
    226             options->zero = false;
    227             options->scale = false;
    228             options->darktime = false;
    229             options->fringe = false;
    230             options->shutter = false;
    231             options->mask = false;
     227            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unrecognised image type: %s", type);
     228            psFree(options);
     229            return NULL;
    232230        }
    233231    } else {
    234         psLogMsg(__func__, PS_LOG_WARN, "No calibration type specified; assuming BIAS.\n");
    235         options->zero = false;
    236         options->scale = false;
    237         options->darktime = false;
    238         options->fringe = false;
    239         options->shutter = false;
    240         options->mask = false;
     232        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "No image type specified.");
     233        psFree(options);
     234        return NULL;
    241235    }
    242236
Note: See TracChangeset for help on using the changeset viewer.