[ncl-talk] EXTRANEOUS CURVES: time-series wrongly drawn- two values for one time
Tabish Ansari
tabishumaransari at gmail.com
Thu Dec 15 10:39:06 MST 2016
Dear Mary and Karin,
Thanks for your mail. I just sorted the problem out. I was basically
plotting temperature from wrfout files and each file had 24 hourly values.
I was trying to join the values from all the files in my ncl-script using:
FILES = systemfunc (" ls -1 " + DATADir + "wrfout_d03_2014-* ")
a = addfiles(FILES,"r")
temp = a[:]->T2(:,144,79)
and I had an extra file for the 25th of October in my directory which was
creating these extra values.
It is all sorted now.
Thanks again,
Tabish
Tabish U Ansari
PhD student, Lancaster Environment Center
Lancaster Univeristy
Bailrigg, Lancaster,
LA1 4YW, United Kingdom
On 15 December 2016 at 16:16, Mary Haley <haley at ucar.edu> wrote:
> Tabish,
>
> As Karin said, there's not enough information here.
>
> It is very important to look at your data! If the plot is incorrect, it's
> not always NCL that's the problem. It looks like your X values are not
> monotonic so you must try to figure out why.
>
> To debug this, there are number of things you can do.
>
> One is to simply print the data in the region where the problem is, and
> check if your X values are doing something unexpected.
>
> Another suggestion is to plot the data again, but zoom in on the area with
> the problem so you can better see it. You can do this with the tr*
> resources:
>
> res at trXMinF = 23
> res at trXMaxF = 27
>
> This might help you see the source of the problem better.
>
> --Mary
>
>
> On Tue, Dec 13, 2016 at 8:41 PM, Tabish Ansari <tabishumaransari at gmail.com
> > wrote:
>
>> Hi
>>
>> I'm trying to plot some time-series data : simulated vs observed. I'm
>> able to produce the plot successfully without any errors, but for a small
>> stretch on the timescale, it is showing extraneous data - as double lines.
>> This is happening exactly at the same period for both simulated and
>> observed data. Please refer to the screenshot attached.
>>
>> Many thanks!
>>
>> Tabish
>>
>> Tabish U Ansari
>> PhD student, Lancaster Environment Center
>> Lancaster Univeristy
>> Bailrigg, Lancaster,
>> LA1 4YW, United Kingdom
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161215/d948a1c0/attachment.html
More information about the ncl-talk
mailing list