matlab problem with analytical grid

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
mkamel
Posts: 3
Joined: Wed Aug 13, 2008 4:14 pm
Location: Center for coastal Physical Oceanography, ODU

matlab problem with analytical grid

#1 Unread post by mkamel »

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.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: matlab problem with analytical grid

#2 Unread post by kate »

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?

mkamel
Posts: 3
Joined: Wed Aug 13, 2008 4:14 pm
Location: Center for coastal Physical Oceanography, ODU

Re: matlab problem with analytical grid

#3 Unread post by mkamel »

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.

mkamel
Posts: 3
Joined: Wed Aug 13, 2008 4:14 pm
Location: Center for coastal Physical Oceanography, ODU

Re: matlab problem with analytical grid

#4 Unread post by mkamel »

I know now how to do it. I increased the uscale to get the current vector.

Post Reply