<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You want to use gsn_panel if you want to put 10 plots on one page.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We have numerous panel examples.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/panel.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/panel.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">You will need to use a "do" loop to loop across the 10 files, and create the plot of the 3 variables inside the do loop. Use a "graphic" array to hold the 10 plots, so you can panel them later.</div><div class="gmail_default"><br></div><div class="gmail_default">The code may look something like this:</div><div class="gmail_default"><br></div><div class="gmail_default"><font face="monospace, monospace">files = systemfunc("ls fnl*grib2") ; get the list of 10 files. you can also just list them individually</font></div><div class="gmail_default"><font face="monospace, monospace">nfiles = dimsizes(files) ; nfiles=10</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">. . .</font></div><div class="gmail_default"><font face="monospace, monospace">. . .set graphical resources desired. . .</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">plots = new(nfiles,graphic)</font></div><div class="gmail_default"><font face="monospace, monospace">do n=0,nfiles-1</font></div><div class="gmail_default"><font face="monospace, monospace"> f = addfile(files(n),"r")</font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">; Extracting data at 850 & 300 hpa </font></div><div class="gmail_default"><font face="monospace, monospace"> t = f->TMP_P0_L100_GLL0(20,:,:)</font></div><div class="gmail_default"><font face="monospace, monospace"> u = f->UGRD_P0_L100_GLL0(20,:,:)</font></div><div class="gmail_default"><font face="monospace, monospace"> v = f->VGRD_P0_L100_GLL0(20,:,:)</font></div><div class="gmail_default"><font face="monospace, monospace"> hgt = f->HGT_P0_L100_GLL0(9,:,:)</font></div></div><div class="gmail_default"><font face="monospace, monospace"> plots(n) = <span class="">gsn_csm_vector_scalar</span>(wks,u,v,t,res_vc)<br></font></div>
<div class="gmail_default"><font face="monospace, monospace">end do</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> pres = True</font></div><div class="gmail_default"><font face="monospace, monospace"> gsn_panel(wks,plots,(/2,5/),pres)</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Please see the panel examples page for different ways to set titles inside the do loop, etc.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">--Mary</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 4:08 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><br></div><div dir="ltr"><span>I am attaching my image file. I wanted to plot the 10 plots in one frame for 3 varaibles. the 3 vriables are from the same file. So I will have 10 different files. </span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><span><br></span></div><div dir="ltr"><br></div><div></div><div> </div><div>Geeta.</div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>