mapme-initiative / mapme.biodiversity

Efficient analysis of spatial biodiversity datasets for global portfolios
https://mapme-initiative.github.io/mapme.biodiversity/
GNU General Public License v3.0
24 stars 7 forks source link

Unused argument `add_resources` in function `init_portfolio()` #238

Closed Shirobakaidou closed 4 months ago

Shirobakaidou commented 4 months ago

Hello Darius,

It seems that add_resources is now an unused argument for the function init_portfolio(). I used to set add_resources=FALSE to download additional raster files when the extent of the study area changes, or to avoid errors if the directory path to the existing raster changes.

What is the current alternative to this argument? In case it is now abandoned, what if I want to download only additional data to the existing ones when the study area changes?

Thank you for your reply, Kemeng

goergen95 commented 4 months ago

Hi, it is the default behavior of the package to download only those resources that are not already present in outdir. What has changed is that you now must run get_resources() prior to an indicator calculation in order to make sure that the internal data catalog is up to date. This applies to different analysis sharing the same output directory.

Hope this helps, let me know if you run into further issues.

Shirobakaidou commented 4 months ago

Perfect, thanks for the quick response!