diff --git a/R/CDORemap.R b/R/CDORemap.R index a04d88a536447a2488283d5e5c3991d079490012..ea6ff1374333384d7b7298b4d5bb19f1e529b181 100644 --- a/R/CDORemap.R +++ b/R/CDORemap.R @@ -406,6 +406,7 @@ CDORemap <- function(data_array = NULL, lons, lats, grid, method, } if (is.logical(crop)) { if (crop) { + warning("Parameter 'crop' = 'TRUE'. The output grid range will follow the input lons and lats.") if (length(lons) == 1 || length(lats) == 1) { stop("CDORemap cannot remap if crop = TRUE and values for only one ", "longitude or one latitude are provided. Either a) provide ", @@ -516,6 +517,8 @@ CDORemap <- function(data_array = NULL, lons, lats, grid, method, } ###--- } + } else if (crop == FALSE) { + warning("Parameter 'crop' = 'FALSE'. The output grid range will follow parameter 'grid'.") } } else if (is.numeric(crop)) { if (length(crop) != 4) {