Skip to content

Loading ECMWF subseaonal forecast

Hi @vagudets,

I am getting this error with the new implementation of subseasonal dates:

Error in Start(dat = hcst.path, var = variable, var_dir = var_dir_exp,  : 
  The dimension dependancies specified in 'depending_file_dims' can only be between file dimensions, but some inner dimensions found in dependancies for 'dat1', which has the following file dimensions: 'dat', 'var_dir', 'file_date'.

I think this is because ´var´ is pasted in the file_dates.

I have been comparing against the previous version using source("tests/test_subseasonal.R"):

# Previous version only includes $var$ in the hcst.path:
Browse[1]> hcst.path
[1] "/esarchive/exp/ncep/cfs-v2/$var_dir$$var$_$file_date$.nc"
Browse[1]> variable
[1] "tas"
Browse[1]> var_dir_exp
$tas
[1] "weekly_mean/s2s/tas_f24h/"
Browse[1]> sdates$hcst[1]
[1] "19990108"

# New version includes it in sdates$hcst
Called from: load_subseasonal(recipe)
Browse[1]> hcst.path
[1] "/esarchive/exp/ncep/cfs-v2/$var_dir$$file_date$.nc"
Browse[1]> variable
[1] "tas"
Browse[1]> var_dir_exp
[1] "weekly_mean/s2s/$var$_f24h/"
Browse[1]> sdates$hcst[1]
[1] "/$var$_19991225"

There is also a difference to solve in var_dir_exp, which used to be a list because it has the name $tas.

Thanks,

Núria