Re: Request

From: Will Hobbs <Will.Hobbs_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 22 2013 - 22:09:04 MDT

Nand

If you want to draw three profiles on the same xy plot,you have two
options based on your script.

1. Predefine an array before your do loop for temperature, with dimensions
(profile, depth). Write each Argo float profile into the new array in the
loop, and then plot the new array, i.e.

 t = new((/nf, depth/), "float")
 s = t
        
do nf=0,nfili-1
  f = addfile (diri+fili(nf),"r")
  t(nf,:) = f->temperature(0,:,0,0)
  s(nf,:) = f->salinity(0,:,0,0)

end do

The gsn_csm_xy() function will plot a line for each different profile on
the same plot.

2. Use the overlay() function to add a line to an existing xy plot, rather
than generating a new plot.

http://www.ncl.ucar.edu/Applications/overlay.shtml

Will

On 23/04/13 1:19 PM, "nand_s" <sachin.nand@usp.ac.fj> wrote:

>
>
>-----Original Message-----
>From: nand_s
>Sent: Tuesday, April 23, 2013 2:46 PM
>To: 'Dennis Shea'
>Cc: Mary Haley (haley@ucar.edu)
>Subject: RE: [ncl-talk] FW: Request
>
>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: sachin.nand@usp.ac.fj
>T: (+679) 32 32205
>
>
>
>
>
>
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 22 22:09:18 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 23 2013 - 12:54:13 MDT