Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/e-sensing/sits into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed May 22, 2024
2 parents abb39b5 + 0719c70 commit b728aae
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 229 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Imports:
sysfonts,
slider (>= 0.2.0),
stats,
terra (>= 1.7-71),
terra (>= 1.7-65),
tibble (>= 3.1),
tidyr (>= 1.2.0),
torch (>= 0.11.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ S3method(.tile_ncols,raster_cube)
S3method(.tile_nrows,default)
S3method(.tile_nrows,raster_cube)
S3method(.tile_path,default)
S3method(.tile_path,derived_cube)
S3method(.tile_path,raster_cube)
S3method(.tile_paths,default)
S3method(.tile_paths,raster_cube)
Expand Down
11 changes: 11 additions & 0 deletions R/api_tile.R
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,17 @@ NULL
path
}
#' @export
.tile_path.derived_cube <- function(tile, band = NULL, date = NULL) {
tile <- .tile(tile)
if (.has(band)) {
tile <- .tile_filter_bands(tile = tile, bands = band[[1]])
}
# Get path of first asset
path <- .fi_path(.fi(tile))
# Return path
path
}
#' @export
.tile_path.default <- function(tile, band = NULL, date = NULL) {
tile <- tibble::as_tibble(tile)
tile <- .cube_find_class(tile)
Expand Down
Loading

0 comments on commit b728aae

Please sign in to comment.