Skip to content

Commit 0719c70

Browse files
plot and view upgrades
1 parent 7e98e88 commit 0719c70

9 files changed

+136
-229
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Imports:
6060
sysfonts,
6161
slider (>= 0.2.0),
6262
stats,
63-
terra (>= 1.7-71),
63+
terra (>= 1.7-65),
6464
tibble (>= 3.1),
6565
tidyr (>= 1.2.0),
6666
torch (>= 0.11.0),

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ S3method(.tile_ncols,raster_cube)
241241
S3method(.tile_nrows,default)
242242
S3method(.tile_nrows,raster_cube)
243243
S3method(.tile_path,default)
244+
S3method(.tile_path,derived_cube)
244245
S3method(.tile_path,raster_cube)
245246
S3method(.tile_paths,default)
246247
S3method(.tile_paths,raster_cube)

R/api_tile.R

+11
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,17 @@ NULL
412412
path
413413
}
414414
#' @export
415+
.tile_path.derived_cube <- function(tile, band = NULL, date = NULL) {
416+
tile <- .tile(tile)
417+
if (.has(band)) {
418+
tile <- .tile_filter_bands(tile = tile, bands = band[[1]])
419+
}
420+
# Get path of first asset
421+
path <- .fi_path(.fi(tile))
422+
# Return path
423+
path
424+
}
425+
#' @export
415426
.tile_path.default <- function(tile, band = NULL, date = NULL) {
416427
tile <- tibble::as_tibble(tile)
417428
tile <- .cube_find_class(tile)

0 commit comments

Comments
 (0)