I am developing a new modeling setup with a simple nested grid configuration. Following Hernan's advice, I am starting from a full domain fine grid and extracting the coarse grid from it. However, the fine2coarse.m downloaded from the SVN repository as of this morning is completely broken (SVN revision 766, retrieved from the repository at
https://www.myroms.org/svn/src/matlab). There are errors in syntax (line 145):
Code: Select all
grd_vars = [grd_vars, 'x_rho', 'y_rho', 'x_psi', 'y_psi', ...
'x_u', 'y_u', 'x_v', 'y_v'};
And undeclared variables (line 280, the grid variable should be F)
And the logic of the grid sizes is wrong and fails for some simple use cases (Gfactor=3, Imin=3,Imax=18,Jmin=3,Jmax=18). It produces rho and psi grids that are the same size. These dimensions are (properly) incompatible with the netcdf file layout.
I am happy to pitch in and fix it. But the code is so scrambled it looks, perhaps, like a bad code merge
. Does anyone have a minimally working copy? As I said, I am happy to dig into the code, but am loath to duplicate effort.
Cheers,
Jamie Pringle