Open lenkafronkova opened 6 years ago
Hi Lenka,
Thanks for the note. The error seems to say the array dimensions don't match the vector (lat/long); but that doesn't look to be true..
.getAlternative is not something I've seen before. However, it looks to be a hidden function https://rdrr.io/cran/someMTP/src/R/utils.R in the utils package.
If you loaded the package (or the functions directly), you can try them one at a time: filt3, filt5, etc. see where it breaks.
Cheers,
Ben
On Thu, Jun 28, 2018 at 5:50 AM, lenkafronkova notifications@github.com wrote:
Hello, I had issues with the source code of the functions. Therefore, I swapped my data for "satdata.RData (from https://github.com/galuardi/ boaR/tree/master/data) to see whether the problem is in my dateset or the code. I get the same error with data from github when I run the boa function: [image: image] https://user-images.githubusercontent.com/23084713/42026226-7a3c13d6-7abe-11e8-9b3d-21d67c56ec29.png Do you know what might be the cause of the problem?Latitude is a 1D array of 369, lon 1D array of 465, chl is a matrix with dim 465, 369. I am not sure what "X" in the error refers to? Is it something to do with filter2 function? Thank you Lenka
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/galuardi/boaR/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AH4VF4c7QhRA0TRTFYkUK-J6FzjqSYNvks5uBKbygaJpZM4U7FUs .
Hi Ben, Thanks for the reply! I've been running the code (filt3, filt5, boa) line by line and it breaks at line 128 from https://github.com/galuardi/boaR/blob/master/R/boa.R . I am not familiar with the flip function from Raster package. Do you have any idea why there is a problem? Just to point out I am still using satdata.RData example dataset not my own. Thanks Lenka
I think the error is upstream and not actually in the 'flip' function (which just mirrors according to dimension).
What is the output for 'front' at this stage? it looks like it might be NULL for some reason.
just to check, I tried a fresh download/example and all looks good here.
cheers,
Ben
On Thu, Jun 28, 2018 at 12:09 PM, lenkafronkova notifications@github.com wrote:
Hi Ben, Thanks for the reply! I've been running the code (filt3, filt5, boa) line by line and it breaks at line 128 from https://github.com/galuardi/ boaR/blob/master/R/boa.R . I am not familiar with the flip function from Raster package. Do you have any idea why there is a problem? Just to point out I am still using satdata.RData example dataset not my own. [image: image] https://user-images.githubusercontent.com/23084713/42046498-f11d904c-7af5-11e8-9b1d-fdcda83ce36e.png Thanks Lenka
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/galuardi/boaR/issues/2#issuecomment-401088629, or mute the thread https://github.com/notifications/unsubscribe-auth/AH4VFyEvNm8mezbhSWePchn8beWN5qfnks5uBP_QgaJpZM4U7FUs .
Hello, I had issues with the source code of the functions. Therefore, I swapped my data for "satdata.RData (from https://github.com/galuardi/boaR/tree/master/data) to see whether the problem is in my dateset or the code. I get the same error with data from github when I run the boa function: Do you know what might be the cause of the problem?Latitude is a 1D array of 369, lon 1D array of 465, chl is a matrix with dim 465, 369. I am not sure what "X" in the error refers to? Is it something to do with filter2 function? Thank you Lenka