From bf4d5c34c4ba2239893d27cd95ba63a5a295ce49 Mon Sep 17 00:00:00 2001 From: aho Date: Fri, 4 Jun 2021 17:47:34 +0200 Subject: [PATCH] Make Load() to shift the grid even if only one dataset --- R/Utils.R | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/R/Utils.R b/R/Utils.R index 11bebc5..e0e1f91 100644 --- a/R/Utils.R +++ b/R/Utils.R @@ -327,11 +327,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