resample_input: Create an input file for Fortran program resample

View source: R/input_file_utils.R

resample_inputR Documentation

Create an input file for Fortran program resample

Description

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.

Usage

resample_input(in_raster, skip, out_raster, scratch_dir)

Arguments

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.

Value

There is no explicit return object, but an explicit side effect is writing to disk (in the scratch_dir) of the input file.


tabrasel/WetlandTools documentation built on Dec. 20, 2024, 8:50 a.m.