Description Usage Arguments Details Value Author(s) Examples
This function allows manipulating the geometry of one RasterLayer object.
1 2 |
R1 |
Is a RasterLayer object to resample. |
R2 |
Is a RasterLayer object that contains the CRS and desired geometry. |
t_res |
Numeric. Is the pixel resolution (c(xres,yres)) |
t_ext |
Numeric.(c(xmin,ymin,xmax,ymax)). set georeferenced extents of output file to be created (in target SRS). |
Routput |
Character. The destination file name. |
This function use gdalwarp
for resampling RasterLayer object and
implement the two next possible situations. The first is that you have two RasterLayer objects
and you want to change the geometries and SRC of the first using the second. The second
possibility is that you have one RasterLayer object and you know the pixel resolution
and the extents.
A RasterLayer object
Cesar Aybar <aybar1994@gmail.com>
1 2 3 4 5 6 7 | library(raster)
library(Dorado)
data("Dorado")
r_prec<-system.file("external/raster/Chirp_1981_01_01.tif",package = "Dorado")
Prec_Bolivia<-raster(r_prec)
#resampleR(R1=Prec_Bolivia,R2=Dorado$gauge,Routput = "./")
#Second Case
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.