From 576693bb2df8fb199b73d75fcdb7f89d5e9e1715 Mon Sep 17 00:00:00 2001 From: j-fannon <91901684+j-fannon@users.noreply.github.com> Date: Tue, 4 Jun 2024 09:46:59 +0000 Subject: [PATCH] Change parameter name passed to read_grid in verify_spatial --- R/verify_spatial.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/verify_spatial.R b/R/verify_spatial.R index 461000e..0c8eb02 100644 --- a/R/verify_spatial.R +++ b/R/verify_spatial.R @@ -210,7 +210,7 @@ verify_spatial <- function(dttm, try( do.call(harpIO::read_grid, c(list(file_name = fcfile, file_format = fc_file_format, - parameter = parameter, lead_time = lead_time, + parameter = prm$basename, lead_time = lead_time, file_format_opts = fc_file_opts))) ) } @@ -230,13 +230,13 @@ verify_spatial <- function(dttm, try( do.call(harpIO::read_grid, c(list(file_name = fcfile, file_format = fc_file_format, - parameter = parameter, lead_time = lead_time), + parameter = prm$basename, lead_time = lead_time), fc_file_opts)) ) } else { try( lapply(fcfile, harpIO::read_grid, file_format = fc_file_format, - parameter = parameter, lead_time = lead_time, members=members, + parameter = prm$basename, lead_time = lead_time, members=members, unlist(fc_file_opts)) ) }