[ecco-support] Merging Arctic tiles
Ahmed, Ashfaq
ashfaq_ahmed at brown.edu
Mon Jan 20 16:04:04 EST 2025
Hi Wenrui,
I hope you had a wonderful winter break and happy new year (belated!)
I tried your method, and I was able to get the 91-by-91-shaped tiles for
the Arctic Ocean. Just like this -
[image: Screenshot 2025-01-20 at 4.00.49 PM.png]
However, one problem that I am facing is that the velocity map is itself a
90x90 matrix. So this code is showing an error in plotting.
[image: Screenshot 2025-01-20 at 4.03.18 PM.png]
[image: Screenshot 2025-01-20 at 4.01.45 PM.png]
Can you please suggest how can I pcolormesh them into the 91x91 grid system?
Your friend from the ECCO hackathon,
_________________
*Ashfaq Ahmed*
Ph.D. Candidate
Center for Fluid Mechanics
Brown University
Providence, Rhode Island, USA 02912
On Sat, Dec 7, 2024 at 9:04 AM Wenrui Jiang <wjiang33 at jhu.edu> wrote:
> Hi Ash,
>
> 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.
>
> 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 (
> https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.pcolormesh.html).
> I also recommend using shading = 'flat' in this configuration. If you are
> using ECCO,
>
> 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 (
> https://macekuailv.github.io/seaduck/api_reference/apiref_topology.html#seaduck.topology.Topology.ind_tend
> ).
>
> Let me know if that works for you.
>
> Your friend from the hackweek,
> Wenrui
>
>
>
> ------------------------------
> *From:* ecco-support <ecco-support-bounces at mit.edu> on behalf of
> ecco-support-bounces at mit.edu <ecco-support-bounces at mit.edu>
> *Sent:* Wednesday, December 4, 2024 11:47 AM
> *To:* ECCO support list, wider membership <ecco-support at mit.edu>
> *Subject:* [ecco-support] Merging Arctic tiles
>
>
>
> * External Email - Use Caution *
>
>
>
> HI ECCO team,
>
> I hope you guys are having a wonderful time.
>
> 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.
>
> 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:
>
> [image: Screenshot 2024-12-04 at 11.46.01 AM.png]
>
> But it plotted this figure:
>
> [image: image.png]
>
> 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.
>
> Sincerely,
> _________________
> *Ashfaq Ahmed*
> Ph.D. Candidate
> Center for Fluid Mechanics
> Brown University
> Providence, Rhode Island, USA 02912
> _______________________________________________
> ecco-support mailing list
> ecco-support at mit.edu
> https://mailman.mit.edu/mailman/listinfo/ecco-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2024-12-04 at 11.46.01?AM.png
Type: image/png
Size: 131951 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 228396 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-01-20 at 4.00.49?PM.png
Type: image/png
Size: 36243 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-01-20 at 4.01.45?PM.png
Type: image/png
Size: 110725 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-01-20 at 4.03.18?PM.png
Type: image/png
Size: 77895 bytes
Desc: not available
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20250120/223e0ff4/attachment-0009.png>
More information about the ecco-support
mailing list