obc_roms2roms.m

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

obc_roms2roms.m

#1 Unread post by jcwarner »

Is anyone else using obc_roms2roms.m?
I am getting a size mismatch at lines 720-723

B.(ufield) = u .* cos(angle.(edge)) - ...
v .* sin(angle.(edge));

the ufield = 'u_west'

size(u) = 2 327 40
size(cos(angle.(edge))) = 2 327 40
size(v) = 2 326 40
size(sin(angle.(edge))) = 2 327 40

obviously u and v are different sizes along the edge, so i am not sure what B.u_west should do.

-j

User avatar
wilkin
Posts: 875
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: obc_roms2roms.m

#2 Unread post by wilkin »

I don't get that error. At that place in the code u_west and v_west are the same dimension because they have been interpolated to the receiver rho points (for rotation). On exit from obc_roms2roms they have been placed on their respective grids so have different dimensions.

But, my code has a few hacks to it and I have not reconciled it with the present version in the trunk.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

Post Reply