<div dir="ltr"><div>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:</div><div><br></div><img src="cid:ii_m3dk5ky93" alt="Screenshot 2024-11-11 at 4.51.08 PM.png" width="562" height="104"><div><br></div><div>and then, </div><div><br><img src="cid:ii_m3dk619s4" alt="Screenshot 2024-11-11 at 4.51.29 PM.png" width="562" height="222"><br><div> Anyone please let me know if this is the right approach for the "cell-centered" variables. </div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sincerely,<div>_________________</div><div><b>Ashfaq Ahmed</b></div><div>Ph.D. Candidate</div><div>Center for Fluid Mechanics</div><div>Brown University</div><div>Providence, Rhode Island, USA 02912</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2024 at 12:48 PM Ahmed, Ashfaq <<a href="mailto:ashfaq_ahmed@brown.edu">ashfaq_ahmed@brown.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi team!</div><div><br></div><div>I hope everyone is doing great and enjoying the fall weather. </div><div><br></div><div>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. <br><br>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.</div><div><br></div><div><div> I am adding the code and the error message here. </div><div><br></div><div>Code:</div></div><img src="cid:ii_m3dbez930" alt="Screenshot 2024-11-11 at 12.46.30 PM.png" width="542" height="281"><br><div><br></div><div>Error message:</div><img src="cid:ii_m3dbfv802" alt="Screenshot 2024-11-11 at 12.47.11 PM.png" width="542" height="29"><br><div><img src="cid:ii_m3dbfmdn1" alt="Screenshot 2024-11-11 at 12.46.59 PM.png" width="542" height="156"><br></div><div><br></div><div>If anyone could help me with this issue, I would sincerely appreciate it. Thank you again!</div><div><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Sincerely,<div>_________________</div><div><b>Ashfaq Ahmed</b></div><div>Ph.D. Candidate</div><div>Center for Fluid Mechanics</div><div>Brown University</div><div>Providence, Rhode Island, USA 02912</div></div></div></div></div>
</blockquote></div>