carlopacioni / vortexR

an R package for post Vortex simulation analysis
8 stars 3 forks source link

SSMD_matrix error + a question #52

Open Dejan1983 opened 2 years ago

Dejan1983 commented 2 years ago

Hello Carlo, i have 2 questions i hope you can answer.

  1. when using SSMD_matrix(), when i include GeneDiv in the params list, i get this error 'Error in sottra/sqrt(sumsq) : non-comfortable arrays'. i'm not sure what to do about this?
  2. Is there a way for SSMD_matrix to consider differences over the duration of the entire simulation all in one go? Or is it only possible to look at this year by year? I want to get an overall contrast for a given set of models, rather than just looking at any one year.

Thanks, D

carlopacioni commented 2 years ago

Hi Dejan1983, very sorry for the late reply. It has been very hectic recently.

Re your first point, I think you the problem stem from the fact that Vortex has changed the names of the headings in the output files and I haven't had the time to fix that in vortexR, so the first thing to do would be to check the headings that you have in the data that you use for SSMD_matrix and see whether 'GenDiv' exists. If that is not the problem, then it may be that you have two objects of a different class that cannot be coerced to allow calculations to be carried out. In that case, I'll have to take a closer look. You could send me your code and (subset of) data to reproduce the error and see whether I can fix it at carlo.pacioni@delwp.vic.gov.au.

Re your second point, do you mean using the mean value across all years within each scenario?

Cheers, carlo