[ncl-talk] Contour fill transparency not working with RasterFill mode
Karin Meier-Fleischer
meier-fleischer at dkrz.de
Fri Sep 29 09:47:26 MDT 2017
cnMissingValFillColor:
...
Also note that the triangular mesh contouring algorithm does not
distinguish between missing value areas and areas outside the grid
boundary. Therefore if *ContourPlot*
<http://ncl.ucar.edu/Document/HLUs/Classes/ContourPlot.shtml> is given
non-rectangular data or /trGridType/
<http://ncl.ucar.edu/Document/Graphics/Resources/tr.shtml#trGridType> is
explicitly set to |TriangularMesh|, the color index used will be the
larger value of those assigned to the resources /cnMissingValFillColor/
<http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnMissingValFillColor>
and /cnGridBoundFillColor/
<http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnGridBoundFillColor>.
Maybe Mary, Dave or Rick can say somthing more about it.
-Karin
Am 29.09.17 um 17:23 schrieb Guido Cioni:
> Yep, and I still get the same behaviour :(
>
> I also thought that was the case but then I read that "Transparent" is
> the default option for cnMissingValFillColor.
>
> Maybe it has something to do with the unstructured grid that I'm using?
>
>> On 29. Sep 2017, at 17:14, Karin Meier-Fleischer
>> <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> wrote:
>>
>> Hi Guido, :-)
>>
>> have you tried the cnMissingValFillColor resource to set the color
>> for missing value?
>> ***
>> *ResC at cnFillPalette = cmap_r
>> ResC at cnMissingValFillColor = 0
>>
>> Bye,
>> Karin
>> **
>> **
>> Am 29.09.17 um 16:55 schrieb Guido Cioni:
>>> Hi,
>>> I'm trying to plot filled contour of wind speed overlaid on a map.
>>> In order to mask small values of winds I've both masked the original
>>> data and set the first color of the color palette as transparent, i.e.
>>>
>>> cmap_r=read_colormap_file("wind_17lev")
>>> cmap_r(0,3)=0.0
>>> ResC at cnFillPalette= cmap_r
>>>
>>> However, when drawing with ResC at cnFillMode = "RasterFill", this
>>> causes the Missing Values to be coloured with white instead that
>>> being transparent, as you can see in the attached picture.
>>>
>>>
>>>
>>> Going back to old discussion this seems to be an old problem that
>>> was fixed in 6.2.0. Am I wrong?
>>>
>>> I'm attaching the script that I'm using, although it is not 100% clean.
>>> Cheers
>>>
>>>
>>>
>>> Guido Cioni
>>> http://guidocioni.altervista <http://guidocioni.altervista/>.org
>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> Guido Cioni
> http://guidocioni.altervista.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170929/e5e35365/attachment.html>
More information about the ncl-talk
mailing list