I am trying to run your code for a TWDTW in a sample study area. I'm using Sentinel-1 data, for 29 images throughout 2018.
All works fine until I use the function "twdtwApplyParallel". It throws an error:
Error in [<-(tmp, rows, , value = d$value$value[[l]]) : subscript out of bounds
When running with the "twdtwApply" function, again, it fails with the error:
Error in [<-(tmp, rows, , value = B[[l]]) : subscript out of bounds
I have read the issue "error in twdtwApplyParallel "subscript out of bounds" #35" opened by n-verde. After adding the filepath variable to the twdtwApplyParallel and twdtwApply functions removes the error, but the code fails at the same functions (twdtwApply and twdtwApplyParallel) with the new error:(The same as n-verde)
Error in rng[1, ] : incorrect number of dimensions.
I have examined my data ('changsha_SAR_stackBYmatlab.tif' & 'changsha_doy_stackBYmatlab.tif') and there is no N/A in them. So I can't remove the N/A in my data to run the function just like n-verde.
Dear Victor,
I am trying to run your code for a TWDTW in a sample study area. I'm using Sentinel-1 data, for 29 images throughout 2018.
All works fine until I use the function "twdtwApplyParallel". It throws an error:
Error in [<-(tmp, rows, , value = d$value$value[[l]]) : subscript out of bounds
When running with the "twdtwApply" function, again, it fails with the error:
Error in [<-(tmp, rows, , value = B[[l]]) : subscript out of bounds
I have read the issue "error in twdtwApplyParallel "subscript out of bounds" #35" opened by n-verde. After adding the filepath variable to the twdtwApplyParallel and twdtwApply functions removes the error, but the code fails at the same functions (twdtwApply and twdtwApplyParallel) with the new error:(The same as n-verde)
Error in rng[1, ] : incorrect number of dimensions.
I have examined my data ('changsha_SAR_stackBYmatlab.tif' & 'changsha_doy_stackBYmatlab.tif') and there is no N/A in them. So I can't remove the N/A in my data to run the function just like n-verde.
Here is my code&data: https://drive.google.com/open?id=1tj-kj2wjVHR4bCFe2-IO4MlqoDV2wQ8k
Any idea what might be wrong?
Thank you very much,
Panbh