diff --git a/R/CDORemapper.R b/R/CDORemapper.R index 867ee2660250adfdca2b2a1e26e04678f5297989..8aed954be45da45d9824b60a03f4b3503265aa68 100644 --- a/R/CDORemapper.R +++ b/R/CDORemapper.R @@ -89,8 +89,8 @@ CDORemapper <- function(data_array, variables, file_selectors = NULL, ...) { } } extra_params <- list(...) - if (!all(c('grid', 'method') %in% names(extra_params))) { - stop("Parameters 'grid' and 'method' must be specified for the ", + if (!all(c('grid', 'method', 'crop') %in% names(extra_params))) { + stop("Parameters 'grid', 'method' and 'crop' must be specified for the ", "CDORemapper, via the 'transform_params' argument.") } result <- s2dverification::CDORemap(data_array, lons, lats, ...)