Description Usage Arguments Details Value See Also Examples
These methods are generics from the raster package, extended to work for lazyrasters.
1 2 |
x |
various (raster, extent) |
y |
an object with extent (for crop) |
... |
arguments passed to underlying raster function |
For crop()
this set an active window of data using the same crop()
function as the raster package. This is the data window that will be pulled
by conversion to an actual raster by as_raster()
.
lazyraster()
and crop()
return a lazyraster object, extent()
returns
a regular raster extent
raster::raster()
, raster::extent()
, raster::crop()
1 2 3 4 | sstfile <- system.file("extdata/sst.tif", package = "vapour")
lr <- lazyraster(sstfile)
## crop and stay as lazyraster
crop(lazyraster(sstfile), raster::extent(142, 143, -50, -45))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.