mikejohnson51 / climateR

An R 📦 for getting point and gridded climate data by AOI
https://mikejohnson51.github.io/climateR/
MIT License
165 stars 40 forks source link

getTerraClim() returns strange response #59

Closed issamyax closed 1 year ago

issamyax commented 2 years ago

SCRIPT

pt<- st_point(c(-6.150603, 34.16744)) %>% st_sfc(crs=4326) %>% st_sf() param = c("prcp","srad","tmin","tmax") eucalyptus_climate = climateR::getTerraClim(AOI = pt, param = param, startDate = "2012-01-01", endDate = "2020-12-31")

RESPONSE

Error in names(x) <- value : 'names' attribute [8] must be the same length as the vector [5]

PS

The script was functional until I restarted the kernel

issamyax commented 2 years ago

It was a network issue,

Since the function use the port 8080 to download the *nc data and this port is saturated for my case.

Thank you