code: def clip(
          self, array, geometries, inverted=False, clip_buffer=0
      ):
          
          return commons_clip.clip_array_with_vector(
              array, self.tile.affine, geometries,
              inverted=inverted, clip_buffer=clip_buffer*self.tile.pixel_x_size)
docs: Clip array by geometry.
  
          Parameters
          ----------
          array : array
              raster data to be clipped
          geometries : iterable
              geometries used to clip source array
          inverted : bool
              invert clipping (default: False)
          clip_buffer : int
              buffer (in pixels) geometries before applying clip
  
          Returns
          -------
          clipped array : array