IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2022, 5:04:42 PM (4 years ago)
Author:
eugene
Message:

merge changes from trunk (UKIRT addstar, relphot mods, dvomerge mods, ippCheck work, mlayer

Location:
branches/eam_branches/ipp-20220316
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316

  • branches/eam_branches/ipp-20220316/ppImage/src/ppImageDetrendPattern.c

    r41894 r42166  
    327327}
    328328
     329psVector *ppImageDetrendPatternCellFailures(pmFPAfile *input, const pmFPAview *inputView) {
     330   
     331    bool status = false;
     332    pmCell *cell = NULL;
     333   
     334    pmFPAview *view = pmFPAviewAlloc(0); // View for local processing
     335    *view = *inputView;
     336
     337    // extract the MEDIAN_CELL_BACKGROUND values to check for problems
     338    psVector *cellBackground = psVectorAllocEmpty (64, PS_DATA_F32);
     339    while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
     340        if (!cell->process || !cell->file_exists || !cell->data_exists) {
     341            psVectorAppend (cellBackground, NAN);
     342            continue;
     343        }
     344       
     345        // select the HDU for this cell
     346        pmHDU *hdu = pmHDUFromCell(cell);  // HDU of interest
     347       
     348        psF32 value = psMetadataLookupF32(&status, hdu->header, "BACK_VAL");
     349        psVectorAppend (cellBackground, value);
     350    }
     351    return cellBackground;
     352}
Note: See TracChangeset for help on using the changeset viewer.