deprecated | R Documentation |
Spatial*
or Raster*
objectThis function is deprecated. Use cropTo
. If used, all arguments will be passed
to cropTo
anyway.
fixErrors
–> fixErrosTerra
Deprecated. Use projectTo()
.
maskInputs
is deprecated. Use maskTo()
See writeTo()
cropInputs(
x,
studyArea,
rasterToMatch,
verbose = getOption("reproducible.verbose", 1),
...
)
## Default S3 method:
cropInputs(x, ...)
fixErrors(
x,
objectName,
attemptErrorFixes = TRUE,
useCache = getOption("reproducible.useCache", FALSE),
verbose = getOption("reproducible.verbose", 1),
testValidity = getOption("reproducible.testValidity", TRUE),
...
)
## Default S3 method:
fixErrors(
x,
objectName,
attemptErrorFixes = TRUE,
useCache = getOption("reproducible.useCache", FALSE),
verbose = getOption("reproducible.verbose", 1),
testValidity = getOption("reproducible.testValidity", TRUE),
...
)
projectInputs(
x,
targetCRS,
verbose = getOption("reproducible.verbose", 1),
...
)
## Default S3 method:
projectInputs(x, targetCRS, ...)
maskInputs(x, studyArea, ...)
writeOutputs(
x,
...,
overwrite = getOption("reproducible.overwrite", NULL),
verbose = getOption("reproducible.verbose", 1)
)
## Default S3 method:
writeOutputs(
x,
...,
overwrite = getOption("reproducible.overwrite", FALSE),
verbose = getOption("reproducible.verbose", 1)
)
x |
The object save to disk i.e., write outputs |
studyArea |
|
rasterToMatch |
Template |
verbose |
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., |
... |
Passed into |
objectName |
Optional. This is only for messaging; if provided, then messages relayed to user will mention this. |
attemptErrorFixes |
Will attempt to fix known errors. Currently only some failures
for |
useCache |
Logical, default |
testValidity |
Logical. If |
targetCRS |
The CRS of x at the end of this function (i.e., the goal) |
overwrite |
Logical. Should file being written overwrite an existing file if it exists. |
A GIS file (e.g., RasterLayer, SpatRaster etc.) that has been appropriately cropped.
A GIS file (e.g., RasterLayer, SpatRaster etc.) that has been attempted to be fixed, if it finds errors.
A file of the same type as starting, but with projection (and possibly other characteristics, including resolution, origin, extent if changed).
A GIS file (e.g., RasterLayer, SpatRaster etc.) that has been appropriately reprojected.
A GIS file (e.g., RasterLayer, SpatRaster etc.) that has been appropriately masked.
A GIS file (e.g., SpatRaster etc.) that has been appropriately written to disk. In the case of vector datasets, this will be a side effect. In the case of gridded objects (Raster*, SpatRaster), the object will have a file-backing.
Eliot McIntire, Jean Marchal, Ian Eddy, and Tati Micheletti
Eliot McIntire and Jean Marchal
fixErrorsIn()
, postProcessTo()
, postProcess()
projectTo()
maskTo()
, postProcessTo()
for related examples
if (requireNamespace("terra", quietly = TRUE)) {
r <- terra::rast(terra::ext(0, 100, 0, 100), vals = 1:1e2)
tf <- tempfile(fileext = ".tif")
writeOutputs(r, tf)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.