RFmerge
RFmerge copied to clipboard
Extent and resolution of the DEM is different & does not match with CHIRPS in the example data
Hi, I am trying to run the RF-Merge using the trial data provided along with the package, by following the steps in the tutorial (https://cran.r-project.org/web/packages/RFmerge/vignettes/RFmerge-RainfallExample-minimal.pdf). However, when I am in the verification of covariates (section 6.2), the extent and resolution of the CHIRPS data do not match with DEM.
> nlayers(CHIRPS5km)
[1] 243
> ( nlayers(CHIRPS5km) == nlayers(PERSIANNcdr5km) )
[1] TRUE
> ( nlayers(CHIRPS5km) == nrow(ValparaisoPPts) )
[1] TRUE
> extent(CHIRPS5km)
class : Extent
xmin : -71.85
xmax : -69.95
ymin : -34
ymax : -32
> ( extent(CHIRPS5km) == extent(PERSIANNcdr5km) )
[1] TRUE
> ( extent(CHIRPS5km) == extent(ValparaisoDEM5km) )
[1] FALSE
> res(CHIRPS5km)
[1] 0.05 0.05
> ( res(CHIRPS5km) == res(PERSIANNcdr5km) )
[1] TRUE TRUE
> ( res(CHIRPS5km) == res(ValparaisoDEM5km) )
[1] FALSE FALSE
I am following the exact steps mentioned in the example tutorial. What is the solution for this?