<div dir="ltr">What you are setting with the third parameter in new(...) is not initial values, but rather the _FillValue setting. Please read the documentation here:<div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/new.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/new.shtml</a><br></div><div><br></div><div>As a result, you are saying &quot;missing value + 0.1 = missing_value&quot; and then telling it to display the missing value as 1. Now, even if you set a=1, which is the proper way to initialize the variables with a single value regardless of dimensions, all values are still listed as &quot;missing&quot; because you&#39;ve set 1 to be the value in the variable that represents  having no data at any given location. Try this:</div><div><br></div><div>a=new(3,float)</div><div>b=(/.1,.2,.3)</div><div>a=1</div><div>print(a+b)</div><div><br></div><div>This should be good. Any other questions, please let the list know.</div><div><br></div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br><div class="gmail_quote">On Wed, Oct 8, 2014 at 11:54 AM, Liang Yu <span dir="ltr">&lt;<a href="mailto:lyu4@masonlive.gmu.edu" target="_blank">lyu4@masonlive.gmu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:14pt;color:#000000;background-color:#ffffff;font-family:&#39;Courier New&#39;,monospace">
<p>Hi all,<br>
</p>
<p><br>
</p>
<p>This is quick question.<br>
</p>
<p>Why the output bellow is 1,1, 1?<br>
</p>
<p>How can I get a+b=1.1, 1.2, 1.3?<br>
</p>
<p><br>
</p>
<p><img name="148f0afc47c675ce_null" title="Screen Shot 2014-10-07 at 1.26.30 PM.png" width="606.4" height="256.55384615384617" src="cid:fc4f1869-a21e-434d-9615-f35215ce89e0"><br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font face="Verdana" size="3"></font>
<div style="font-size:13px"><font face="Verdana" size="3"><font face="Courier New" size="4">Best regards,</font><br>
--<br>
Liang</font><font face="Verdana" size="3"><br>
<br>
</font></div>
<font face="Verdana" size="3"></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>