[ncl-talk] Multiple time series plot of same parametre but from different ascii files

Adam Phillips asphilli at ucar.edu
Fri Mar 24 11:01:41 MDT 2017


Hi Najib,
I think your script is close. You are redefining the workstation each time
through your n do loop. Thus, each time through the do loop the output png
file gets overwritten. Change this line:
wks = gsn_open_wks("png","AOT_550")
to this:
wks = gsn_open_wks("png","AOT_550_"+n)

and I think you will get what you want.

I hope that helps. If not, or if you have further questions, please respond
to the ncl-talk email list and not to me personally.
Adam


On Fri, Mar 24, 2017 at 3:47 AM, Najib Yusuf <najibgal at yahoo.com> wrote:

>
> Dear ncl-talk,
>
> I am trying as I'm still at the initial stage learning ncl going through
> user-guides tutorials etc. I want to plot multiple time series with the
> parametre from different files (AOT_550_2005 to AOT_550_2013). I have
> writing the codes (see attached file) but when I run it I got only one plot
> of AOT_550_2005 not with the remaining years.
>
> Kindly assist on how the remaining years will appear on the plot.I also
> tried looping but the errors are getting much so I live it this way since
> there is no error.
>
> Thank you
>
> Najib
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170324/ffcf2804/attachment.html 


More information about the ncl-talk mailing list