[ncl-talk] zoom bug with Area Fill?

Mary Haley haley at ucar.edu
Tue Aug 16 14:11:45 MDT 2016


Hi Kristina and others,

Just an FYI that this bug has been fixed.  If you are having issues, and/or
the work-around isn't working for you, let me know and I can get a test
version of NCL for you to try.

--Mary


On Wed, May 11, 2016 at 12:44 AM, Fröhlich Kristina <
Kristina.Froehlich at dwd.de> wrote:

> Thanks Mary,
>
>
>
> yes „lonFlip“ helps! I think this is the best workaround at the moment.
>
>
>
> Originally I did not use the gsnAddCyclic because there was no need to,
> then I started to set it True/False in combination with other switches but
> it doesn’t change anything. That’s why the resource is commented. Even now
> I can’t see a change between the two options.
>
>
>
> Cheers, Kristina
>
>
>
>
>
> *Von:* Mary Haley [mailto:haley at ucar.edu]
> *Gesendet:* Dienstag, 10. Mai 2016 21:08
> *An:* Fröhlich Kristina
> *Cc:* ncl-talk at ucar.edu
> *Betreff:* Re: [ncl-talk] zoom bug with Area Fill?
>
>
>
> Kristina,
>
>
>
> The problem seems to be related to your longitudes going from 0 to 358,
> and not -180 to 178. Also, you set gsnAddCyclic to False, but I think you
> want it to be True.
>
>
>
> If I replace this line:
>
>     MM3=ANOF->Ano
>
> with this line:
>
>     MM3 = lonFlip(ANOF->Ano)
>
> then it works.
>
> Let me know if this doesn't fix the problem on your end.  I will file a
> bug report using your data, since it should work regardless if your
> longitudes go from -180 to 180 or 0 to 360.
>
> --Mary
>
>
>
>
>
>
>
> On Tue, May 10, 2016 at 11:47 AM, Mary Haley <haley at ucar.edu> wrote:
>
> Hi Kristina,
>
>
>
> Thanks for providing a script and data. I'll have a look shortly.
>
>
>
> One possible work-around for the raster contours is to set:
>
>
>
> res at cnRasterSmoothingOn = True
>
>
>
> Sometimes this gets you the same results as AreaFill.  It just depends on
> how dense your grid is.
>
>
>
> --Mary
>
>
>
>
>
> On Tue, May 10, 2016 at 5:58 AM, Fröhlich Kristina <
> Kristina.Froehlich at dwd.de> wrote:
>
>
>
> Dear colleagues,
>
>
>
> Just recently I found out, what causes sometimes (not always) a disturbed
> picture for a Europe zoom of ECHAM6 variables. While plotting correctly the
> whole globe NCL (6.2.0 and 6.2.1)  refuses for the first time step to do
>  properly the interpolation needed for the Area Fill over Europe. It does
> fine so for the second time step.
>
>
>
> I played around with variable types and colormaps but it seems to come
> down to the resource of the Area Fill. As long, as I don’t provide fix
> cnLevels its fine again but looks ugly.
>
> As a work around I switched back to RasterFill which looks of course not
> so nice but does everything as wanted. I uploaded the ncl script and a
> testdata onto the ftp server as “AreaFillBug.tar”.
>
>
>
> Is there a way for AreaFill?
>
>
>
> Best regards, Kristina
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160816/8332f8cb/attachment.html 


More information about the ncl-talk mailing list