biomodhub / biomod2

BIOMOD is a computer platform for ensemble forecasting of species distributions, enabling the treatment of a range of methodological uncertainties in models and the examination of species-environment relationships.
87 stars 22 forks source link

Help with biomod2 4.2-6-1 resample during projection #505

Closed zpmdal closed 1 month ago

zpmdal commented 1 month ago

After running the biomod_projection function, I try to plot the output from the projection, and it automatically resample the data. I found the resolution of in the object of "spatraster" decreased to half of the input. I am wondering if I can avoid resampling so that I can have original resolution as in input, so that I can compare with original raster layers?

Thanks!

Zhi-Ping

HeleneBlt commented 1 month ago

Hello Zhi-Ping,

By default, the maximum number of cells, passed to terra::plot, is 5e5. You could play with the argument maxcell available for the plot method with biomod.projection.out object. For example, plot(myBiomodProj, maxcell = 5e6)

Hope it helps 🙂 Hélène

zpmdal commented 1 month ago

Thanks! That solved my problem.