[ncl-talk] zoom bug with Area Fill?

Mary Haley haley at ucar.edu
Tue May 10 13:08:07 MDT 2016


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/20160510/e86e5554/attachment.html 


More information about the ncl-talk mailing list