IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2021, 8:42:33 AM (5 years ago)
Author:
eugene
Message:

some verbosity on transparency calculation; skip missing elements which could segfault

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psModules/src/astrom/pmAstrometryObjects.c

    r41925 r41927  
    4141float psVectorSystematicError (psVector *residuals, psVector *errors, float clipFraction);
    4242float pmAstrom2DSystematics (psVector *xPos, psVector *yPos, psVector *value);
     43float pmAstromSubsetSystematics (psVector *value);
    4344
    4445#define PM_ASTROMETRYOBJECTS_DEBUG 1
  • branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c

    r41924 r41927  
    15551555    for (int i = 0; i < stackData->n; i++) {
    15561556        pmStackData *data = stackData->data[i]; // Stack data for this input
    1557         pmReadout *ro = data->readout;  // Readout of interest
    1558         stackReadouts->data[i] = psMemIncrRefCounter(ro);
    1559     }
    1560 
     1557        stackReadouts->data[i] = NULL;
     1558        if (!data) continue;
     1559        pmReadout *ro = data->readout;  // Readout of interest
     1560        if (!ro) continue;
     1561        stackReadouts->data[i] = psMemIncrRefCounter(ro); // need to bump the counter since the free below will decrement
     1562    }
    15611563    if (!pmReadoutStackValidate(&minInputCols, &maxInputCols, &minInputRows, &maxInputRows, &xSize, &ySize, stackReadouts)) {
    15621564        psError(psErrorCodeLast(), false, "Input stack is not valid.");
     
    15901592
    15911593                pmStackData *data = stackData->data[i]; // Stack data for this input
     1594                if (!data) continue;
    15921595                pmReadout *ro = data->readout;  // Readout of interest
     1596                if (!ro) continue;
    15931597
    15941598                psAssert (ro->mask,     "must must exist, but does not");
     
    17181722    psFree(pixelVariances);
    17191723    psFree(expTime);
     1724
    17201725    return (true);
    17211726}
  • branches/eam_branches/ipp-20211108/psModules/src/objects/pmSourceMatch.c

    r36856 r41927  
    470470        }
    471471        psTrace("psModules.objects", 3, "Transparency for image %d: %f\n", i, trans->data.F32[i]);
     472        psLogMsg("psModules.objects", PS_LOG_INFO, "Transparency for image %d: %f\n", i, trans->data.F32[i]);
    472473    }
    473474    psFree(accum);
Note: See TracChangeset for help on using the changeset viewer.