View source: R/input_file_utils.R
resample_input | R Documentation |
Resample downsamples a raster using increments of the raster pixel size. It uses no interpolation; output pixel corner locations match input pixel corners, the pixels are just bigger. Resample is primarily used to downsample a DEM, in which case instead of pixel corners, we're dealing with grid points or cells.
resample_input(in_raster, skip, out_raster, scratch_dir)
in_raster |
Character string |
skip |
integer, number of cells to skip. |
out_raster |
Character string, resampled input raster |
scratch_dir |
Character string: Directory for temporary files. The input file is written to the scratch_dir. |
There is no explicit return object, but an explicit side effect is writing to disk (in the scratch_dir) of the input file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.