[ecco-support] How to interpolate cell-centered grids?

Ahmed, Ashfaq ashfaq_ahmed at brown.edu
Mon Nov 11 16:52:57 EST 2024


I think I have figured out the solution. The tracers for wind velocity are
already cell-centered ('j', 'i'). So, I have written these lines of code to
convert the model x and y direction velocity to the zonal and meridional
velocity:

[image: Screenshot 2024-11-11 at 4.51.08 PM.png]

and then,

[image: Screenshot 2024-11-11 at 4.51.29 PM.png]
 Anyone please let me know if this is the right approach for the
"cell-centered" variables.

Sincerely,
_________________
*Ashfaq Ahmed*
Ph.D. Candidate
Center for Fluid Mechanics
Brown University
Providence, Rhode Island, USA 02912


On Mon, Nov 11, 2024 at 12:48 PM Ahmed, Ashfaq <ashfaq_ahmed at brown.edu>
wrote:

> Hi team!
>
> I hope everyone is doing great and enjoying the fall weather.
>
> I am writing this email to seek help for a problem I am facing. I am
> trying to convert the model u_x and v_y to zonal and meridional velocity.
> There is a tutorial on how to do that for sea ice velocity and ocean
> velocity, where the centers are at j, i_g, and j_g, I locations.
>
> However, when I try to convert the wind speed (win u_x and v_y) using the
> same code, it shows me an error message.
>
>  I am adding the code and the error message here.
>
> Code:
> [image: Screenshot 2024-11-11 at 12.46.30 PM.png]
>
> Error message:
> [image: Screenshot 2024-11-11 at 12.47.11 PM.png]
> [image: Screenshot 2024-11-11 at 12.46.59 PM.png]
>
> If anyone could help me with this issue, I would sincerely appreciate it.
> Thank you again!
>
> Sincerely,
> _________________
> *Ashfaq Ahmed*
> Ph.D. Candidate
> Center for Fluid Mechanics
> Brown University
> Providence, Rhode Island, USA 02912
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-11-11 at 12.46.30?PM.png
Type: image/png
Size: 100155 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-11-11 at 12.46.59?PM.png
Type: image/png
Size: 67753 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-11-11 at 12.47.11?PM.png
Type: image/png
Size: 17271 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-11-11 at 4.51.08?PM.png
Type: image/png
Size: 53421 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-11-11 at 4.51.29?PM.png
Type: image/png
Size: 85013 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20241111/abb4012f/attachment-0009.png>


More information about the ecco-support mailing list