<div dir="ltr"><div class="gmail_default" style="font-size:small">Melissa,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This may not fully answer your question, but the "generate_sample_indices" function is a simple NCL script which I've attached here. You can load it at the top of your script with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./generate_sample_indices.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">NCL version 6.0.0 is over 4 years old. Is there a reason you can't upgrade?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary<br></div><div class="gmail_default" style="font-size:small"><br></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 8:31 AM, Melissa Lazenby <span dir="ltr"><<a href="mailto:M.Lazenby@sussex.ac.uk" target="_blank">M.Lazenby@sussex.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><font face="Arial" size="3">Hi NCL Users<br>
<br>
I am trying to set up a ncl script that loops through multiple analysis in which the 39-model ensemble is sub-sampled according to:<span style="font-size:16px">
<div><br>
</div>
<div>(i) random selection of models. I.e. Repeatedly sample sub-samples of varying size i.e. 5, 10, 15, 20, 25, 30, 35 models using a random selection. So I want to construct a random sample of 10 models, 50 times and a random sample of 15 models 50 times.
Derive the mean, median, standard deviation, IQR and range of the dP each time. Plot the mean SD of dP over the 50 samples as a function of number of models in sample size (I.e. 5, 10, 15, 20…35) on the X axis and the mean SD of the dP on the Y axis. And do
the same for mean, Inter quartile range and range</div>
<div><br>
</div>
<div>(ii) various combinations of performance metrics using a selection of 5, 10, 15, 25, 30 35 models same as above<br>
<br>
If you could direct me as to which function I could use to generate the random model selection that would be most helpful.<br>
<br>
I only have NCL version 6.0.0 and therefore cannot use the generate_sample_indices function.<br>
<br>
Many thanks!<br>
<br>
Kindest Regards<span class="HOEnZb"><font color="#888888"><br>
Melissa<br>
</font></span></div>
</span></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>