How to accomplish a loop with negative stride?

From: Wen.J.Qu <wen.j.qu_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 22 2012 - 16:15:39 MDT

Hi, all

Would you please give some suggestions on how to accomplish a loop with negative stride? Just as below?

Thanks a lot.

Shawn

**************************************************
   do i=lon90,lon180
        n588(year_index,day_index,i)=0.0
             do j=lat80,lat10,-1
                  if((h(year_index,day_index,j,i)/10.0 .le. 588.0) .and. (h(year_index,day_index,j-1,i)/10.0 .le. 588.0))then
                       n588(year_index,day_index,i)=j
                       break
                  end if
             end do
   end do
**************************************************

Wen.J.Qu
2012-10-22

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 22 16:15:49 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 23 2012 - 11:10:04 MDT