Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extent and resolution of the DEM is different & does not match with CHIRPS in the example data #8

Open
pradeeps31 opened this issue Dec 13, 2022 · 0 comments

Comments

@pradeeps31
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant