[ncl-talk] quicker way to do maxind ?

xiaoming Hu yuanfangcan at hotmail.com
Tue Apr 19 11:26:22 MDT 2016


  I need to get the index of the maximum value at each location.   It turns out the following loop is very slow!     (i,j loop between 0-1000)
  do j =  0, dimlc(0)-1    print("working on row "+j)    do  i =  0, dimlc(1)-1     Time_mpr(j,i) = maxind(mpr(:,j,i))   end do ;  end do ;

Better approach to do this quicker? 
ThanksXiaoming  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160419/11de2089/attachment.html 


More information about the ncl-talk mailing list