Hi All,
I managed to solve the "exceeds dimension bound" error mentioned in my previous post by switching the dimension order of the variables (e.g., x_rho) in my grid file from (eta_rho,xi_rho) to (xi_rho,eta_rho). I am wondering if this means ROMS actually requires a fixed dimension order: (xi,eta) when using Matlab/Fortran to produce the grid file and (eta,xi) when using C to produce the grid file.
Any thoughts on this will be much appreciated.
Cheers,
Guangyu
"exceeds dimension bound" error solved
Re: "exceeds dimension bound" error solved
Yes, that would be the case. In your post it wasn't clear which language you were referring to.
Re: "exceeds dimension bound" error solved
I use Matlab so I guess the dimensional order of the grid variables has to be (xi, eta).