[Numpy-discussion] indexes in an array where value is greater than 1?

Chao YUE chaoyuejoy at gmail.com
Sun May 27 05:14:33 EDT 2012


for me, np.nonzero() and np.where() both work. It seems they have same
function.

chao

2012/5/27 Chris Withers <chris at simplistix.co.uk>

> On 25/05/2012 16:21, Benjamin Root wrote:
> >
> > np.nonzero(arrrgh > 1)
>
> Did you mean np.where(arrrgh > 1)?for
> I didn't know you could use np.nonzero in the way your describe?
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
***********************************************************************************
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/20120527/829d9227/attachment.html>


More information about the NumPy-Discussion mailing list