pynrc.reduce.ref_pixels.calc_avg_cols¶
- pynrc.reduce.ref_pixels.calc_avg_cols(refs_left=None, refs_right=None, avg_type='frame', mean_func=<function median>, **kwargs)[source]¶
Calculate average of column references
Determine the average values for the column references, which is subsequently used to estimate the 1/f noise contribution.
- Parameters
refs_left (ndarray) – Left reference columns.
refs_right (ndarray) – Right reference columns.
avg_type (str) – Type of ref column averaging to perform to determine ref pixel variation. Allowed values are ‘pixel’, ‘frame’, or ‘int’. ‘pixel’ : For each ref pixel, subtract its avg value from all frames. ‘frame’ : For each frame, get avg ref pixel values and subtract framewise. ‘int’ : Calculate avg of all ref pixels within the ramp and subtract.
mean_func (func) – Function to use to calculate averages of reference columns