[ncl-talk] CellFill issue: How to disable all fine white lines around each grid cell in ncl-PDF-output (example screenshot attached)
Carl Schreck
cjschrec at ncsu.edu
Wed Dec 7 06:57:06 MST 2016
This is an issue I've had in the past too. Erik, did the resources Mary
suggested fix it? If so, I'll start using them too. Thanks!
Carl
On Mon, Nov 28, 2016 at 11:36 AM, Mary Haley <haley at ucar.edu> wrote:
> Erik,
>
> Thanks for providing a sample image.
>
> I'm not an expert on how cell fill works, but did you try *not* setting
> cnCellFillEdgeColor or cnCellFillMissingValEdgeColor at all?
>
> I just tried to reproduce your problem by taking the example
> dataonmap_11.ncl at:
>
> http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml#ex11
>
> and adding your two resource settings to it:
>
> res at cnCellFillEdgeColor=-1
> res at cnCellFillMissingValEdgeColor=-1
>
> I also modified the plot to zoom in on an area. I couldn't get the
> behavior that you're seeing. I've attached the script, PNG, and data file
> if you want to try it yourself.
>
> It would help if you could provide your script and data. If you have a
> big data file with lots of variables, then you can try setting the special
> resource:
>
> varR at gsnDebugWriteFileName = "mary_cell_fill_issue"
>
> and then re-running the script. This should cause a NetCDF file called "
> mary_cell_fill_issue.nc" to be created, with just the data required by
> the script. It should also create a "mary_cell_fill_issue.ncl" script that
> you can send me, that will hopefully be pared down version of your script
> that is just the graphics, and none of the data processing.
>
> --Mary
>
>
> On Sun, Nov 20, 2016 at 5:49 PM, Erik Jan Schaffernicht <
> eschaffe at uni-koeln.de> wrote:
>
>> I attached a clearer example screenshot as some of the fine line were not
>> visible in my first attachment (mail before).
>>
>>
>> Attached, you find a screenshot of a plot produced by ncl 6.3.0
>> (Ubuntu 16.04.01) .
>>
>> There are hundreds of very fine, rectangularly-spaced, vertical and
>> horizontal white lines, likely exactly marking the boundaries of each grid
>> cell of my input field (a netcdf file).
>>
>> How can I disable these fine white lines?
>>
>> They appear when I use "CellFill".
>>
>> Currently, I create "PDF" output with NCL. I also tried "PS", same
>> problem here.
>>
>> Here is an extraction of the ressources I use in my ncl plot script:
>>
>> varR at cnFillOn = T ;
>> varR at cnFillOpacityF=1
>> varR at cnFillMode="CellFill"
>> varR at cnCellFillEdgeColor=-1
>> varR at cnCellFillMissingValEdgeColor=-1
>>
>> By the way, I figured out that, if I set the @cnCellFillEdgeColor=
>> to a value of 0 or 1, all these lines become really thick and eg. of bold
>> white or black color. This is not what I want but maybe these ressources
>> are somehow linked to my problem/solution?
>>
>> I like to let all cell-edge-lines disappear in my plot, so if I set this
>> option to @cnCellFillEdgeColor=-1
>> but the lines are still there (attached), they do not disappear.
>>
>> Any idea/help on that?
>>
>> Erik
>>
>>
>>
>>
>> _______________________________________________
>> 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
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
<https://ncics.org/>
* Cyclone <http://www.cyclonecenter.org/>*Center.org
<http://www.cyclonecenter.org/> *Carl J. Schreck III, PhD*
*Research Scholar / Research **Assistant Professor*
Cooperative Institute for Climate and Satellites NC (CICS
<http://www.cicsnc.org/>*-NC) <http://www.cicsnc.org/> /*
Department of Marine, Earth, and Atmospheric Sciences (MEAS)
<https://meas.sciences.ncsu.edu/>
North Carolina State University <http://ncsu.edu/>
NOAA National Centers for Environmental Information (NCEI)
<http://ncei.noaa.gov/>
151 Patton Ave, Asheville, NC 28801
e: carl_schreck at ncsu.edu
o: +1 828 257 3140
c: +1 828 484 1702
Publications
<http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
ncics.org/mjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161207/448b70d1/attachment.html
More information about the ncl-talk
mailing list