## downsample set to 18
## user system elapsed
-## 1.010 0.208 0.759
+## 0.986 0.197 0.703
This takes only around 1 second, since only those pixels are read
that can be seen on the plot. If we read the entire image in memory
first, as we would do with
@@ -390,12 +390,12 @@ Lazy evaluation, changing eva
## [[1]]
## adrop(x = x, drop = drop)
## attr(,".Environment")
-## <environment: 0x557b73e26888>
+## <environment: 0x55d180b4b708>
##
## [[2]]
## x[i = i, 1:10, 1:10, , drop = drop, crop = crop]
## attr(,".Environment")
-## <environment: 0x557b73dc6af0>
+## <environment: 0x55d180ac4af0>
Doing this allows for optimizing the order in which operations are
done. As an example, for st_apply
, reading can be done
sequentially over the dimensions over which the function is applied:
@@ -458,14 +458,14 @@ Plotting with changed evaluation
## st_apply(X = X, MARGIN = MARGIN, FUN = FUN, CLUSTER = CLUSTER,
## PROGRESS = PROGRESS, FUTURE = FUTURE, rename = rename, .fname = .fname)
## attr(,".Environment")
-## <environment: 0x557b73ac58e0>
+## <environment: 0x55d1807c5838>
##
## This object has pending lazy operations: dimensions as printed may not reflect this.
system.time(plot(s2.ndvi)) # read - compute ndvi - plot
## downsample set to 18
## user system elapsed
-## 0.704 0.174 0.391
+## 0.702 0.164 0.375
diff --git a/articles/stars3.html b/articles/stars3.html
index 4bb984d8..96680330 100644
--- a/articles/stars3.html
+++ b/articles/stars3.html
@@ -20,7 +20,7 @@