IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2009, 1:03:45 PM (17 years ago)
Author:
Paul Price
Message:

Adding unconvolved mask and variance as outputs in addition to the unconvolved image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackCamera.c

    r25825 r25911  
    316316        psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA.");
    317317        return false;
     318    }
     319
     320    // Unconvolved mask
     321    pmFPAfile *unconvMask = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV.MASK");
     322    if (!unconvMask) {
     323        psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV.MASK"));
     324        return false;
     325    }
     326    if (unconvMask->type != PM_FPA_FILE_MASK) {
     327        psError(PS_ERR_IO, true, "PPSTACK.UNCONV.MASK is not of type MASK");
     328        return false;
     329    }
     330    unconvMask->save = true;
     331
     332    // Unconvolved variance
     333    if (haveVariances) {
     334        pmFPAfile *unconvVariance = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV.VARIANCE");
     335        if (!unconvVariance) {
     336            psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV.VARIANCE"));
     337            return false;
     338        }
     339        if (unconvVariance->type != PM_FPA_FILE_VARIANCE) {
     340            psError(PS_ERR_IO, true, "PPSTACK.UNCONV.VARIANCE is not of type VARIANCE");
     341            return false;
     342        }
     343        unconvVariance->save = true;
    318344    }
    319345#endif
Note: See TracChangeset for help on using the changeset viewer.