Skip to content

Commit

Permalink
Update 00_read_block.R
Browse files Browse the repository at this point in the history
remove unhappy limitation
  • Loading branch information
mdsumner authored Aug 18, 2023
1 parent 35139e0 commit f723650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/00_read_block.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ vapour_read_raster_block <- function(dsource, offset, dimension, band = 1L, band
#' dimension = c(2L, 3L), band = 1L))
#' if (file.exists(tf)) file.remove(tf)
vapour_write_raster_block <- function(dsource, data, offset, dimension, band = 1L, overwrite = FALSE) {
if (!file.exists(dsource)) stop("file dsource must exist")
## if (!file.exists(dsource)) stop("file dsource must exist")
if (!overwrite) stop(sprintf("set 'overwrite' to TRUE if you really mean to write to file %s", dsource))
if (anyNA(band) || length(band) < 1L) stop("missing band value")
band <- as.integer(band[1L])
Expand Down

0 comments on commit f723650

Please sign in to comment.