rspatial / geodata

download geographic data
GNU General Public License v3.0
150 stars 15 forks source link

WorldClim: .check_cmip6() does not allow for the time period 2081–2100 #17

Closed basille closed 2 years ago

basille commented 2 years ago

Unless there is something I missed, and a good reason not to include them, the function cmip6_world() currently does not allow the download of future climate data from WorldClim for the period 2081–2100. They are however available, as can be seen from the description page or from a (randomly selected) download page.

It all comes down to modify the .check_cmip6() function (line 150 in the worldclim.R file) with:

    stopifnot(time %in% c("2021-2040", "2041-2060", "2061-2080", "2081-2100"))
basille commented 2 years ago

Closing this issue as it has been fixed in the master branch (not on CRAN yet).

rhijmans commented 2 years ago

Thanks, sorry for not responding here earlier.