-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Extracting whole time series for certain location takes forever! Ran this code and it is 10 minutes and it is still running:
library(pastclim)
t_ser <- location_series(data.frame(longitude = -82, latitude = 78, name = "Beaver Pond, Ellesmere Island"), bio_variables = "bio01", dataset = "Barreto2023")The PALEO-PGEM-Series_bio1_mean.nc file is big (218 MB), but not that big to justify such a long runtime.
Even this code, which is extracting time points at just every 100 ky, took 42.6 seconds:
t <- seq(0, -5000000, -100000)
t_ser <- location_series(data.frame(longitude = -82, latitude = 78, name = "Beaver Pond, Ellesmere Island"), time_bp = t, bio_variables = "bio01", dataset = "Barreto2023")42.6 seconds to extract 51 time points? That seems VERY SLOW to my taste. Unnecessarily slow.
> utils::sessionInfo()
R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Czech_Czechia.utf8 LC_CTYPE=Czech_Czechia.utf8
[3] LC_MONETARY=Czech_Czechia.utf8 LC_NUMERIC=C
[5] LC_TIME=Czech_Czechia.utf8
time zone: Europe/Prague
tzcode source: internal
attached base packages:
[1] graphics grDevices utils datasets stats methods base
other attached packages:
[1] pastclim_2.2.0 terra_1.8-60
loaded via a namespace (and not attached):
[1] compiler_4.4.1 tools_4.4.1 Rcpp_1.0.12 codetools_0.2-20Metadata
Metadata
Assignees
Labels
No labels