[ncl-talk] Random multi-data selecting problem

Dennis Shea shea at ucar.edu
Fri Jun 19 06:47:04 MDT 2015


Please read:

http://www.ncl.ucar.edu/Document/Functions/Contributed/generate_sample_indices.shtml
=============
N = 30
file_names(N)

Your choice

iwo = *generate_sample_indices*( N, 0 )
 iw = *generate_sample_indices*( N, 1 )


Use 1st 10

   M = 10

   file_names(iw(0:M-1))
   file_names(iwo(0:M-1))


On Fri, Jun 19, 2015 at 3:46 AM, Hyun Marcia <hyun998877 at gmail.com> wrote:

> Hello,
>
>
> I have found the way of random multi data(or files) selecting.
>
>
> But, I couldn't  found the solution yet.
>
>
> I want to make a group what has 10 data(or files) which are selected
> randomly in the existing 30 data(or files).
>
> Are there anyone who show me  functions or methods can resolve this random
> multi-data selecting problem?
>
>
> Please show  the methods can do only in NCL, if possible.
>
>
> thanks.
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150619/30d8765b/attachment.html 


More information about the ncl-talk mailing list