fmeobjects.FMERasterTools.subset

FMERasterTools.subset(startRow, numRows, startCol, numCols, paddingTop, paddingLeft, paddingBottom, paddingRight, raster, parms)

Performs clipping of a raster using pixel bounds rather than ground coordinates.

Parameters:
  • startRow (int) – Starting row. Value cannot be negative number.

  • numRows (int) – Total number of rows of the new raster. Value must be greater than 0.

  • startCol (int) – Starting column. Value cannot be negative number.

  • numCols (int) – Total number of columns of the new raster. Value must be greater than 0.

  • paddingTop (int) – Number of rows of padding on the top of the subset portion of the raster.

  • paddingBottom (int) – Number of rows of padding on the bottom of the subset portion of the raster. Value cannot be negative number.

  • paddingRight (int) – Number of columns of padding on the right of the subset portion of the raster. Value cannot be negative number.

  • paddingLeft (int) – Number of columns of padding on the left of the subset portion of the raster. Value cannot be negative number.

  • raster (FMERaster) – The raster Object to apply clipping to.

  • parms (dict[str, str]) – (Optional) Specifies name-value pairs representing additional parameters. Currently, no additional parameters exist.

Return type:

FMERaster

Returns:

The raster after clipping.

Raises:

FMEException – An exception is raised if an error occurred.