IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2021, 9:08:51 AM (5 years ago)
Author:
eugene
Message:

add log message for missing transparency

File:
1 edited

Legend:

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

    r41529 r41930  
    341341            options->norm = psVectorAlloc(num, PS_TYPE_F32);
    342342            for (int i = 0; i < num; i++) {
    343               if (!isfinite(trans->data.F32[i])) {
    344                 continue;
    345               }
     343                if (!isfinite(trans->data.F32[i])) {
     344                    psLogMsg("ppStack", PS_LOG_INFO, "Non-finite transparency, skipping correction for image %d: %f mag (%f) (with inputMask value %d)\n",
     345                             i, NAN, trans->data.F32[i], inputMask->data.U8[i]);
     346                    continue;
     347                }
    346348                psArray *sources = sourceLists->data[i]; // Sources of interest
    347349                float magCorr = zp->data.F32[i] - trans->data.F32[i] - 2.5*log10(options->sumExposure) - airmassTerm * airmassTarget;
Note: See TracChangeset for help on using the changeset viewer.