Re: contour with multi-values

From: ahmed lasheen <ahmed4kernel_at_nyahnyahspammersnyahnyah>
Date: Thu May 19 2011 - 03:53:06 MDT

yes , the problem is indeed in the fill values , which is 999
this make all this trouble . know the fill value are in the bottom of the
plot , it is white .
i have attached the corrected figure and the scripts .
my reply is late as i had some troubles in opening the mail.
thanks for your help.

On Thu, May 12, 2011 at 11:54 AM, Rick Brownrigg <brownrig@ucar.edu> wrote:

> Hi,
>
> Just to follow up on Adam's comments, the missing _FillValue is indeed the
> problem. Or rather,
> its that the default _FillValue is not the same as your data, which looking
> at it, I presume is "-999.0"(?)
>
> Just add the line:
>
> f@_FillValue = -999.0
>
> after you read the ascii dataset.
>
> Rick
>
> On May 12, 2011, at 9:47 AM, Adam Phillips wrote:
>
> > Hi Ahmed,
> > That looks to me that at the bottom of your plot that your data field
> > quickly drops from > .9 to > .1.. Thus, I think there are 9 contour
> > lines immediately next to one another, and thus the labels all look like
> > they are on line. (Notice the 0 "line" appears thicker than the others.)
> > You can check this by setting trYMaxF = 3.0 and trXMaxF = 3.0 to zoom in
> > on your plot.
> >
> > Looking at your script I see you are reading in an ascii file and are
> > not setting the _FillValue attribute. Does your data have any missing
> > data? Regardless, you should set the @_FillValue appropriately.
> >
> > You might want to use the printMinMax procedure to look at the minimum
> > and maximum values of your array as well:
> > http://www.ncl.ucar.edu/Document/Functions/Contributed/printMinMax.shtml
> >
> > Finally, if those values near the bottom of your script are indeed 0 or
> > some other small value you can use the where function to set those areas
> > = @_FillValue if you would like:
> > http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml
> > Hope that helps!
> > Adam
> >
> > On 05/12/2011 08:56 AM, ahmed lasheen wrote:
> >> Hello,
> >> I am trying to plot ASCII data file in which there is 20 rows and 10
> >> columns .
> >> the problem is that the first line contour is marked with several
> values .
> >> i have attached the data file and the NCL script.
> >> thanks in advance .
> >>
> >>
> >>
> >> --
> >> ===============
> >> Ahmed Lasheen
> >> Junior researcher at Cairo Numerical Weather Prediction Center (CNWPC)
> >> Egyptian Meteorological Authority(EMA)
> >> Cairo,Egypt
> >> ===============
> >>
> >>
> >>
> >> _______________________________________________
> >> ncl-talk mailing list
> >> List instructions, subscriber options, unsubscribe:
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> > --
> > __________________________________________________
> > Adam Phillips
> > asphilli@ucar.edu
> > National Center for Atmospheric Research tel: (303) 497-1726
> > Climate and Global Dynamics Division fax: (303) 497-1333
> > P.O. Box 3000
> > Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
===============
Ahmed Lasheen
Junior researcher at Cairo Numerical Weather Prediction Center (CNWPC)
Egyptian Meteorological Authority(EMA)
Cairo,Egypt
===============



_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Thu May 19 03:54:15 2011

This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 09:35:33 MDT