IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42718


Ignore:
Timestamp:
Aug 14, 2024, 5:23:21 PM (2 years ago)
Author:
hgao
Message:

restrict 2D overscan subtraction to cells with bg<500 ADU

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2dbias/ppImage/src/ppImageDetrendReadout.c

    r42679 r42718  
    153153                ESCAPE(false, "Unable to determine whether 2D Overscan subtraction should be applied.");
    154154            }
     155            // set doTwoDOverscan to False if the cell background is larger than 500 ADU or smaller than zero (peculiar)
     156            if (doTwoDOverscan)
     157            {
     158                float backest = psMetadataLookupF32(NULL, input->parent->concepts, "CELL.BACKEST");
     159                if (!isfinite(backest) || backest > 500 || backest < 0)
     160                {
     161                    doTwoDOverscan = false;
     162                }
     163            }
    155164        }
    156165        if (!pmOverscanSubtract(input, options->overscan, doTwoDOverscan))
Note: See TracChangeset for help on using the changeset viewer.