<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Ash,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For pcolormesh requires X,Y, and data. Say the data is 90*90. The x,y you are using are also 90*90. This is basically telling matplotlib the center location of the box to fill in color, but it does not specify where the edges and corners of the box are.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Another way to do this is to give it X,Y with shape (91,91) that specified the corner (XG,YG) of each box. For more explanation, see here (<a href="https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.pcolormesh.html" id="LPlnk315041" class="OWAAutoLink">https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.pcolormesh.html</a>).
I also recommend using shading = 'flat' in this configuration. If you are using ECCO,<br>
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have attached the X and Y I use for plotting with dimension (13,91,91). Basically, if you replace your x,y with those files (x_g = np.load('plotting_xg,npy'); x = x_g[tile]), the bondary will disappear. If you are not using LLC90, you can generate something
like this using seaduck.Topology .ind_tend (<a href="https://macekuailv.github.io/seaduck/api_reference/apiref_topology.html#seaduck.topology.Topology.ind_tend" id="LPlnk696844">https://macekuailv.github.io/seaduck/api_reference/apiref_topology.html#seaduck.topology.Topology.ind_tend</a>).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Let me know if that works for you.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Your friend from the hackweek,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Wenrui<br>
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ecco-support <ecco-support-bounces@mit.edu> on behalf of ecco-support-bounces@mit.edu <ecco-support-bounces@mit.edu><br>
<b>Sent:</b> Wednesday, December 4, 2024 11:47 AM<br>
<b>To:</b> ECCO support list, wider membership <ecco-support@mit.edu><br>
<b>Subject:</b> [ecco-support] Merging Arctic tiles</font>
<div> </div>
</div>
<div>
<p><strong><br>
</strong><strong><span style="background:red; color:white; font-family:"Times New Roman",serif; font-size:12pt"> External Email - Use Caution </span></strong></p>
<p><strong><span style="background:red; color:white; font-family:"Times New Roman",serif; font-size:12pt"><br>
</span></strong></p>
<p><strong><span style="background:red; color:white; font-family:"Times New Roman",serif; font-size:12pt"><br>
</span></strong></p>
<div>
<div dir="ltr">
<div>HI ECCO team, </div>
<div><br>
</div>
<div>I hope you guys are having a wonderful time.</div>
<div><br>
</div>
<div>I am writing this email to solve a tricky problem that I am facing as I am trying to merge the tiles to project a complete Arctic Ocean sea ice velocity map. </div>
<div><br>
</div>
<div>We know that tiles 2, 5, 6, 7, and 10 have contents of Arctic (e.g., that go beyond 65°N). I was writing this code:<br>
<br>
<img alt="Screenshot 2024-12-04 at 11.46.01 AM.png" width="515" height="239" style="margin-right:0px" data-outlook-trace="F:1|T:1" src="cid:ii_m4a4dsyp0"><br>
</div>
<div><br>
</div>
<div>But it plotted this figure:<br>
<br>
</div>
<div><img alt="image.png" width="459" height="542" data-outlook-trace="F:1|T:1" src="cid:ii_m4a4e8v81"><br>
</div>
<div><br>
</div>
<div>While this figure is almost what I want but I was wondering if there is any way to fill the gaps between the tile. If anyone knows, please let me know. </div>
<div><br>
</div>
<div>
<div dir="ltr" class="x_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>
</div>
</div>
</div>
</body>
</html>