acdc.analysis.analyze_correction.sum_region_ylims

sum_region_ylims(data_2d, y0, y1, x0=None, x1=None)[source]

Sum a region of a 2D image. NOTE: The upper limits (y1, x1) are EXCLUSIVE, as is typical in python. E.g. specifying y0=9, y1=11 will sum across rows 9 and 10 only.

Parameters:
  • data_2d (2D np.array) – 2-dimensional array to sum over.

  • y0 (int) – Lower row limit.

  • y1 (int) – Upper row limit (EXCLUSIVE).

  • x0 (int) – Lower column limit.

  • x1 (int) – Upper column limit (EXCLUSIVE).