calc_slice_corners: Calculate the tile corner XY values in source raster/image...

Description Usage Arguments Value

Description

Calculate the tile corner XY values in source raster/image grid

Usage

1
2
calc_slice_corners(source_n_rows, source_n_cols, slice_n_rows,
  slice_n_cols, slice_overlap = 0, complete_image = FALSE)

Arguments

source_n_rows

Number of rows in source raster/image

source_n_cols

Number of columns in source raster/image

slice_n_rows

Number of rows in each tile

slice_n_cols

Number of columns in each tile

slice_overlap

Number of pixel overlap in adjacent tiles (in both X and Y directions)

complete_image

If TRUE and the tile size and overlap dimensions do not conform to covering the entire source raster/image, an additional row and column of tiles will be created that include the excluded pixels but do NOT respect the overlap value. If FALSE and the dimensions do not conform, the set of tiles will omit some pixels on the right and bottom side of the source raster/image

Value

Data frame with corner cells of one tile in each row, containing variables \['x0', 'x1', 'y0', 'y1'\] for start \(\*0\) and stop \(\*1) cell numbers in horizontal \(x\*\) and vertical \(y\*\) directions


treysp/coolit documentation built on June 5, 2019, 5:16 p.m.