Skip to content

Commit 641bd65

Browse files
remove api_raster_terra.R
1 parent 8a41c51 commit 641bd65

File tree

9 files changed

+282
-848
lines changed

9 files changed

+282
-848
lines changed

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ Collate:
167167
'api_preconditions.R'
168168
'api_raster.R'
169169
'api_raster_sub_image.R'
170-
'api_raster_terra.R'
171170
'api_reclassify.R'
172171
'api_reduce.R'
173172
'api_regularize.R'

NAMESPACE

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -112,39 +112,6 @@ S3method(.opensearch_cdse_search,RTC)
112112
S3method(.opensearch_cdse_search,S2MSI2A)
113113
S3method(.predictors,sits)
114114
S3method(.predictors,sits_base)
115-
S3method(.raster_cell_from_rowcol,terra)
116-
S3method(.raster_check_package,terra)
117-
S3method(.raster_col,terra)
118-
S3method(.raster_crop,terra)
119-
S3method(.raster_crop_metadata,terra)
120-
S3method(.raster_crs,terra)
121-
S3method(.raster_extract,terra)
122-
S3method(.raster_extract_polygons,terra)
123-
S3method(.raster_file_blocksize,terra)
124-
S3method(.raster_freq,terra)
125-
S3method(.raster_get_values,terra)
126-
S3method(.raster_ncols,terra)
127-
S3method(.raster_new_rast,terra)
128-
S3method(.raster_nlayers,terra)
129-
S3method(.raster_nrows,terra)
130-
S3method(.raster_open_rast,terra)
131-
S3method(.raster_quantile,terra)
132-
S3method(.raster_rast,terra)
133-
S3method(.raster_read_rast,terra)
134-
S3method(.raster_row,terra)
135-
S3method(.raster_sample,terra)
136-
S3method(.raster_scale,terra)
137-
S3method(.raster_set_na,terra)
138-
S3method(.raster_set_values,terra)
139-
S3method(.raster_summary,terra)
140-
S3method(.raster_write_rast,terra)
141-
S3method(.raster_xmax,terra)
142-
S3method(.raster_xmin,terra)
143-
S3method(.raster_xres,terra)
144-
S3method(.raster_xy_from_cell,terra)
145-
S3method(.raster_ymax,terra)
146-
S3method(.raster_ymin,terra)
147-
S3method(.raster_yres,terra)
148115
S3method(.reg_tile_convert,dem_cube)
149116
S3method(.reg_tile_convert,grd_cube)
150117
S3method(.reg_tile_convert,rainfall_cube)
@@ -497,11 +464,6 @@ S3method(summary,sits_area_accuracy)
497464
S3method(summary,variance_cube)
498465
export("sits_bands<-")
499466
export("sits_labels<-")
500-
export(.dc_bands)
501-
export(.detect_change_tile_prep)
502-
export(.raster_cell_from_rowcol)
503-
export(.raster_sample)
504-
export(.raster_xy_from_cell)
505467
export(impute_linear)
506468
export(sits_accuracy)
507469
export(sits_accuracy_summary)

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
* Support for the Swiss Data Cube ([swissdatacube.org](https://www.swissdatacube.org/))
175175
* Support for mosaic visualization in `sits_view`
176176
* Introduced new function `sits_as_sf` to convert sits objects to sf
177-
* Export images as [COG](https://www.cogeo.org/) in `sits_regularize`
177+
* Export images as COG in `sits_regularize`
178178
* Add `roi` parameter in `sits_regularize` function
179179
* Add `crs` parameter in `sits_get_data`
180180
* Change Microsoft Planetary Computer source name to `"MPC"`

R/api_detect_change.R

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,23 @@
224224
# Return detection tile
225225
segs_tile
226226
}
227-
228-
#' @export
227+
#' @title Pre-process tile to run detect_change method
228+
#' @name .detect_change_tile_prep
229+
#' @keywords internal
230+
#' @noRd
231+
#' @param dc_method Detect change method
232+
#' @param tile Single tile of a data cube.
233+
#' @param ... Additional parameters
234+
#' @param impute_fn Imputation function
229235
.detect_change_tile_prep <- function(dc_method, tile, ...) {
230236
UseMethod(".detect_change_tile_prep", dc_method)
231237
}
232-
238+
#' @rdname .detect_change_tile_prep
233239
#' @export
234240
.detect_change_tile_prep.default <- function(dc_method, tile, ...) {
235241
return(NULL)
236242
}
237-
243+
#' @rdname .detect_change_tile_prep
238244
#' @export
239245
.detect_change_tile_prep.bayts_model <- function(dc_method, tile, ..., impute_fn) {
240246
deseasonlize <- environment(dc_method)[["deseasonlize"]]
@@ -267,7 +273,6 @@
267273
})
268274
do.call(cbind, quantile_values)
269275
}
270-
271276
.detect_change_create_timeline <- function(tile) {
272277
# Get the number of dates in the timeline
273278
tile_tl <- .as_chr(.tile_timeline(tile))
@@ -305,17 +310,21 @@
305310
.dc_samples <- function(dc_method) {
306311
environment(dc_method)[["samples"]]
307312
}
308-
309-
#' @export
313+
#' @title Retrieve bands associated to detect_change method
314+
#' @name .dc_bands
315+
#' @keywords internal
316+
#' @noRd
317+
#' @param dc_method Detect change method
318+
#' @return Bands associated to the detect change method
310319
.dc_bands <- function(dc_method) {
311320
UseMethod(".dc_bands", dc_method)
312321
}
313-
322+
#' @rdname .dc_bands
314323
#' @export
315324
.dc_bands.sits_model <- function(dc_method) {
316325
.samples_bands(.dc_samples(dc_method))
317326
}
318-
327+
#' @rdname .dc_bands
319328
#' @export
320329
.dc_bands.bayts_model <- function(dc_method) {
321330
if (.has(.dc_samples(dc_method))) {

0 commit comments

Comments
 (0)