[Numpy-discussion] percentile function for masked array?

Chao YUE chaoyuejoy at gmail.com
Mon Jun 2 09:58:42 EDT 2014


Dear all,

It seems that there is not a percentile function for masked array in numpy
or scipy?
I checked numpy.percentile and scipy.percentile, it seems not support only
nonmasked array? And there is no percentile function in scipy.stats.mstats,
so I have to use np.percentile(arr.compressed()) I guess.

Thanks for any comments.

Best,

Chao
-- 
please visit:
http://www.globalcarbonatlas.org/
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140602/6d2b45c9/attachment.html>


More information about the NumPy-Discussion mailing list