Description Usage Arguments Details Value Examples
Linearly interpolate cell values between pairs of raster grids, at specified locations (e.g. "times"). Extrapolation to times beyond the last raster in the series is also possible.
1 2 | interpolate_linear(s, z_in, z_out, outdir, prefix, progress = TRUE,
write_change = TRUE, return_stack = FALSE, ...)
|
s |
A |
z_in |
A numeric vector indicating the positions (e.g., times)
associated with layers in |
z_out |
a numeric vector that indicates the times to be interpolated to
(if |
outdir |
The directory to which files will be written (recursively created if not already in existence) (character string). |
prefix |
The output files will have pattern |
progress |
Logical. Show progress bar? |
write_change |
Logical. Should the change grids (which define the change
in cells' values per timestep between each pair of time slices) be written
to |
return_stack |
Logical. Should the interpolated grids (at timesteps
|
... |
Additional arguments passed to writeRaster. |
Extrapolation below the earliest grid in s
is currently not
implemented. Interpolation is linear between pairs of time slices existing
in z_in
, and extrapolation beyond the last slice in s
, if
requested, follows the trend observed between the last and second-to-last
slice in z_in
.
Unless return_stack
is TRUE
, interpolate
creates files in outdir
, but returns NULL
, invisibly, to R.
If return_stack
is TRUE
, a RasterStack
of
interpolated Raster
objects is returned to R.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.