From a88ca5ea7d3935a38255ebec8ad57d676da7472f Mon Sep 17 00:00:00 2001 From: edzer Date: Thu, 12 Dec 2024 16:59:22 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20r-spatia?= =?UTF-8?q?l/stars@372ac63b87f4b378ab34be3edc1cb26a25bbec49=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/stars2.html | 10 +++++----- news/index.html | 3 ++- pkgdown.yml | 2 +- reference/aggregate.stars-2.png | Bin 23440 -> 23727 bytes reference/read_stars.html | 4 ++-- search.json | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/articles/stars2.html b/articles/stars2.html index e9099cf2..79d78f25 100644 --- a/articles/stars2.html +++ b/articles/stars2.html @@ -282,7 +282,7 @@

Stars proxy objects## downsample set to 18

##    user  system elapsed 
-##   0.986   0.151   0.661
+## 0.990 0.166 0.665

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: 0x557eed7b4eb8> +## <environment: 0x55c330126eb8> ## ## [[2]] ## x[i = i, 1:10, 1:10, , drop = drop, crop = crop] ## attr(,".Environment") -## <environment: 0x557eed72e2a0> +## <environment: 0x55c3300a02a0>

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: 0x557eed42efe8> +## <environment: 0x55c32fda0fe8> ## ## 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.673   0.176   0.373
+## 0.725 0.142 0.370 diff --git a/news/index.html b/news/index.html index bfaf83e0..76274c07 100644 --- a/news/index.html +++ b/news/index.html @@ -45,7 +45,8 @@

Changelog

version 0.6-8

-
+

version 0.6-7

CRAN release: 2024-11-07