Skip to content

Commit

Permalink
Merge pull request #1137 from M3nin0/hotfix/args-merge
Browse files Browse the repository at this point in the history
update package version
  • Loading branch information
gilbertocamara committed May 22, 2024
2 parents 69e50bf + e5f703b commit c9b5f16
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: sits
Type: Package
Version: 1.5.0-1
Version: 1.5.1
Title: Satellite Image Time Series Analysis for Earth Observation Data Cubes
Authors@R: c(person('Rolf', 'Simoes', role = c('aut'), email = '[email protected]'),
person('Gilberto', 'Camara', role = c('aut', 'cre'), email = '[email protected]'),
Expand Down
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ S3method(sits_cube,default)
S3method(sits_cube,local_cube)
S3method(sits_cube,sar_cube)
S3method(sits_cube,stac_cube)
S3method(sits_detect_change,default)
S3method(sits_detect_change,raster_cube)
S3method(sits_detect_change,sits)
S3method(sits_get_data,csv)
S3method(sits_get_data,data.frame)
S3method(sits_get_data,default)
Expand Down Expand Up @@ -440,6 +443,9 @@ export(sits_config)
export(sits_config_show)
export(sits_cube)
export(sits_cube_copy)
export(sits_detect_change)
export(sits_detect_change_method)
export(sits_dtw)
export(sits_factory_function)
export(sits_filter)
export(sits_formula_linear)
Expand Down
4 changes: 4 additions & 0 deletions R/sits_detect_change.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#' each point (tibble of class "sits")
#' or a data cube indicating detections in each pixel
#' (tibble of class "detections_cube").
#' @export
sits_detect_change <- function(data,
cd_method,
...,
Expand All @@ -48,6 +49,7 @@ sits_detect_change <- function(data,
}

#' @rdname sits_detect_change
#' @export
sits_detect_change.sits <- function(data,
cd_method,
...,
Expand All @@ -72,6 +74,7 @@ sits_detect_change.sits <- function(data,
}

#' @rdname sits_detect_change
#' @export
sits_detect_change.raster_cube <- function(data,
cd_method, ...,
roi = NULL,
Expand Down Expand Up @@ -177,6 +180,7 @@ sits_detect_change.raster_cube <- function(data,
}

#' @rdname sits_detect_change
#' @export
sits_detect_change.default <- function(data, cd_method, ...) {
stop("Input should be a sits tibble or a data cube")
}
1 change: 1 addition & 0 deletions R/sits_detect_change_method.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#' @return Change detection method prepared
#' to be passed to
#' \code{\link[sits]{sits_detect_change}}
#' @export
sits_detect_change_method <- function(samples, cd_method = sits_dtw()) {
# set caller to show in errors
.check_set_caller("sits_detect_change_method")
Expand Down
1 change: 1 addition & 0 deletions R/sits_dtw.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#' used in operations with data cubes.
#' @return Change detection method prepared to be passed to
#' \code{\link[sits]{sits_detect_change_method}}
#' @export
sits_dtw <-
function(samples = NULL,
...,
Expand Down

0 comments on commit c9b5f16

Please sign in to comment.