Re: missing value in time series xy-plot

From: H.Dang <danghy_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 28 2011 - 10:30:17 MDT

Hi Dennis,

Thanks for your help. Finally I got the plot through change 9999.0 to -999.0
in the dataset, and add those lines you mentioned.

Cheers
Hongyan
2011/3/26 Dennis Shea <shea@ucar.edu>

>
> data = new((/2,144/), float, 9999.0)
> data(0,:) = fl_z
> data(1,:) = fl_o
> printVarSummary(data)
>
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/new.shtml
>
>
> -----
>
> For the record:
>
> > data(0,:)@_Fillvalue = 9999.
> > data(1,:)@_FillValue = 9999.
>
> is incorrect. You should have done only
>
> > data@_Fillvalue = 9999.
>
> Good luck
>
> On 3/25/11 4:26 PM, H.Dang wrote:
> > Hi Dennis,
> >
> > Thanks for your message. I've tried your suggestion and my new code is
> > like this:
> >
> > data = new((/2,144/),float)
> > data(0,:) = fl_z
> > data(1,:) = fl_o
> > ...
> > data(0,:)@_Fillvalue = 9999.
> > data(1,:)@_FillValue = 9999.
> > plot = gsn_csm_xy(wks,ispan(1,144,1),data,res)
> > ...
> >
> > But I got some error like:
> >
> > See http://www.ncl.ucar.edu/ for more details.
> > fatal:syntax error: line 86 in file draw6day.ncl before or near
> @_Fillvalue
> > data(0,:)@_Fillvalue
> > --------------------^
> >
> > fatal:error in statement
> > fatal:syntax error: line 87 in file draw6day.ncl before or near
> @_FillValue
> > data(1,:)@_FillValue
> >
> > Have I made some mistake? Thanks.
> >
> > Hongyan
> > On Sat, Mar 26, 2011 at 5:35 AM, Dennis Shea <shea@ucar.edu
> > <mailto:shea@ucar.edu>> wrote:
> >
> > If you have x(:) and y(:) and the v missing value is 1234
> > and the y is 456789
> >
> > x = ...
> > y = ...
> >
> > x@_Fillvalue = 1234
> > y@_FillValue = 456789
> >
> >
> > On 3/25/11 2:45 PM, H.Dang wrote:
> >
> > Dear all,
> >
> > There are 2 missing values in my time series data. Seems I can't
> > assign
> > them to either 9999 or -9999. Is there a way not to plot these 2
> > values?
> > Thanks..
> >
> > Have a good weekend.
> > --
> > Cordially,
> > Hongyan(ΊθΡγ)
> > Tel: 1-519-8884567 <tel:1-519-8884567>ext36667
> >
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
> >
> >
> > --
> > Cordially,
> > Hongyan(ΊθΡγ)
> > Tel: 1-519-8884567ext36667
> >
> >
>

-- 
Cordially,
Hongyan(ΊθΡγ)
Tel: 1-519-8884567ext36667

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 28 10:30:46 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 05 2011 - 09:01:21 MDT