<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Martin,</p>
<p style="margin-top:0;margin-bottom:0"> Thanks for your email. I was not aware of this capability and will certainly use it. But I realized I need to evaluate the local average at every model iteration. I am using the anomaly of one field to evolve
another field in time:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">d (Field_2)/dt = constant x (anomaly of Field_1).
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">anomaly = Field_1 - local average of Field_1</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Sanjiv<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Martin Losch <Martin.Losch@awi.de><br>
<b>Sent:</b> Tuesday, February 12, 2019 3:33 AM<br>
<b>To:</b> MITgcm Support<br>
<b>Subject:</b> Re: [MITgcm-support] Local averages of variables</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">yes, the diagnostics package can do this with the parameters of the DIAG_STATIS_PARMS namelist. Checkout verification/global_ocean.cs32x15/input.thsice for an example of how to do this. In that experiment, averages over latitude bands
are computed.<br>
<br>
Martin<br>
<br>
> On 11. Feb 2019, at 21:21, Sanjiv Ramachandran <sramachandran@umassd.edu> wrote:<br>
> <br>
> Hi all,<br>
> I need to compute the horizontal average of fields within specified X and Y limits during the simulation (not offline). Are there built-in routines that can accomplish this, given the following inputs: a field, imin and imax (X limits), jmin and
jmax (Y limits)?<br>
> <br>
> Thanks.<br>
> <br>
> Sanjiv<br>
> <br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> MITgcm-support@mitgcm.org<br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">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">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>