[ncl-talk] Blank graphics in ncl

Zilore Mumba zmumba at gmail.com
Wed Apr 5 02:47:09 MDT 2023


Thanks very much Zeinab. Running the scripts in the conda environment as
you suggested works. I am really thankful. Thanks to Rick also for your
time and effort, and if there is another solution it is welcome.

On Wed, Apr 5, 2023 at 9:51 AM Zeinab Salah <zeinabsalah at gmail.com> wrote:

> Hi Zilore,
> I encountered the same problem before, therefore I installed NCL under
> conda environment as in: https://www.ncl.ucar.edu/Download/conda.shtml
>
> conda create -n *ncl_stable* -c conda-forge ncl
>   source activate *ncl_stable*
>
> Best regards,
>
> Zeinab
>
> ‫في الأربعاء، 5 أبريل 2023 في 7:37 ص تمت كتابة ما يلي بواسطة ‪Zilore Mumba
> via ncl-talk‬‏ <‪ncl-talk at mailman.ucar.edu‬‏>:‬
>
>> Rick,
>> I have attached to this mail, 1) the script which produces the graphics,
>> 2) the two png's by the same script but on different platforms and 3) the
>> .hluresfile which is on both machines. In the attached .hluresfile I have
>> removed the dot at the beginning of the file name, but the dot is there in
>> the running copy.
>> Thanks for your time.
>>
>> On Tue, Apr 4, 2023 at 11:43 PM Rick Brownrigg <brownrig at ucar.edu> wrote:
>>
>>> Zilore, is that wrf file too big to send via email?
>>>
>>>
>>>
>>> On Tue, Apr 4, 2023 at 3:11 PM Zilore Mumba <zmumba at gmail.com> wrote:
>>>
>>>> Rick,
>>>> The scripts are exactly the same except the data path. The same
>>>> .hluresfile is used for both scripts. There is no error message, but on
>>>> other scripts I get the error that the values are out of the range
>>>> specified by ExplcitLevels. I attach the script and the .hluresfile which
>>>> is the same as the on the link you gave
>>>>
>>>> On Tue, Apr 4, 2023 at 10:12 PM Rick Brownrigg <brownrig at ucar.edu>
>>>> wrote:
>>>>
>>>>> Hi Zilore,
>>>>>
>>>>> As an aside -- the colorbars in the two plots appear to be different.
>>>>> Does this script in question explicitly specify a colormap, or is it just
>>>>> using the default?
>>>>>
>>>>> Is the .hluresfile on your 18.04 system substantially different from
>>>>> the one on the 20.04 system?  Is there even such a file on the new 20.04
>>>>> system?  Perhaps copy the one from 18.04 over to your new system?  No error
>>>>> messages from NCL about "can't find colormaps"?
>>>>>
>>>>> A sort of default .hluresfile can be found here; there's nothing in it
>>>>> that would account for the plot you are seeing:
>>>>>
>>>>> https://www.ncl.ucar.edu/Document/Graphics/hlures.shtml
>>>>>
>>>>> Rick
>>>>>
>>>>>
>>>>> On Tue, Apr 4, 2023 at 1:30 PM Zilore Mumba via ncl-talk <
>>>>> ncl-talk at mailman.ucar.edu> wrote:
>>>>>
>>>>>> Hello NCL users,
>>>>>> I have a peculiar problem which I have no clue where it might come
>>>>>> from. On my ubuntu 18.04 where I have run ncl for years, the graphics are
>>>>>> fine as shown in the attached image TTIMap2.png. On a newly installed
>>>>>> ubuntu 20.04 the very same script which produces TTIMap2.png produces
>>>>>> TTIMap.png which instead of shading produces contours. Other scripts
>>>>>> produce completely blank graphics on ubuntu-20.04 platform, whileas the the
>>>>>> graphics from the same script on ubuntu18 platform are just fine.
>>>>>> My only guess is that perhaps tinkering with the .hluresfile may
>>>>>> resolve my problem. However I have never worked with the .hluresfile.
>>>>>> I wii appreciate help on this.
>>>>>> _______________________________________________
>>>>>> ncl-talk mailing list
>>>>>> ncl-talk at mailman.ucar.edu
>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>>
>>>>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20230405/c98fa36e/attachment.htm>


More information about the ncl-talk mailing list