Start cannot load the headers created by Compute
Thanks to @vtorralba reporting, I have identified a problem in Start.
She was using one experiment and observations with dimensions: sdate = 11, ensemble = 15, lon = 15 and lat = 14.
The function (based on .cal
from CSTools, works on 'member' and 'sdate' dimensions.
Therefore, she was using dimension 'lon' and 'lat' for chunking.
The Compute call works for:
res_fat1 <- Compute(wf,chunks = list(latitude = 1,longitude = 1))
And failed:
res_fat2 <- Compute(wf,chunks = list(latitude = 2,longitude = 2))
Error in sub_array_of_indices[[2]] : subíndice fuera de los límites
This error comes from Start()
function, which at some point doesn't considered the case of a list with one element containing the extreme values of the dimension where the chunking was working.
Vero, do you mind to share the path to your code? Or even better, do you mind I create a example to be added to the guidelines f startR?
Please, let me know if the solution I have proposed in branch 'develop-Startindices' works for you.
Many thanks!!
Núria