From 9cbc07cb21490a95835dfc7553d151a5f970e2e3 Mon Sep 17 00:00:00 2001 From: vagudets Date: Mon, 18 Mar 2024 12:15:16 +0100 Subject: [PATCH] Pass only one variable to get_filename() so that outfile has only one element --- modules/Saving/R/save_probabilities.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Saving/R/save_probabilities.R b/modules/Saving/R/save_probabilities.R index 3253e7b7..76a5a54c 100644 --- a/modules/Saving/R/save_probabilities.R +++ b/modules/Saving/R/save_probabilities.R @@ -123,8 +123,8 @@ save_probabilities <- function(recipe, time <- times$time # Generate name of output file - outfile <- get_filename(outdir, recipe, data_cube$attrs$Variable$varName, - fcst.sdate, agg, "probs") + outfile <- get_filename(outdir, recipe, variable, fcst.sdate, agg, + "probs") # Get grid data and metadata and export to netCDF if (tolower(agg) == "country") { -- GitLab