From 643203c871c9f7182a3d268d875d545f9bf665c4 Mon Sep 17 00:00:00 2001 From: Felipe Carlos Date: Tue, 19 Nov 2024 18:49:59 -0300 Subject: [PATCH 1/3] fix tmap plot --- R/api_tmap_v4.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/api_tmap_v4.R b/R/api_tmap_v4.R index a0ffa525..d0aa08e8 100644 --- a/R/api_tmap_v4.R +++ b/R/api_tmap_v4.R @@ -332,7 +332,7 @@ ) ) + tmap::tm_graticules( - tmap_params[["graticules_labels_size"]] + labels.size = tmap_params[["graticules_labels_size"]] ) + tmap::tm_compass() + tmap::tm_layout( From 631ea565d199a89fc4e9f4a9676b9ea08b2f8bd0 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 19 Nov 2024 21:50:55 +0000 Subject: [PATCH 2/3] fix segmentation error --- R/api_raster_terra.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/api_raster_terra.R b/R/api_raster_terra.R index d65e36c9..83a006f4 100644 --- a/R/api_raster_terra.R +++ b/R/api_raster_terra.R @@ -562,5 +562,5 @@ #' @noRd #' @export .raster_extract_polygons.terra <- function(r_obj, dissolve = TRUE, ...) { - terra::as.polygons(r_obj, dissolve = TRUE, aggregate = FALSE, ...) + terra::as.polygons(r_obj, dissolve = TRUE, ...) } From d0fd023a5b02a7d6842f19c24bab0c47eb9cee99 Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 19 Nov 2024 21:51:06 +0000 Subject: [PATCH 3/3] update docs --- man/sits_cube_copy.Rd | 4 ++++ man/sits_merge.Rd | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/man/sits_cube_copy.Rd b/man/sits_cube_copy.Rd index 0c402715..a5f22d5f 100644 --- a/man/sits_cube_copy.Rd +++ b/man/sits_cube_copy.Rd @@ -8,6 +8,7 @@ sits_cube_copy( cube, roi = NULL, res = NULL, + crs = NULL, n_tries = 3, multicores = 2L, output_dir, @@ -27,6 +28,9 @@ named lat/long values \item{res}{An integer value corresponds to the output spatial resolution of the images. Default is NULL.} +\item{crs}{Reference system for output cube (by default, +the same CRS from the input cube is assumed)} + \item{n_tries}{Number of attempts to download the same image. Default is 3.} diff --git a/man/sits_merge.Rd b/man/sits_merge.Rd index e0db55d3..253d70bb 100644 --- a/man/sits_merge.Rd +++ b/man/sits_merge.Rd @@ -30,8 +30,6 @@ or data cube (tibble of class "raster_cube") .} \item{suffix}{If there are duplicate bands in data1 and data2 these suffixes will be added (character vector).} - -\item{irregular}{Combine irregular cubes? Default is FALSE.} } \value{ merged data sets (tibble of class "sits" or @@ -44,8 +42,17 @@ This function is useful to merge different bands of the same locations. For example, one may want to put the raw and smoothed bands for the same set of locations in the same tibble. -To merge data cubes, they should share the same sensor, resolution, -bounding box, timeline, and have different bands. +In case of data cubes, the function merges the images based on the following +conditions: +\enumerate{ +\item if the bands are different and their timelines should be compatible, +the bands are joined. The resulting timeline is the one from the first cube. +This is useful to merge data from different sensors (e.g, Sentinel-1 with Sentinel-2). +\item if the bands are the same, the cube will have the combined +timeline of both cubes. This is useful to merge data from the same sensors +from different satellites (e.g, Sentinel-2A with Sentinel-2B). +\item otherwise, the function will produce an error. +} } \examples{ if (sits_run_examples()) {