<div dir="ltr">also, a 'trick'<br><br>myArray = fspan(0.2, 0.2, N)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 1:08 PM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>In as far as I understand your question, isn't it as simple as:<br><br></div> myArray = new((/ N /), float)<br></div> myArray = 0.2<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Sep 10, 2014 at 12:57 PM, Xin Xi <span dir="ltr"><<a href="mailto:xxi@gatech.edu" target="_blank">xxi@gatech.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Hi, I am looking for a function in NCL that can do this job: given a number (int or float) x, I want to create an array with a dimension and all elements as x.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Specifically, I want to make a array of (/.2, .2, .2, .2, .2.../) (with dimension of Nx1). How do I do it? I tried conform and conform_dims which seem not working.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Thanks.<span><font color="#888888"><br>Xin<br></font></span></div></div>
<br></div></div>_______________________________________________<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>
<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>