[ncl-talk] Is this a loop that can be sped up?

Barry Lynn barry.h.lynn at gmail.com
Sun Sep 22 03:25:52 MDT 2019


Hello:

I've been doing this for a long time, and am wondering if there is a way to
speed up this kind of array checking for exceedance values.

Thank you.

   do j = 0,dims2d(0)-1

   do i = 0,dims2d(1)-1

    if (z_plane(j,i).ge.threshold(j,i))then

     prob_b_24(j,i) = prob_b_24(j,i)+1

    end if

   end do

   end do

-- 
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190922/d3aff260/attachment.html>


More information about the ncl-talk mailing list