Description Usage Arguments Details Value Examples
Additional functions to mask
generic function involving the RasterArray
class. The following methods are implemented:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ## S4 method for signature 'RasterArray,RasterLayer'
mask(
x,
mask,
inverse = FALSE,
maskvalue = NA,
updatevalue = NA,
updateNA = FALSE,
...
)
## S4 method for signature 'RasterArray,RasterArray'
mask(
x,
mask,
inverse = FALSE,
maskvalue = NA,
updatevalue = NA,
updateNA = FALSE,
...
)
## S4 method for signature 'RasterArray,Spatial'
mask(x, mask, inverse = FALSE, updatevalue = NA, updateNA = FALSE, ...)
## S4 method for signature 'RasterArray,RasterStackBrick'
mask(
x,
mask,
inverse = FALSE,
maskvalue = NA,
updatevalue = NA,
updateNA = FALSE,
...
)
## S4 method for signature 'RasterLayer,RasterArray'
mask(
x,
mask,
filename = "",
inverse = FALSE,
maskvalue = NA,
updatevalue = NA,
updateNA = FALSE,
...
)
## S4 method for signature 'RasterStackBrick,RasterArray'
mask(
x,
mask,
filename = "",
inverse = FALSE,
maskvalue = NA,
updatevalue = NA,
updateNA = FALSE,
...
)
|
x |
Raster* object |
mask |
Raster* object or a Spatial* object |
inverse |
logical. If |
maskvalue |
numeric. The value in |
updatevalue |
numeric. The value that cells of |
updateNA |
logical. If |
... |
additional arguments as in |
filename |
character. Optional output filename (only if x is a RasterLayer and RasterStackBrick) |
RasterArray masked with RasterLayer: every RasterLayer in the stack masked.
RasterArray masked with another RasterArray: one-to-one match between RasterLayers.
RasterArray masked with RasterStack: one-to-one match between RasterLayers.
RasterArray masked with Spatial: all layers masked with an Sp object
RasterArray masked with Spatial: all layers masked with an Sp object
RasterLayer masked with RasterArray: layer is masked out iteratively with every member of RasterArray.
A RasterArray
or RasterLayer
class object (see detaisl above).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.