IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13609


Ignore:
Timestamp:
Jun 3, 2007, 4:28:50 PM (19 years ago)
Author:
eugene
Message:

cleanup satMask, badMask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReadout.c

    r13593 r13609  
    66
    77    // select the current recipe
    8     psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
     8    psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
    99    if (!recipe) {
    1010        psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
     
    2424
    2525    // generate mask & weight images if they don't already exit
    26     if ((!readout->mask && !pmReadoutGenerateMask(readout, pmConfigMask("SAT", config),
    27                                                   pmConfigMask("BAD", config))) ||
    28         (!readout->weight && !pmReadoutGenerateWeight(readout, true))) {
    29         psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask and/or weight");
    30         return false;
     26    psMaskType satMask = pmConfigMask("SAT", config);
     27    psMaskType badMask = pmConfigMask("BAD", config);
     28    if (!readout->mask) {
     29        if (!pmReadoutGenerateMask(readout, satMask, badMask)) {
     30            psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask");
     31            return false;
     32        }
     33    }
     34    if (!readout->weight) {
     35        if (!pmReadoutGenerateWeight(readout, true)) {
     36            psError (PSPHOT_ERR_CONFIG, false, "trouble creating weight");
     37            return false;
     38        }
    3139    }
    3240
Note: See TracChangeset for help on using the changeset viewer.