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!
How does ROMS stratification translate into water depth?
- 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?
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:
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.
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