Dear numpy users, <br><br>I think since long I am confused by if a function works as expected or not for masked array. <br>like np.reshape works for masked array, but not np.sum (I mean, I expect np.sum to drop the masked elements when do summing, of course we have np.ma.sum).<br>
So I always use fuctions preceding by <a href="http://np.ma">np.ma</a> to make sure there is nothing going woring if I expect there will be masked array participating in the calculation in the data process chain.<br><br>When I handle masked array, Before I use a function, normally I check if there is an equivalent <a href="http://np.ma">np.ma</a> function and if there is, I use <a href="http://np.ma">np.ma</a> function; Then I check how the documentation says about np.func and np.ma.func and see there is anything mentioned explicitly on the handling of masked array.  Howevery, In most cases I will try with simple arrays to test both np.ma.func and np.func before I use some function. but this is sometimes time consuming. Does anyone have similar situation? <br clear="all">
<br>thanks!<br><br>Chao<br>-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>

<div>************************************************************************************</div><br>