Re: how to select a member randomly

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 24 2012 - 12:07:49 MDT

  ntim = ??
  nens = 6
  nt = toint(random_uniform(0,nens,ntim))
  print(nt)

On 8/24/12 9:53 AM, Dennis Shea wrote:
> Did you look at the NCL function list?
>
> http://www.ncl.ucar.edu/Document/Functions/Contributed/generate_unique_indices.shtml
>
>
> Also
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/random_uniform.shtml
>
>
> On 8/24/12 9:09 AM, hui bai wrote:
>> *
>> Dear Madam/Sir,
>> * I have six ensemble members. I want to use Monte Carlo method to
>> create a lot of realizations. So, I need to select a member at each time
>> step randomly. Can ncl select a member randomly? Thank you very much!
>> Best regards,
>> Hui
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 24 12:08:03 2012

This archive was generated by hypermail 2.1.8 : Tue Aug 28 2012 - 08:53:45 MDT