Skip to content

Commit

Permalink
pass 'maskvalues' to terra::mask() via maskTo()
Browse files Browse the repository at this point in the history
  • Loading branch information
achubaty committed Jul 11, 2024
1 parent 3535a92 commit 88c1990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/postProcessTo.R
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ writeRasterArgs <- c(
projectArgs <- c("x", "y", "method", "mask", "align", "res", "origin", "threads", "filename",
"use_gdal", "by_util")

maskArgs <- c("x", "inverse", "mask", "updatevalue", "touches", "filename")
maskArgs <- c("x", "mask", "inverse", "maskvalues", "updatevalue", "touches", "filename")

extntNA <- function(x) {
out <- if (isSF(x)) {
Expand Down

0 comments on commit 88c1990

Please sign in to comment.