Re: reading multiple ascii Tables and plotting

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed May 30 2012 - 09:45:05 MDT

In my rush, I didn't pay attention to the fact you wanted one curve per file. I thought you wanted them concatenated.

See the latest attached. I will be out of the office for a little after this, but Dennis said he would help if needed.

--Mary

On May 30, 2012, at 9:29 AM, Muronga, Azwinndini wrote:

> Thanks for the revised script.
> I ran it and I still got the line. I am now attaching the script (version 3 that does the plotting) with the three data files.
>
> Thanks very much Mary.
> From: Mary Haley [haley@ucar.edu]
> Sent: 30 May 2012 05:03 PM
> To: Muronga, Azwinndini
> Cc: ncl-talk@ucar.edu
> Subject: Re: reading multiple ascii Tables and plotting
>
> Can you simply drop off that first or last point?
>
> See attached modified script. I don't have your files with me at the moment, so I was unable to test the file.
>
> --Mary
>
>
>
> On May 30, 2012, at 6:57 AM, Muronga, Azwinndini wrote:
>
>> Thanks very much Mary,
>>
>> The script has read the data files. When I plot the graphs all at once in one system of axes I still get the line joining the last line of the previous data file to the first line of the next data file. See the attached resulting plot. I guess there might be a simple way of making the curves as if one is adding them one by one. I'll do further search on the archive.
>>
>> Once again thank you very much.
>>
>> Regards,
>> Azwinndini
>> From: Mary Haley [haley@ucar.edu]
>> Sent: 30 May 2012 12:11 AM
>> To: Muronga, Azwinndini
>> Cc: ncl-talk@ucar.edu
>> Subject: Re: reading multiple ascii Tables and plotting
>>
>> Hi Azwinndini,
>>
>> I'm kind of rushed, but I tried to create a little script that reads your data. It doesn't require you to strip off the headers first.
>>
>> See attached.
>>
>> --Mary
>>
>> On May 28, 2012, at 4:38 PM, Muronga, Azwinndini wrote:
>>
>> > Dear all,
>> >
>> > I am new in NCL. I have spent the past two weeks figuring out how to start making some plots. I have 26 ascii data files. I have attached three of them for an example. The 26 files are outputs at different times. I would like to plot them in a single plot each curve representing each file (time). Then I would like to plot selected times(datafiles) on a panel. I am attaching the ncl script I have written following some of the examples from the ncl-talk archive. I would like to make. The script works (if I chop the header off by hand - since I am unable to read it off) except that becuase I have concatenated the 26 files into one big file then the curves loops also because the x-axis of each starts at the same position.
>> >
>> > Thanks in advance for any help and suggestions.
>> >
>> > Regards,
>> > Azwinndini
>> >
>> > ======================================================================
>> > A/Professor - Department of Physics, Faculty of Science
>> > University of Johannesburg, Auckland Park Kingsway Campus
>> > cnr Kingsway Ave and University Rd
>> > Building C1LAB, Room 235
>> > Auckland Park 2092, RSA
>> > PO Box 524, Auckland Park, 2006, RSA
>> > Phone (UJ-APK-Office) : +27 11 559-3028
>> > phone (UJ-APK-Sec) : +27 11 559-2327
>> > fax (UJ-APK-Sec) : +27 11 559-2339
>> > Director - UJ Soweto Science Centre, Faculty of Science
>> > University of Johannesburg, Soweto Campus
>> > Chris Hani Road, Pimville, Soweto
>> > Phone (UJ Science Centre) : +27 11 559-5745
>> > Fax (UJ Science Centre) : +27 11 559-5745
>> > Skype : AzwinndiniMuronga
>> > e-mail : Azwinndini.Muronga@gmail.com
>> > e-mail : amuronga@uj.ac.za
>> > ======================================================================
>> >
>> >
>> > This email and all contents are subject to the following disclaimer:
>> >
>> > http://disclaimer.uj.ac.za
>> > <Sod.0000.tab><Sod.0002.tab><Sod.0001.tab><testncl.ncl>_______________________________________________
>> > ncl-talk mailing list
>> > List instructions, subscriber options, unsubscribe:
>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>> This email and all contents are subject to the following disclaimer:
>>
>> http://disclaimer.uj.ac.za
>> <Sod.pdf>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> This email and all contents are subject to the following disclaimer:
>
> http://disclaimer.uj.ac.za
> <read_Sod_tab_v3.ncl><Sod.0000.tab><Sod.0002.tab>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 30 09:45:18 2012

This archive was generated by hypermail 2.1.8 : Wed Jun 06 2012 - 15:17:44 MDT