Re: boxplot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 18 Jul 2008 20:55:51 -0600

[1] If it is a 1D array (say, x):

       nx = dimsizes(x)

       qsort(x)

        x25 = x(nx/4)

        x75 = x(3*nx/4)

[2] If it is multidimensional [ say, z(lat,lon,time) ],
    and the size of the rightmost dimension is N, then

       ii = dim_pqsort(z, 2)

       z25 = z(:,:,N/4)

       z75 = z(:,:,3*N/4)

http://www.ncl.ucar.edu/Document/Functions/Built-in/qsort.shtml
http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml
  
 
Yang Yang wrote:
> Hello:
> To plot a boxplot with NCL, one needs 5 numbers: max, min, median, lower quartile, upper quartile.
> I am wondering if NCL has finctions to compute the lower quartile and upper quartile?
> Thank you very much!
> Regards
> Ed
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 18 2008 - 20:55:51 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 21 2008 - 14:41:34 MDT