<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">Hello,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm writing to report a small bug in<span style="font-size: 12pt;"> the MNC masking option (useMissingValue in data.diagnostics). When I switch this option on, ice shelf diagnostics (SHIfwFlx, SHIhtFlx, SHIuStar) are
 incorrectly masked. The entire ice shelf is masked out, with only the open ocean (where these variables are zero) unmasked.</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">In the subroutine diagnostics_mnc_out, it looks like maskC is applied at klev=1, since the ice shelf variables have already been compressed into a 2D array. But in fact this 2D array represents
 all different values of klev, none of which are 1 beneath the ice shelf.</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">I'm not sure of the most efficient way to solve this problem, as I'm not very familiar with the code base yet, so I thought I'd report it here before I tried to fix it myself! If someone
 sees an obvious solution, I'm happy to implement it.</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0">Many thanks,</p>
<p style="margin-top:0;margin-bottom:0">Kaitlin Naughten</p>
</div>
<hr>
<small>This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material
 supplied to NERC may be stored in an electronic records management system</small>.
<hr>
</body>
</html>