Re: Fw:tmp1

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 16 2011 - 13:19:52 MST

Hi Liu,
This is indeed a problem which we intend to address as soon as possible. In your case, where the field as a whole is not constant, but the sub-area you want to zoom in on is constant, the problem only occurs when cnFillMode is set to "AreaFill" (this is the default). So a work-around fix is to use raster fill. Try adding these lines to your code:

res@cnFillMode = "RasterFill"
res@cnRasterSmoothingOn = True

On Dec 15, 2011, at 7:53 PM, L wrote:

> Hi, all
> I find that even in the small area, they are not constant, but they are in the same range. If I make the levels preciser, the output is fine.
> But I want to draw it without change the level set, and just plot an image with one single color.
> With regards,
> Liu
> -------- Forwarding messages --------
> From: L <>
> Date: 2011-12-16 10:42:27
> To: ncl-talk <>
> Subject: tmp1
> Hi, dear NCL users,
> I get some problem about contour plot.
> You can see the tmp1 file attached, this is what the data (say a 20*20 array )actually like.
> But when I reduce the map area, without reducing the data size (still 20*20), the output (tmp2) is all white.
> It seems like in the small area, values are constant. Maybe this is how the white comes.
> Is there any way to solve this?
> Best regards
> Liu
> <tmp1.png><tmp2.png>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Dec 16 13:20:01 2011

This archive was generated by hypermail 2.1.8 : Wed Dec 21 2011 - 10:44:06 MST