-
Notifications
You must be signed in to change notification settings - Fork 53
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
getData function not working #191
Comments
This works for me, so this was probably a temporary glitch (the webserver not working well). |
I'm having this same problem now, but haven't had this problem in the past. Just wondering if this is a server issue or if there's another way to fix this? Thanks! |
Hey!
Are you on a mac??
I fixed my issue by changing my cran mirror to Mac. Theres also a new version of r now which updating might also help.
https://cran.r-project.org/bin/macosx/
Let me know if that helps!
Cheers,
Sam
Sent via the Samsung Galaxy S9, an AT&T 5G Evolution capable smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Kara Layton ***@***.***>
Sent: Tuesday, April 27, 2021 10:01:36 PM
To: rspatial/raster ***@***.***>
Cc: Samantha Andres ***@***.***>; Author ***@***.***>
Subject: Re: [rspatial/raster] getData function not working (#191)
I'm having this same problem now, but haven't had this problem in the past. Just wondering if this is a server issue or if there's another way to fix this? Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#191 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APRBRVSRKNQ6ZV24PZYUTUTTK2RRVANCNFSM4WWOJQIA>.
|
Thanks Sam! I tried installing the newest version of R and still having the issue. If you don't mind me asking, which mirror are you using? I don't see an option for a Mac mirror specifically. |
Hmm, are you on a mac?
At the moment, I am using the CDN Global mirror. Perhaps the function you are using is masked by another package?
Cheers,
Sam
Samantha E. Andres
Plant Ecologist and PhD Candidate
Hawkesbury Institute for the Environment
+61 (435)-411-549
WSU Postgraduate Page<https://www.westernsydney.edu.au/hie/people/postgraduate_students/current_postgraduate_students/samantha_andres>
…________________________________
From: Kara Layton ***@***.***>
Sent: Wednesday, 28 April 2021 8:00 PM
To: rspatial/raster ***@***.***>
Cc: Samantha Andres ***@***.***>; Author ***@***.***>
Subject: Re: [rspatial/raster] getData function not working (#191)
Thanks Sam! I tried installing the newest version of R and still having the issue. If you don't mind me asking, which mirror are you using? I don't see an option for a Mac mirror specifically.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#191 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APRBRVRR76WI2HMLL5V32DTTK7MCHANCNFSM4WWOJQIA>.
|
I've been encountering the same issue for the past two days. Like others who have posted in this thread, I've used the getData function many times (most recently in March) and have never encountered this problem before! Each time, I've tried running getData as follows:
and every time, I get this message (although the size of the "downloaded" file has ranged from 89.5 - 109.3 MB across my 5 or 6 unsuccessful attempts):
I have access to .bil and .hdr files for each of the 19 bioclimatic variables from my last successful getData run in March. Is there a way of using those files to create a raster stack while the webserver is down/malfunctioning (if that is the source of the issue)? |
I'm having the same problem. Example: getData() cannot access https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/tiles/cur/tmin_23.zip. I could download the zip file, but it contains 12 .bil files and 12 .hdr files, and I have no idea of what to use. How to fix this? Is there a way to load worldclim data into R from local files? If so, how? |
perhaps you need to increase the timeout setting before using
|
Hello @rhijmans thank you for the tip. I did not know about it and it might come in handy some other time. Upon closer inspection, my problem is not the same as @rlfrench had though. I should have been more thorough, my bad. Here is my code and error message:
|
Hi @marcoplebani85 |
Hello,
I don't think their server is the issue because I can download the data by opening the link that getData can't access using my browser. Good to know about |
Hi!
I am having issues downloading worldclim data through the raster package.
See code below for error message, and let me know if I can provide any other information to help!
r<-getData('CMIP5', var='bio', res=2.5, rcp=85, model="CN" , year=70, lon=151.0034, lat=-33.8136, download=TRUE)
trying URL 'https://biogeo.ucdavis.edu/data/climate/cmip5/2_5m/cn85bi70.zip'
Content type 'application/zip' length 183455516 bytes (175.0 MB)
downloaded 8.1 MB
Error in utils::download.file(url = aurl, destfile = fn, method = "auto", :
download from 'https://biogeo.ucdavis.edu/data/climate/cmip5/2_5m/cn85bi70.zip' failed
In addition: Warning messages:
1: In utils::download.file(url = aurl, destfile = fn, method = "auto", :
downloaded length 8454144 != reported length 183455516
2: In utils::download.file(url = aurl, destfile = fn, method = "auto", :
URL 'https://data.biogeo.ucdavis.edu/data/climate/cmip5/2_5m/cn85bi70.zip': Timeout of 60 seconds was reached
The text was updated successfully, but these errors were encountered: