I tried to get the current vector plot from Wilkin's code roms_sview.I got the following error.
??? Reference to non-existent field 'angle'.
Error in ==> roms_quivergrd at 55
angle = grd.angle;
I think that the problem is related to my grid as I'm using analytical grid. The grd file is created from the output but without the angle variable required for the code. How can I overcome this problem. Thanks for your help.
matlab problem with analytical grid
Re: matlab problem with analytical grid
angle is the angle between due east and the xi (i) coordinate direction. A square box grid would have an angle of zero everywhere. Can you add that to your grid file?
-
- Posts: 3
- Joined: Wed Aug 13, 2008 4:14 pm
- Location: Center for coastal Physical Oceanography, ODU
Re: matlab problem with analytical grid
Thanks for your reply. I add angle to the grd structure array in matlab. The error message gone but vectors does not appear on the plot. So I put varargin= '-*r' then I got * at each grid point. As I understand this means the magnitude of the current is zero, however I checked u and v and they are none zero. Thanks again.
-
- Posts: 3
- Joined: Wed Aug 13, 2008 4:14 pm
- Location: Center for coastal Physical Oceanography, ODU
Re: matlab problem with analytical grid
I know now how to do it. I increased the uscale to get the current vector.