Re: Contouring categorical field

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 11 2011 - 15:49:23 MDT

I don't think the graphics use the type of interpolation
uou want.

Still, try...

http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn

  res@cnFillOn = True ; turn on color
  res@cnFillMode = "RasterFill" ; turn on raster mode
  res@cnRasterSmoothingOn = True ; turn on raster smoothing
  res@cnLinesOn = False ; turn off contour lines

On 4/11/11 3:35 PM, Christian Pagé wrote:
> Thanks Dennis. I saw that nice Application example page but, if I am not
> mistaken they are all using RasterFill?
> Is it possible to use rather the contour algorithm instead of the
> raster, specifying the interpolation method?
>
> Christian
>
>
> On Mon, Apr 11, 2011 at 23:27, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
> http://www.ncl.ucar.edu/Applications/classification.shtml
>
>
> On 4/11/11 3:20 PM, Christian Pagé wrote:
>
> Hi all,
>
> I want to plot, with NCL, a 2D field by contouring using cnFillOn.
> However, since the field is a categorical field (values 1 to 6), it
> causes problem because the interpolation
> that is used by the contouring algorithm is not nearest
> neighbor, and it
> generates in-between fictive values (e.g. field going from 1 to 6
> directly, all colors in-between are shown).
>
> Is it possible to plot that kind of field, without using RasterFill?
> Is there a way to specify the interpolation method the conpack
> is using?
>
> Thanks!
>
> Best regards,
>
> Christian
>
>
>
> _______________________________________________
> 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 Tue Apr 12 07:49:31 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:03 MDT