spacipy.Gem.roi

Gem.roi(x=None, y=None, width=None, height=None, inplace=False, outfile=None)

Subset the gem object with specified coordinate, width and height

Parameters:
  • x (int) – bottom-left point coordinate

  • y (int) – bottom-left point coordinate

  • width (int) – width and height from the bottom-left point

  • height (int) – width and height from the bottom-left point

  • outfile (str) – save the subsetted gem

  • inplace (bool, default False) – Whether should modify the data in place or return a modified copy.