Re: loop with decreasing stride

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 05 2014 - 09:46:01 MDT

Hi Ioana,

For me, this loop:

  do i=16,0,8
     print(i)
  end do

yields 16,8,0. You might print i and nlagr to make sure they're what you think they are.

Rick

On Jun 5, 2014, at 9:25 AM, Ioana Colfescu <colfescu@cola.iges.org> wrote:

> Hi,
>
> I'm trying to plot some lag regressions and use a negative stride. What
> I do is :
>
> do i=nlagr-1,0,8
> res@gsnCenterString = " lag "+(-i)
> plot(i/8) = gsn_csm_contour_map(wks,rlagill(i,:,:),res)
> end do
>
> However, when I get the plots the lag is 0 , 8 , 16 and so on rather
> than ... 16,8,0. I was expecting to have a decrease from biggest lag to
> smallest one. Does anyone know what I'm doing wrong ?
> Thanks in advance,
> Ioana
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 05 09:46:10 2014

This archive was generated by hypermail 2.1.8 : Sat Jun 07 2014 - 11:03:12 MDT