I try to get running the waveflux.R, however when my script reaches the point to calculate psi.dxy
"...psi.dxy = Derivate(psi.dx ~ latrad, cyclical = FALSE)[[1]]), by = lon]..."
it says:
Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data, :
invalid type (list) for variable 'psi.dx'
Seems like has to do with psi.dx and latrad have different lists (2d and 1d respectively) and not supported by the function "Derivate". (see below screenshot for the data.table). Any idea how to solve this?
Hi Elio,
I try to get running the waveflux.R, however when my script reaches the point to calculate psi.dxy "...psi.dxy = Derivate(psi.dx ~ latrad, cyclical = FALSE)[[1]]), by = lon]..."
it says:
Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data = data, : invalid type (list) for variable 'psi.dx'
Seems like has to do with psi.dx and latrad have different lists (2d and 1d respectively) and not supported by the function "Derivate". (see below screenshot for the data.table). Any idea how to solve this?
Regards Wolfgang