issue loading daily seasonal
Hi @vagudets,
Expected Behavior
Trying to load seasonal daily data
Current Behavior
The recipe check is successful but I get an error when I call Loading()
Error in attr(x, "values") <- !flag : attempt to set an attribute on NULL
> recipe <- prepare_outputs(recipe_daily)
[1] "Saving all outputs to:"
[1] "/esarchive/scratch/allabres/gitlab_clones/SUNSET/daily_indices/results/daily_recipe_20240613112425"
INFO [2024-06-13 11:24:25] SUNSET: SUbseasoNal to decadal climate forecast post-processing and asSEssmenT suite
Copyright (C) 2024 BSC-CNS
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
INFO [2024-06-13 11:24:26] Checking recipe: /esarchive/scratch/allabres/gitlab_clones/SUNSET/daily_indices/daily_recipe.R
WARN [2024-06-13 11:24:26] The element 'fcst_year' is not defined in the recipe. No forecast year will be used.
INFO [2024-06-13 11:24:26] ##### RECIPE CHECK SUCCESSFULL #####
> data_raw <- Loading(recipe)
INFO [2024-06-13 11:24:30] fcst_year empty in the recipe, creating empty fcst object...
* Exploring files... This will take a variable amount of time depending
* on the issued request and the performance of the file server...
Error in attr(x, "values") <- !flag : attempt to set an attribute on NULL
In addition: Warning messages:
1: ! Warning: Parameter 'pattern_dims' not specified. Taking the first dimension,
! 'dat' as 'pattern_dims'.
2: ! Warning: Could not find any pattern dim with explicit data set descriptions (in
! the form of list of lists). Taking the first pattern dim, 'dat', as
! dimension with pattern specifications.
Possible Solutions?
I've traced back the error to this line in starR but I don't know what is causing it:
https://earth.bsc.es/gitlab/es/startR/-/blob/master/R/Start.R#L1316
tmp <- lapply(dat_selectors[which(dim_names != pattern_dims)], add_value_indices_flag)
Steps To Reproduce
-
Recipe: daily_recipe.R
-
Script: daily_script.R
-
Branch/SUNSET Version: branch main pulled around 3rd June 2024
-
Environment: Workstation with these modules:
module load CDO/1.9.8-foss-2015a
module load netCDF/4.7.1-foss-2015a
module load R/4.1.2-foss-2015a-bare