Closed issamyax closed 1 year ago
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")
Error in names(x) <- value : 'names' attribute [8] must be the same length as the vector [5]
The script was functional until I restarted the kernel
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
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