I want to write out a new 3d variable 'wT' at the same locations as 'w'. I am looking at the documentation at this link:
https://www.myroms.org/wiki/Frequently_ ... t_files.3F
I would first need to interpolate the temperature field to 'w' locations before I can form the product. Does ROMS have its own subroutines to interpolate from 'rho' to 'w' locations?
Thanks for your help.
Writing out wT (time average)
Re: Writing out wT (time average)
One usually simply does a simple average between T points to get values at w points. For the top and bottom, just use the nearest value.
Re: Writing out wT (time average)
Should this not be a weighted average, accounting for the varying cell thickness? I am asking this because the cell face is not midway between two cell centers. I can see how averaging from w to rho locations does not have the same issue as the cell center is by definition midway between two cell faces.