How does ROMS stratification translate into water depth?

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
zhaolv
Posts: 39
Joined: Thu Nov 11, 2021 3:56 pm
Location: Changsha University of Science and Technology

How does ROMS stratification translate into water depth?

#1 Unread post by zhaolv »

In the roms 'his' file the seawater temperature, salinity etc. data is divided into 16 layers. I know that when the topography changes, the depth of seawater under the same layer is different.
So I would like to know how to get the seawater temperature and salinity data for a point at a depth of 100 water?
Which matlab toolkit can solve this problem?
Thank you very much for your help!

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

Re: How does ROMS stratification translate into water depth?

#2 Unread post by arango »

It would help if you interpolated spatially. In Matlab, there are various native functions to perform the interpolation. Notice that ROMS can also output any of the time-varying depths in the history file:

Code: Select all

Hout(idpthR) == F       ! z_rho              time-varying depths of RHO-points
Hout(idpthU) == F       ! z_u                time-varying depths of U-points
Hout(idpthV) == F       ! z_v                time-varying depths of V-points
Hout(idpthW) == F       ! z_w                time-varying depths of W-points
Alternatively, you can use the function depths.m that we distribute in the Matlab repository. It will be very trivial to interpolate any ROMS 3D variable to a (lon, lat, depth) location. If you use Matlab, I recommend users learn how to interpolate ROMS data. I provide an example in the roms2roms.m function.

Post Reply