<div dir="ltr"><div>Please read:<br></div><div><br><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/generate_sample_indices.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Contributed/generate_sample_indices.shtml</a><br>=============<br></div><div>N = 30<br></div><div>file_names(N)<br><br></div>Your choice<br><br>iwo = <strong>generate_sample_indices</strong>( N, 0 )<br> iw = <strong>generate_sample_indices</strong>( N, 1 )<br><div><pre><br></pre><pre>Use 1st 10 <br></pre><pre> M = 10<br></pre><pre> file_names(iw(0:M-1))<br> file_names(iwo(0:M-1)) <br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 3:46 AM, Hyun Marcia <span dir="ltr"><<a href="mailto:hyun998877@gmail.com" target="_blank">hyun998877@gmail.com</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">Hello,<div><br></div><div><br></div><div><font color="#000000">I have <span style="font-family:Arial">found the way of random multi data(or files) </span><font face="Arial">selecting.</font></font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000">But, I couldn't found the solution yet.</font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000">I want to make a group what has 10 data</font><span style="color:rgb(0,0,0);font-family:Arial">(or files)</span><span style="color:rgb(0,0,0);font-family:Arial"> which are selected randomly in the existing 30 data</span><span style="color:rgb(0,0,0);font-family:Arial">(or files)</span><span style="color:rgb(0,0,0);font-family:Arial">.</span></div><div><font face="Arial" color="#000000"><br></font></div><div><font color="#000000"><font face="Arial">Are there anyone who show me functions or methods can resolve this r</font></font><font face="Arial" color="#000000">andom multi-data selecting problem?</font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000">Please show the methods can do only in NCL, if possible.</font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000"><br></font></div><div><font face="Arial" color="#000000">thanks.</font></div><div><font face="Arial" color="#000000"><br></font></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>