Re: Request

From: nand_s <sachin.nand_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 22 2013 - 23:02:07 MDT

Hello Mr. Hobbs,

Thanks for your support. I really appreciate it. But I got one question and that is, last time I plotted the graph of temperature versus pressure and salinity versus pressure where pressure was the dependent variable on y axis, an still not able to plot the graph with the coding you have provided me.

As am the novice programmer at the moment, can you please advice me more on the coding please?

Thanks and best regards.

-----Original Message-----
From: Will Hobbs []
Sent: Tuesday, April 23, 2013 4:09 PM
To: nand_s;
Subject: Re: Request


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.


On 23/04/13 1:19 PM, "nand_s" <> wrote:

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

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Apr 22 23:02:21 2013

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