From 36bed4e6abc2e8ba0c6d1cbe43f91e75027690bd Mon Sep 17 00:00:00 2001 From: aho Date: Thu, 3 Jun 2021 17:53:54 +0200 Subject: [PATCH] Modify the criteria of regrid when one data and the grids need to shift. --- R/Utils.R | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/R/Utils.R b/R/Utils.R index 9dfcaa73..afe075cb 100644 --- a/R/Utils.R +++ b/R/Utils.R @@ -322,11 +322,9 @@ if ((grid_lons != common_grid_lons) || (grid_lats != common_grid_lats) || (grid_type != common_grid_type) || - ((lon[1] != first_common_grid_lon) - && !work_piece[['single_dataset']])) { + (lon[1] != first_common_grid_lon)) { if (grid_lons == common_grid_lons && grid_lats == common_grid_lats && - grid_type == common_grid_type && lon[1] != first_common_grid_lon && - !work_piece[['single_dataset']]) { + grid_type == common_grid_type && lon[1] != first_common_grid_lon) { remove_shift <- TRUE } remap_needed <- TRUE -- GitLab