Dear all:
I am using Matlab scripts contact.m to set contact points between ROMS nested grids.
I have created my parent grid and used coarse2fine.m to create a child grid successfully.
However, when I try to use contact.m, I face a problem in line 715: FCr.Values = G(dg).angle(:); R.angle = FCr(XrF, YrF);
It tells me that Interpolation is unavailable because Interpolation requires at least two sampling points per grid dimension.
Through debugging, I change the code to FCr.Values = G(dg).angle; R.angle = FCr(XrF, YrF);
And it works. Does anyone ever face a problem like this? Do the contact files I made correct? Thanks!
Meet a problem while using contact.m
Meet a problem while using contact.m
- Attachments
-
- EAST_grid_nest1.nc
- fine grid
- (5.38 MiB) Downloaded 164 times
-
- EAST_grid_contact.nc
- contact file
- (2.17 MiB) Downloaded 150 times
-
- EAST_grid.nc
- parent grid
- (4.92 MiB) Downloaded 173 times
Re: Meet a problem while using contact.m
I get that error recomputing the contacts points file for my DOPPIO and PIONEER application. I had previously computed the file some time ago with an earlier version of contact.m.
So, yes, it looks like a bug has crept in.
So, yes, it looks like a bug has crept in.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu