<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Try:</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">i = (/ 0,1,11/)</div><div id="AppleMailSignature">dsum = sum( data(:,i) )</div><div id="AppleMailSignature">davg = avg( data(:,i) )<br><br>Sent from my iPhone</div><div><br>On Dec 11, 2017, at 12:40 PM, VanĂșcia Schumacher <<a href="mailto:vanucia-schumacher@hotmail.com">vanucia-schumacher@hotmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<div id="divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span id="result_box" class="" lang="en"><span>I would like to add (+) three variables that contain missing values, but I
<span id="result_box" class="" lang="en"><span class="">need that during the sum disregarding the missing value,
</span></span>in the same way as the sum function.</span><br>
<span class="">Any suggestion?</span></span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div> varD = data(:,11) <br>
varD@_FillValue = -999.00<br>
varJ = data(:,0) <br>
varJ@_FillValue = -999.00<br>
varF = data(:,1) <br>
varF@_FillValue = -999.00<br>
<br>
xmean = (varD+varJ+varF)</div>
<br>
<p></p>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>