-
Notifications
You must be signed in to change notification settings - Fork 40
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
no more srad data from TerraClim? #90
Comments
Hi @urskalbitzer, As always thanks for the questions!!... this one is quite annoying... Looking at there server, they chose to use a "-" delimiter rather then a "_" on 2 of their files! Thanks for the note! |
To add to the fun the OPeNDAP URL is underscore deliminated: |
Thanks for the quick response. Glad to hear that the dataset is in principle available and it looks like a relatively easy fix. I will wait for the updated catalog. |
Until this issue is fixed, is there an easy workaround to download the data? I tried to manually add a respective line to the catalog. However, in this process, the catalog was copied to the global environment and Thanks! |
Sorry for the delay - just getting caught up after AGU. Looks like it should now work after a reinstall: library(sf)
library(climateR)
system.time({
srad <-
data.frame(x = 30.356, y = .562) |>
st_as_sf(coords = c("x", "y"), crs = 4326) |>
getTerraClim(varname = "srad",
startDate = "1970-01-01",
endDate = "2020-12-31")
})
#> user system elapsed
#> 0.625 0.077 16.400
plot(srad$date, srad$srad_total, type = "o", pch = 16)
lines(srad$date, predict(lm(srad$srad_total~srad$date)),col='red', lwd = 4) Created on 2023-12-18 by the reprex package (v2.0.1) |
Hi @urskalbitzer for now I am going to close this but feel free to reopen if its not working for you! |
Hi @mikejohnson51 , |
Hey @urskalbitzer! Thanks. Please see 09fd28b. Happy holidays! |
Thanks for the quick fix. Happy holidays to you as well. |
Hi,
As usual: thanks a lot for the development and maintenance of this great package!
6-12 months ago, I used the following code without issues.
Now, however, I get the following issue:
#> Error in getTerraClim(kan.location, param = "srad", startDate = "1970-01-01", : unused argument (param = "srad")
I tried to use the new argument name
varname
instead ofparam
but also got an error:According to this webpage, "downward surface shortwave radiation" should still be part of that dataset:
https://www.climatologylab.org/terraclimate.html
Do you know what the issue is?
Thanks!
Created on 2023-12-08 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: