<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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 Jean-Michel,</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);">
Just realised I forgot to reply to your email.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks very much for your reply - this has cleared up a lot of confusion.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Indeed, when modifying the 'use_isolat_bkl.m file, this produces the correct streamfunction output when using the new-format broken line files.</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);">
I'll have a play around with some of the older functions to see if I can get them working with the new-format broken line files and let you know if I need any further details.</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);">
Thanks again,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Flynn</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);">
<br>
</div>
<div id="appendonsend" style="color: inherit;"></div>
<hr style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg" style="color: inherit;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Jean-Michel Campin <jmc@mit.edu><br>
<b>Sent:</b> 14 May 2025 5:19 PM<br>
<b>To:</b> mitgcm-support@mitgcm.org <mitgcm-support@mitgcm.org><br>
<b>Subject:</b> Re: [MITgcm-support] MITgcmutil - cubed sphere - creating a broken line file</span>
<div> </div>
</div>
<div style="font-size: 11pt;">Hi Flynn,<br>
<br>
There has been some updates to this broken-line script in Oct 2023 (PR #729) plus some<br>
fixes applied in Jun 2024 (PR #792) with a simpler way of generating the brokenr-lines<br>
but also using a different convention to store it in the broken-line file (I think the<br>
default file name has changed too, to reflect the fact that it's in a different format).<br>
<br>
So if you use an old broken-line file (generated from scripts in<br>
 MITgcm/utils/matkab/cs_grid/bk_line/ )<br>
you can continue to use this file the same way as before ;<br>
But if you use a new broken-line file (generated from script MITgcm/utils/matkab/cs_grid/mk_isoLat_bkl.m ), you will need to adjust the way you use it (when computing the stream function)<br>
as done in the example use_isoLat_bkl.m (you may have to apply the same "reshape" as done<br>
in "use_isoLat_bkl.m", lines 92-96).<br>
<br>
Let us know if this is your case and if you need more details to fix it.<br>
<br>
Cheers,<br>
Jean-Michel<br>
<br>
On Wed, May 14, 2025 at 03:31:18PM +0000, Flynn Ames wrote:<br>
> Dear MITgcm people,<br>
><br>
> Hello - I've run the MITgcm in a cubed sphere configuration for two different resolutions: cs32 and cs96. I am in the process of analysing the output, specifically computing the meridional overturning streamfunction, and have been using the MITgcmutils cubed-sphere
 MATLAB functions for this.<br>
><br>
> To compute the overturning streamfunction, a 'broken line' file is required. I have one of these for cs32 (given to me by my supervisor) and have used this successfully to compute the overturning streamfunction (see attached figure). I don't have a broken
 line file for the cs96 configuration, so I created an isoline for this configuration using 'mk_isolat_bkl.m'.<br>
><br>
> My problem: I get nonsense output when trying to compute the overturning stream function from my cs96 configuration, using the broken line file I created.<br>
> Furthermore, as a test, I tried recreating the broken line file for the cs32 configuration. When I use this file (instead of the file I had been given which works), I get nonsense output here too (see attached figure). This suggests there is something wrong
 with how I'm creating the file.<br>
><br>
> My question: Does anyone have any ideas for what could be going wrong?<br>
><br>
> Inspecting the broken line files, the only major difference I can see is that the parameter bkl_IJuv (which lists the indexes of velocity points to assign to a broken line file) looks quite different when I plot it (see attached figures). Not sure if this
 would be causing the issue without delving in deeper.<br>
><br>
> I use the same number of points in latitude for creating the cs32 broken line file (59) as the working file I was given, so would have expected the two files to be practically identical.<br>
><br>
><br>
> Thanks in advance!<br>
> Flynn<br>
<br>
<br>
<br>
<br>
<br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> MITgcm-support@mitgcm.org<br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" id="OWAe28e7ffd-29ff-8c76-c2fc-ba78d4644d4b" class="OWAAutoLink" data-auth="NotApplicable">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
<br>
_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" id="OWA63ebafd0-f808-d0df-3fc8-8a946fe703cf" class="OWAAutoLink" data-auth="NotApplicable">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a></div>
</body>
</html>