From a095305b51c2bb2a9c3baab3bc61b92a1ca13152 Mon Sep 17 00:00:00 2001 From: nperez Date: Tue, 2 Feb 2021 18:13:22 +0100 Subject: [PATCH] update warning for parameter crop --- R/CDORemapper.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/CDORemapper.R b/R/CDORemapper.R index 867ee26..8aed954 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, ...) -- GitLab