[pyngl-talk] Issues with running PYNGL function on local computer

Mateus da Silva Teixeira mateusstex at gmail.com
Fri Sep 6 06:52:54 MDT 2019


Hi Austin,

I ran Ngl.gc_inout examples in Python via Terminal and they work as
expected. I'm using Python 3.7.3 with Anaconda, in Ubuntu 18.04.

Try to create a new environment with PyNGL e run the examples in this new
environment. Maybe your environment has some inconsistency.

Best regards,

Mateus


Em qui, 5 de set de 2019 às 21:07, Austin Reed via pyngl-talk <
pyngl-talk at ucar.edu> escreveu:

> Hi there,
>
> I am an undergraduate student working with PYNGL to sort through data
> (particularly precip.data) but I have been having issues with running one
> particular function of PyNgl on my local computer. That function is the
> Ngl.gc_inout function. I have tried each example on the Ngl.gc_inout page
> and each example has returned "None.", where it is supposed to return
> something else such as [1]. I have checked with other Ngl functions and
> they all seem to be working, it is just this one that is not producing the
> correct output. The main example is listed below. I currently have python
> 3.7.4 installed on my computer, and am using Anaconda Navigator 1.9.7, with
> PyNgl version 1.6.1. I have also checked with someone who has ran this same
> example on their local computer with PyNgl and she obtained the correct
> result, [1]. I don't have any idea as to why my computer would produce
> "None". If anybody has any insight/ideas about this I would greatly
> appreciate it!
>
> Best, Austin Reed
>
> import Ngl
>
> #---Point at center of diamond.
> inout = *Ngl.gc_inout*(0.0, -2.0, \
>                             [ 0.0,  1.0,  0.0, -1.0,  0.0], \
>                             [-3.0, -2.0, -1.0, -2.0, -3.0] )
> print(inout)
>
> produces:
>
> [1]
>
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20190906/edcf5780/attachment.html>


More information about the pyngl-talk mailing list