Hi~
How can i can the depth for one points from ROMS output???
i knew ROMS model uses sigma coordinate.
But i want to know the depth (Z- coordinate) for one point or all grids.
how can i do for getting the depth?? Which value will i check for this work???
How can i get the depth from sima coordinate to Z- ??
Re: How can i get the depth from sima coordinate to Z- ??
This point would be one in the z_w array within the code. There is also a z_r array for the rho point depths. This figure comes from a matlab script which also computes z_w the same way that ROMS does, doesn't it? Are you talking about finding that z_w value in the Fortran, Matlab or other?
- arango
- Site Admin
- Posts: 1356
- Joined: Wed Feb 26, 2003 4:41 pm
- Location: DMCS, Rutgers University
- Contact:
Re: How can i get the depth from sima coordinate to Z- ??
In the ROMS Matlab repository you can find the function depths.m or set_depth.m. More importantly, the above plot was produced with scoord.m, which outputs the quantity that you seek:
You need to be a little curious and spend time reading documentation.
Code: Select all
[z,s,C]=scoord(h, x, y, Vtransform, Vstretching, theta_s, theta_b, ...
hc, N, kgrid, column, index, plt, Zzoom)