IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41920


Ignore:
Timestamp:
Nov 19, 2021, 10:48:38 AM (5 years ago)
Author:
eugene
Message:

allow expRO to be NULL

Location:
branches/eam_branches/ipp-20211108/ppStack/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackLoopByPercent.c

    r41908 r41920  
    2424
    2525    // Prepare for combination (define outputs, generate output cells)
     26    // NOTE: expmaps will be skipped if "PPSTACK.OUTPUT.EXP" -> NULL
    2627    if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", options->doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) {
    2728        psError(psErrorCodeLast(), false, "Unable to prepare for combination.");
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackPhotometry.c

    r33702 r41920  
    5757    // psphotSetNFrames
    5858    pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa);
    59     if (photRO && options->expRO->mask) {
     59    if (photRO && options->expRO && options->expRO->mask) {
    6060        psMetadataAddImage(photRO->analysis, PS_LIST_TAIL, "EXPNUM", PS_META_REPLACE, "EXPNUM image", options->expRO->mask);
    6161    }
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c

    r41910 r41920  
    362362}
    363363
     364// NOTE: expRO is allowed to be NULL
    364365bool ppStackReadoutPercent(const pmConfig *config, pmReadout *outRO, pmReadout *expRO, const psArray *readouts,
    365366                               const psVector *mask, const psVector *weightings, const psVector *exposures,
     
    368369    assert(config);
    369370    assert(outRO);
    370     assert(expRO);
    371371    assert(readouts);
    372372    assert(mask && mask->n == readouts->n && mask->type.type == PS_TYPE_VECTOR_MASK);
     
    420420    }
    421421
    422     // XXX rename minRange to rejectFraction
    423     // XXX add expmaps
    424422    if (!pmStackCombineByPercentile(outRO, expRO, stackData, minRange, maskBad, maskSuspect, maskBlank)) {
    425423        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
     
    432430    outRO->parent->parent->data_exists = true; // output chip
    433431
    434     expRO->data_exists = true;                 // expmap readout
    435     expRO->parent->data_exists = true;         // expmap cell   
    436     expRO->parent->parent->data_exists = true; // expmap chip   
    437 
     432    if (expRO) {
     433      expRO->data_exists = true;                 // expmap readout
     434      expRO->parent->data_exists = true;               // expmap cell   
     435      expRO->parent->parent->data_exists = true; // expmap chip
     436    }
     437     
    438438    psFree(stackData);
    439439    sectionNum++;
Note: See TracChangeset for help on using the changeset viewer.