- Timestamp:
- Apr 8, 2022, 5:04:42 PM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageDetrendPattern.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316
- Property svn:mergeinfo changed
/trunk (added) merged: 42122,42124-42136,42142,42146,42149-42152,42154-42155
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20220316/ppImage/src/ppImageDetrendPattern.c
r41894 r42166 327 327 } 328 328 329 psVector *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.
