Re: Request

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 23 2013 - 15:51:04 MDT

I think you are close. You are currently reading in each file and
plotting each separately. I think you need to save each plot and use the
overlay procedure to overlay them onto the first set of plots. Try this:

wks = gsn_open_wks ("ps",pname)
color1 = (/"blue","steelblue1","royalblue4"/) ; set these to whatever you would like
color2 = (/"red","sienna1","firebrick"/) ;

plot1 = new(nfili,graphic)
plot2 = plot

do nf=0,nfili-1
     f = addfile (diri+fili(nf),"r")
     t = f->temperature(0,:,0,0)
     s = f->salinity(0,:,0,0)
     sfx = get_file_suffix(fili(nf),0)
     pname = sfx@fBase

     res@xyLineColor = color1(nf)
     plot1(nf) = gsn_csm_xy (wks,t,t&pressure,res) ; create plot

     res@xyLineColor = color2(nf)
     plot2(nf) = gsn_csm_xy (wks,s,s&pressure,res) ; create plot

     if ( then
     end if
end do
resP@txString = fili(nf)

If that does not help, or if you have further questions, please respond
to ncl-talk.

On 04/23/2013 03:28 PM, nand_s wrote:
> Hello,
> I was working with ARGO dataset and I was able to project graphs of Temperature versus Pressure and Practical Salinity versus Pressure with the help of the code which is attached in this mail as "argo.ncl" and currently am trying to merge three separate graphs of one ARGO Float into one XY plot and am finding it difficult to do the coding of it. I tried my best but still am not able to get it done. The one of the images for the graphs of the particular float of the attached dataset is attached with this mail.
> Can you please help me out with the functions needed to merge the graphs because am still the beginner and self learner of NCL?
> Attached file names and their content:
> 1). Argo_072 - image file for the graph 2). Three ".ps" files for the one ARGO Float 3). NCL code which I had used to project these graphs, i.e. "argo.ncl".
> Thanks and best regards.
> Sachin Ravilesh Nand | Software Engineer (Consultant) B.C.A (Bangalore University-India) European Union Global Climate Change Alliance Project.
> Pacific Centre for Environment and Sustainable Development.
> University of the South Pacific.
> E:
> T: (+679) 32 32205
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

Adam Phillips                      
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Apr 23 15:51:15 2013

This archive was generated by hypermail 2.1.8 : Fri Apr 26 2013 - 17:10:26 MDT