-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to use the new CMIP6 data with geodata #27
Comments
The error says that there is not function 'dropLayer' in the terra package. |
This is not really the place for Q&A (see e.g. stackoverflow for that), Anyway,
|
Thanks, Mr; Hijmans, that's the kind of little trick which makes a world of
difference! No, It solved my problem and right now I have been able to use
geodata successfully.
Em qua., 21 de set. de 2022 às 23:49, Robert Hijmans <
***@***.***> escreveu:
… This is not really the place for Q&A (see e.g. stackoverflow for that),
Anyway, currentEnv is a SpatRaster (a class defined by "terra") but you
are treating it like a RasterStack or RasterBrick (from the "raster"
package). This means that you may have to either change more things in your
script, or use
library(raster)
currentEnv <- as(currentEnv, "Raster")
—
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPMACIKJKPL7RL6333U52TV7PCNHANCNFSM6AAAAAAQL2B32A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Dr. Mauro J. Cavalcanti
E-mail: ***@***.***
Web: https://github.com/maurobio
"Life is complex. It consists of real and imaginary parts."
|
Hi
I am trying to adapt the example from here (https://rstudio-pubs-static.s3.amazonaws.com/224303_df34f170cd9144cda6477ae8232887f7.html), which uses the CMIP5 data (now obsolete), to the latest WorldClim models (http://www.worldclim.org/) using the new CMIP6 data,
For retrieving the data, I am using the geodata package.
Here is the script as far as I could run it:
[edited to just show the relevant part]
Could a working example of using the latest CMIP6 data with geodata be provided?
The text was updated successfully, but these errors were encountered: