the depth of rho points for ROMS

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
peigen
Posts: 5
Joined: Tue May 07, 2013 4:37 pm
Location: Xiamen University

the depth of rho points for ROMS

#1 Unread post by peigen »

Hi all,

I calculated the depth of rho point for ROMS using "z=zlevs(h,zeta,theta_s,theta_b,hc,N,vtype);"
But the result is not reasonable (shown as attached figure) that the numbers do not keep increasing from top (20th row) to bottom (1st row).
Could you please let me know why that happen?
Thank you!


Best regards,
Peigen
Attachments
the depths of rho points
the depths of rho points

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: the depth of rho points for ROMS

#2 Unread post by arango »

The function zlevs is not part of our official distribution code and we are not responsible for third party functions coded by others.

In the ROMS Matlab repository we offer: set_depth.m. This is the official Matlab version of such a function for computing depths at any C-grid location, if you use the version of the code that we distribute.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: the depth of rho points for ROMS

#3 Unread post by m.hadfield »

What Hernan said, but do remember that
  • ROMS levels are numbered from the bottom to the top; and
  • The ROMS s coordinate is -1 at z=-h and 0 at z-zeta.
I periodically confuse myself by forgetting that s is negative!

Post Reply