240240>
241241> suppressPackageStartupMessages(library(spacetime))
242242>
243- > Sys.setenv(TZ="")
244243> tm = as.POSIXct("2019-02-25 15:37:24 CET")
245244> n = 4
246245> s = stars:::st_stars(list(foo = array(1:(n^3), rep(n,3))),
@@ -256,10 +255,10 @@ attribute(s):
256255 Min. 1st Qu. Median Mean 3rd Qu. Max.
257256foo 1 16.75 32.5 32.5 48.25 64
258257dimension(s):
259- from to offset delta refsys x/y
260- x 1 4 10 0.5 NA [x]
261- y 1 4 0 -0.7 NA [y]
262- time 1 4 2019-02-25 15:37:25 Universal 1 secs POSIXct
258+ from to offset delta refsys x/y
259+ x 1 4 10 0.5 NA [x]
260+ y 1 4 0 -0.7 NA [y]
261+ time 1 4 2019-02-25 15:37:25 UTC 1 secs POSIXct
263262>
264263> as.data.frame(s)
265264 x y time foo
@@ -431,8 +430,8 @@ Slot "time":
4314302019-02-25 15:37:28 4
432431
433432Slot "endTime":
434- [1] "2019-02-25 15:37:26 Universal " "2019-02-25 15:37:27 Universal "
435- [3] "2019-02-25 15:37:28 Universal " "2019-02-25 15:37:29 Universal "
433+ [1] "2019-02-25 15:37:26 UTC " "2019-02-25 15:37:27 UTC "
434+ [3] "2019-02-25 15:37:28 UTC " "2019-02-25 15:37:29 UTC "
436435
437436> stplot(s.stfdf, scales = list(draw = TRUE))
438437>
@@ -442,10 +441,10 @@ attribute(s):
442441 Min. 1st Qu. Median Mean 3rd Qu. Max.
443442foo 1 16.75 32.5 32.5 48.25 64
444443dimension(s):
445- from to offset delta refsys x/y
446- x 1 4 10 0.5 NA [x]
447- y 1 4 -1.11e-16 -0.7 NA [y]
448- time 1 4 2019-02-25 15:37:25 Universal 1 secs POSIXct
444+ from to offset delta refsys x/y
445+ x 1 4 10 0.5 NA [x]
446+ y 1 4 -1.11e-16 -0.7 NA [y]
447+ time 1 4 2019-02-25 15:37:25 UTC 1 secs POSIXct
449448> plot(s2, col = sf.colors(), axes = TRUE)
450449> all.equal(s, s2, check.attributes = FALSE)
451450[1] TRUE
@@ -460,6 +459,7 @@ time 1 4 2019-02-25 15:37:25 Universal 1 secs POSIXct
460459> g = gstat(NULL, "zinc", zinc~1, meuse_sf, model = vgm(1, "Exp", 300), nmax = 10)
461460> g = gstat(g, "lead", lead~1, meuse_sf, model = vgm(1, "Exp", 300), nmax = 10, fill.cross = TRUE)
462461> set.seed(123)
462+ > ## IGNORE_RDIFF_BEGIN
463463> (p = predict(g, meuse.grid, nsim = 5))
464464drawing 5 multivariate GLS realisations of beta...
465465[using conditional Gaussian simulation]
@@ -473,7 +473,8 @@ dimension(s):
473473x 1 78 178440 40 NULL [x]
474474y 1 104 333760 -40 NULL [y]
475475sample 1 5 NA NA sim1,...,sim5
476+ > ## IGNORE_RDIFF_END
476477>
477478> proc.time()
478479 user system elapsed
479- 5.792 7.819 4.934
480+ 5.561 8.100 4.738
0 commit comments